[DRE-commits] [ruby-rack-google-analytics] 03/11: refresh patches

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun May 4 10:22:49 UTC 2014


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

praveen pushed a commit to branch master
in repository ruby-rack-google-analytics.

commit 69d8b7d8fb3a38d7534abbb55b2bf73e36ce36f8
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sun May 4 15:03:01 2014 +0530

    refresh patches
---
 debian/patches/move_templates.patch | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/debian/patches/move_templates.patch b/debian/patches/move_templates.patch
index 5f585c9..928db5f 100644
--- a/debian/patches/move_templates.patch
+++ b/debian/patches/move_templates.patch
@@ -9,12 +9,12 @@ Last-Update: 2013-09-25
 
 --- a/lib/rack/google-analytics.rb
 +++ b/lib/rack/google-analytics.rb
-@@ -30,7 +30,7 @@
+@@ -47,7 +47,7 @@
  
      def inject(response)
-       file = @options[:async] ? 'async' : 'sync'
--      @template ||= ::ERB.new ::File.read ::File.expand_path("../templates/#{file}.erb",__FILE__)
-+      @template ||= ::ERB.new ::File.read ::File.expand_path("../../../../../share/ruby-rack-google-analytics/templates/#{file}.erb",__FILE__)
-       if @options[:async]
-         response.gsub(%r{</head>}, @template.result(binding) + "</head>")
-       else
+       @tracker_options = { cookieDomain: @options[:domain] }.select{|k,v| v }.to_json
+-      @template ||= ::ERB.new ::File.read ::File.expand_path("../templates/async.erb",__FILE__)
++      @template ||= ::ERB.new ::File.read ::File.expand_path("/usr/share/ruby-rack-google-analytics/templates/async.erb",__FILE__)
+ 
+       response.gsub(%r{</head>}, @template.result(binding) + "</head>")
+     end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rack-google-analytics.git



More information about the Pkg-ruby-extras-commits mailing list