debian/0000755000000000000000000000000012213420034007155 5ustar debian/ruby-tests.rake0000644000000000000000000000030212203225015012136 0ustar require 'rake' require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end task :default => :test debian/source/0000755000000000000000000000000012203002036010452 5ustar debian/source/format0000644000000000000000000000001412203002036011660 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000051112211340277011034 0ustar ruby-rack-flash3 (1.0.5-1) unstable; urgency=low * New upstream release. -- Ben Armstrong Tue, 03 Sep 2013 07:57:24 -0300 ruby-rack-flash3 (1.0.3-1) unstable; urgency=low * Initial release (Closes: #719308) -- Ben Armstrong Sun, 11 Aug 2013 08:42:46 -0300 debian/control0000644000000000000000000000173012203225015010562 0ustar Source: ruby-rack-flash3 Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Ben Armstrong Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.4.1~), rake, ruby-rack-test, ruby-bacon, ruby-sinatra Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-rack-flash3.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-rack-flash3.git;a=summary Homepage: https://github.com/treeder/rack-flash XS-Ruby-Versions: all Package: ruby-rack-flash3 Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-rack Suggests: ruby-sinatra Description: Flash hash for Ruby Rack applications Rack Flash is a simple flash hash implementation for Rack apps. This version is Travis Reeder's fork of Pat Nakajima's original implementation that works with Sinatra. debian/README.Debian0000644000000000000000000000062612203142755011234 0ustar To run the example application, install sinatra (as root): # apt-get install ruby-sinatra Then cd to the examples directory and run the application: $ cd /usr/share/doc/examples/ruby-rack-flash3/examples $ ruby sinatra_app.rb Use your web browser to view the test application at: http://localhost:4567/ -- Ben Armstrong Thu, 15 Aug 2013 09:09:18 -0300 debian/ruby-rack-flash3.docs0000644000000000000000000000002312203136317013106 0ustar README.md examples debian/watch0000644000000000000000000000015312203002036010202 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/rack-flash3 .*/rack-flash3-(.*).tar.gz debian/compat0000644000000000000000000000000212203002036010350 0ustar 7 debian/patches/0000755000000000000000000000000012203225015010605 5ustar debian/patches/fix_requires.patch0000644000000000000000000000154612203141746014351 0ustar Description: Fix requires: rubygems, etc. Dependencies for tests are satisfied by Build-Depends. Remove the require 'rubygems' and versioned dependency on sinatra. Likewise, remove it from examples and change the require 'rack-flash' to use the installed version. Author: Ben Armstrong Last-Update: 2013-08-15 Forwarded: no --- a/test/helper.rb +++ b/test/helper.rb @@ -1,5 +1,3 @@ -require 'rubygems' -gem 'sinatra', '<=1.3.2' require 'sinatra/base' require 'bacon' require 'rack/test' @@ -48,4 +46,4 @@ module Rack @sweeped end end -end \ No newline at end of file +end --- a/example/sinatra_app.rb +++ b/example/sinatra_app.rb @@ -1,6 +1,5 @@ -require 'rubygems' require 'sinatra/base' -require File.dirname(__FILE__) + '/../lib/rack-flash' +require 'rack-flash' class MyApp < Sinatra::Base use Rack::Flash debian/patches/extend_not_include_rack_test_methods.patch0000644000000000000000000000162512203225015021266 0ustar Description: Need to 'extend', not 'include' Rack::Test::Methods Bacon is used incorrectly. We need to use instead instead of include as described in https://github.com/chneukirchen/bacon/issues/4 . ruby-rack-flash3 (1.0.3-1) UNRELEASED; urgency=low . * Initial release (Closes: #719308) Author: Ben Armstrong Bug-Debian: http://bugs.debian.org/719308 Forwarded: https://github.com/nakajima/rack-flash/issues/12 Last-Update: 2013-08-15 --- ruby-rack-flash3-1.0.3.orig/test/test_flash.rb +++ ruby-rack-flash3-1.0.3/test/test_flash.rb @@ -1,7 +1,7 @@ require File.dirname(__FILE__) + '/helper' describe 'Rack::Flash' do - include Rack::Test::Methods + extend Rack::Test::Methods def app(&block) return Sinatra.new &block @@ -154,4 +154,4 @@ describe 'Rack::Flash' do end # Testing sessions is a royal pain in the ass. -end \ No newline at end of file +end debian/patches/series0000644000000000000000000000007612203225015012025 0ustar fix_requires.patch extend_not_include_rack_test_methods.patch debian/copyright0000644000000000000000000000274312203146352011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: rack-flash3 Source: https://github.com/treeder/rack-flash Files: * Copyright: 2013 Pat Nakajima 2013 Travis Reeder License: Expat Files: debian/* Copyright: 2013 Ben Armstrong License: Expat Comment: the Debian packaging is licensed under the same terms as the original package. 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/rules0000755000000000000000000000102312203137561010242 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_installdocs: cp -r example examples dh_installdocs rm -rf examples