debian/0000755000000000000000000000000012220642065007165 5ustar debian/ruby-rack-piwik.docs0000644000000000000000000000001212115624060013046 0ustar README.md debian/ruby-tests.rb0000644000000000000000000000004212220642065011627 0ustar require 'test/test_rack_piwik.rb' debian/source/0000755000000000000000000000000012115624060010463 5ustar debian/source/format0000644000000000000000000000001412115624060011671 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000115712220642050010243 0ustar #!/usr/bin/make -f export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_install: dh_install lib/rack/templates usr/share/ruby-rack-piwik dh_auto_install rm -rf debian/ruby-rack-piwik/usr/lib/ruby/vendor_ruby/rack/templates debian/copyright0000644000000000000000000000250712115624060011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: rack-piwik Source: https://github.com/maxwell/rack-piwik Files: * Copyright: 2009 Lee Hambley License: Expat Files: debian/* Copyright: 2012 Praveen Arimbrathodiyil License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000221612120627445010575 0ustar Source: ruby-rack-piwik Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Praveen Arimbrathodiyil Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-shoulda, ruby-rack-test Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-rack-piwik.git Vcs-Browser: http://anonscm.debian.org/git/pkg-ruby-extras/ruby-rack-piwik.git Homepage: https://github.com/maxwell/rack-piwik XS-Ruby-Versions: all Package: ruby-rack-piwik Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-rack Description: piwik Analytics racking in your Ruby-Rack based project Rack middleware to inject the Piwik tracking code into outgoing responses. . In a digital world, Piwik gives you insights on your website's visitors, your marketing campaigns and much more, so you can optimize your strategy and online experience of your visitors. Piwik is an open source alternative to Google Analytics available in 48 languages! . Adapted from rack-google-analytics. debian/changelog0000644000000000000000000000150612220642065011041 0ustar ruby-rack-piwik (0.2.2-2) unstable; urgency=low * Team upload * move rack templates to /usr/share/ruby-rack-piwik (Closes: #719512) - add move_templates.patch to reflect this change * add unspecify_path_require_helper.patch, removing the specification of the directory where to find rack/piwik in test/helper.rb * do not modify $LOAD_PATH when running tests -- Cédric Boutillier Wed, 25 Sep 2013 17:02:57 +0200 ruby-rack-piwik (0.2.2-1) unstable; urgency=low * New upstream release. - gem includes tests now. * Correct vcs-git url. -- Praveen Arimbrathodiyil Wed, 06 Mar 2013 18:16:22 +0530 ruby-rack-piwik (0.1.3-1) unstable; urgency=low * Initial release (Closes: #702344) -- Praveen Arimbrathodiyil Tue, 05 Mar 2013 18:58:41 +0530 debian/patches/0000755000000000000000000000000012220642065010614 5ustar debian/patches/series0000644000000000000000000000007112220642065012027 0ustar move_templates.patch unspecify_path_require_helper.patch debian/patches/move_templates.patch0000644000000000000000000000137512220642035014664 0ustar Description: move templates to /usr/share/ruby-rack-piwik .erb files are not Ruby files, and their presence in /usr/lib/ruby/vendor/rack/templates may create conflicts with other packages. Author: Cédric Boutillier Debian-Bug: http://bugs.debian.org/719512 Forwarded: not-needed Last-Update: 2013-09-25 --- a/lib/rack/piwik.rb +++ b/lib/rack/piwik.rb @@ -28,7 +28,7 @@ def inject(response) file = 'async' - @template ||= ::ERB.new ::File.read ::File.expand_path("../templates/#{file}.erb",__FILE__) + @template ||= ::ERB.new ::File.read ::File.expand_path("../../../../../share/ruby-rack-piwik/templates/#{file}.erb",__FILE__) response.gsub(%r{}, @template.result(binding) + "") end end debian/patches/unspecify_path_require_helper.patch0000644000000000000000000000105312220642065017750 0ustar Description: do not specify the path when requiring piwik We want to use the one installed in debian/ruby-rack-piwik and not the one in lib/, since it is patched to cope with the move of templates. Author: Cédric Boutillier Forwarded: not-needed Last-Description: 2013-09-25 --- a/test/helper.rb +++ b/test/helper.rb @@ -3,7 +3,7 @@ require 'shoulda' require 'rack' require 'rack/test' -require File.expand_path('../../lib/rack/piwik',__FILE__) +require 'rack/piwik' class Test::Unit::TestCase include Rack::Test::Methods debian/ruby-rack-piwik.lintian-overrides0000644000000000000000000000012412115624060015560 0ustar # Upstream does not provide a chaneglog file ruby-rack-piwik: no-upstream-changelog debian/watch0000644000000000000000000000015112115624060010211 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/rack-piwik .*/rack-piwik-(.*).tar.gz debian/compat0000644000000000000000000000000212115624060010361 0ustar 7