[DRE-commits] [ruby-gon] 02/05: Add fix_escaper.patch to escape properly unicode (Closes: #733441)
Cédric Boutillier
boutil at moszumanska.debian.org
Fri Jan 10 15:27:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-gon.
commit f9728d3eeb92a5d169f9d3184c6439e70b6ec456
Author: Cédric Boutillier <boutil at debian.org>
Date: Fri Jan 10 15:14:12 2014 +0100
Add fix_escaper.patch to escape properly unicode (Closes: #733441)
---
debian/changelog | 7 +++++++
debian/patches/fix_escaper.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 29 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 6de3ac8..3a7be89 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-gon (5.0.1-1) UNRELEASED; urgency=medium
+
+ * Imported Upstream version 5.0.1
+ * Add fix_escaper.patch to escape properly unicode (Closes: #733441)
+
+ -- Cédric Boutillier <boutil at debian.org> Fri, 03 Jan 2014 08:26:12 +0100
+
ruby-gon (4.1.0-1) unstable; urgency=low
* Initial release (Closes: #703185)
diff --git a/debian/patches/fix_escaper.patch b/debian/patches/fix_escaper.patch
new file mode 100644
index 0000000..3cac3cc
--- /dev/null
+++ b/debian/patches/fix_escaper.patch
@@ -0,0 +1,21 @@
+Description: Fix escaper implementation to account for to_json forcing
+ unicode characters to 7-bit clean.
+Author: Peter M. Goldstein <peter.m.goldstein at gmail.com>
+Reviewed-by: Cédric Boutillier <boutil at debian.org>
+Origin: https://github.com/petergoldstein/gon/commit/b4f254b9e1a33de135d9b62691aacb98ae0addae
+Bug: https://github.com/gazay/gon/pull/109
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733441
+
+Last-Update: 2014-01-10
+
+--- a/lib/gon/escaper.rb
++++ b/lib/gon/escaper.rb
+@@ -7,7 +7,7 @@
+
+ def escape_unicode(javascript)
+ if javascript
+- result = javascript.gsub(/\342\200\250/u, '
').gsub(/(<\/)/u, '\u003C/')
++ result = javascript.gsub(/\\u2028/u, '
').gsub(/(<\/)/u, '\u003C/')
+ javascript.html_safe? ? result.html_safe : result
+ end
+ end
diff --git a/debian/patches/series b/debian/patches/series
index 3aed63e..74688ac 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
change_watch_js_location.patch
remove_lib_from_loadpath_for_spec.patch
+fix_escaper.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-gon.git
More information about the Pkg-ruby-extras-commits
mailing list