[DRE-commits] [ruby-gon] 03/05: refresh patches

Sruthi Chandran srud-guest at moszumanska.debian.org
Wed Sep 7 08:55:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

srud-guest pushed a commit to branch master
in repository ruby-gon.

commit 59c35f0354c356bada14e769786fbd58e6dcfd96
Author: Sruthi Chandran <srud at disroot.org>
Date:   Wed Sep 7 13:47:57 2016 +0530

    refresh patches
---
 debian/patches/fix-json-scaping-on-tests-strings | 30 ++++++++++--------------
 1 file changed, 12 insertions(+), 18 deletions(-)

diff --git a/debian/patches/fix-json-scaping-on-tests-strings b/debian/patches/fix-json-scaping-on-tests-strings
index 4b55507..c7c971c 100644
--- a/debian/patches/fix-json-scaping-on-tests-strings
+++ b/debian/patches/fix-json-scaping-on-tests-strings
@@ -6,11 +6,9 @@ Forwarded: https://github.com/gazay/gon/pull/159
 Bug-Debian: https://bugs.debian.org/759909
 Last-Update: 2014-10-11
 
-Index: ruby-gon/spec/gon/basic_spec.rb
-===================================================================
---- ruby-gon.orig/spec/gon/basic_spec.rb
-+++ ruby-gon/spec/gon/basic_spec.rb
-@@ -117,7 +117,11 @@ describe Gon do
+--- a/spec/gon/basic_spec.rb
++++ b/spec/gon/basic_spec.rb
+@@ -110,7 +110,11 @@
  
      it 'outputs correct js with a script string' do
        Gon.str = %q(</script><script>alert('!')</script>)
@@ -20,14 +18,12 @@ Index: ruby-gon/spec/gon/basic_spec.rb
 +     else
 +        escaped_str = "\\u003c/script\\u003e\\u003cscript\\u003ealert('!')\\u003c/script\\u003e"
 +      end
-       expect(@base.include_gon).to eq('<script>' +
-                                     "\n//<![CDATA[\n" +
-                                     'window.gon={};' +
-Index: ruby-gon/spec/gon/global_spec.rb
-===================================================================
---- ruby-gon.orig/spec/gon/global_spec.rb
-+++ ruby-gon/spec/gon/global_spec.rb
-@@ -73,7 +73,11 @@ describe Gon::Global do
+       expect(@base.include_gon).to eq(wrap_script(
+                                 'window.gon={};' +
+                                 %Q(gon.str="#{escaped_str}";))
+--- a/spec/gon/global_spec.rb
++++ b/spec/gon/global_spec.rb
+@@ -71,7 +71,11 @@
  
      it 'outputs correct js with a script string' do
        Gon.global.str = %q(</script><script>alert('!')</script>)
@@ -40,11 +36,9 @@ Index: ruby-gon/spec/gon/global_spec.rb
        expect(@base.include_gon).to eq("<script>" +
                                      "\n//<![CDATA[\n" +
                                      "window.gon={};" +
-Index: ruby-gon/spec/gon/watch_spec.rb
-===================================================================
---- ruby-gon.orig/spec/gon/watch_spec.rb
-+++ ruby-gon/spec/gon/watch_spec.rb
-@@ -66,7 +66,11 @@ describe Gon::Watch do
+--- a/spec/gon/watch_spec.rb
++++ b/spec/gon/watch_spec.rb
+@@ -64,7 +64,11 @@
      end
  
      context 'when request variable is json unsafe content' do

-- 
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