diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/fast_xs/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/fast_xs/files')
-rw-r--r-- | dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch b/dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch new file mode 100644 index 000000000000..cdd72f2db3fb --- /dev/null +++ b/dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch @@ -0,0 +1,23 @@ +Index: fast_xs-0.8.0/test/test_erb_util_module_overrides.rb +=================================================================== +--- fast_xs-0.8.0.orig/test/test_erb_util_module_overrides.rb ++++ fast_xs-0.8.0/test/test_erb_util_module_overrides.rb +@@ -35,11 +35,13 @@ class TestErbUtilModuleOverrides < Test: + + def test_preserve_encoding + foo = "foo" +- foo.force_encoding Encoding::US_ASCII +- assert_equal Encoding::US_ASCII, url_encode(foo).encoding +- assert_equal Encoding::US_ASCII, html_escape(foo).encoding +- assert_equal Encoding::US_ASCII, u(foo).encoding +- assert_equal Encoding::US_ASCII, h(foo).encoding ++ ascii_encoding = (RUBY_VERSION =~ /1\.9/) ? Encoding::ASCII_8BIT : Encoding::US_ASCII ++ ++ foo.force_encoding ascii_encoding ++ assert_equal ascii_encoding, url_encode(foo).encoding ++ assert_equal ascii_encoding, html_escape(foo).encoding ++ assert_equal ascii_encoding, u(foo).encoding ++ assert_equal ascii_encoding, h(foo).encoding + + foo.force_encoding Encoding::BINARY + assert_equal Encoding::BINARY, url_encode(foo).encoding |