[DRE-commits] [ruby-rack-google-analytics] 08/11: use relative paths for templates

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun May 4 10:22:50 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 920e31841c24630733933e356511d982d5af124e
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sun May 4 15:22:33 2014 +0530

    use relative paths for templates
---
 debian/patches/move_templates.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/move_templates.patch b/debian/patches/move_templates.patch
index 928db5f..76718d0 100644
--- a/debian/patches/move_templates.patch
+++ b/debian/patches/move_templates.patch
@@ -14,7 +14,7 @@ Last-Update: 2013-09-25
      def inject(response)
        @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__)
++      @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