aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/uri_ext_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* URI.unescape handles mixed Unicode/escaped inputAshe Connor2018-03-071-1/+1
| | | | | | | | | | | | | | | | | | Previously, URI.enscape could handle Unicode input (without any actual escaped characters), or input with escaped characters (but no actual Unicode characters) - not both. URI.unescape("\xe3\x83\x90") # => "バ" URI.unescape("%E3%83%90") # => "バ" URI.unescape("\xe3\x83\x90%E3%83%90") # => # Encoding::CompatibilityError We need to let `gsub` handle this for us, and then force back to the original encoding of the input. The result String will be mangled if the percent-encoded characters don't conform to the encoding of the String itself, but that goes without saying. Signed-off-by: Ashe Connor <ashe@kivikakk.ee>
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-3/+3
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 ↵Vipul A M2015-02-031-1/+0
| | | | onwards.
* missing activesupport test coverageEugene Gilburg2014-07-191-1/+1
|
* Convert URI.parser.parse to URI.parse, and remove ruby 1.8.x code.kennyj2012-01-191-6/+2
|
* use AS::TestCase as the base classAaron Patterson2012-01-051-1/+1
|
* Use explicit source encoding rather than forced UTF-8 from US-ASCII.Santiago Pastorino2010-04-261-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ruby 1.9.2: URI.escape is obsoleteJeremy Kemper2009-11-021-2/+6
|
* Explicit test dependenciesJeremy Kemper2009-03-291-0/+1
|
* Broaden URI.unescape fix to all affected 1.9.x by checking for broken ↵Jeremy Kemper2009-02-201-5/+6
| | | | behavior instead of specific patchlevel
* Ruby 1.9.1p0's URI.decode() bug fixmoro2009-02-201-0/+11
backport to fix Ruby 1.9.1p0 bug on [ruby-dev:38005]. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>