diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-04-30 20:13:50 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-04-30 20:13:50 +0000 |
commit | 03bc7d16d4bf621259ed6e2abbd72966044d4829 (patch) | |
tree | 07d85ea1bd56a2784e3759f806f977127237079b /dev-ruby/rack | |
parent | Version bump. (diff) | |
download | gentoo-2-03bc7d16d4bf621259ed6e2abbd72966044d4829.tar.gz gentoo-2-03bc7d16d4bf621259ed6e2abbd72966044d4829.tar.bz2 gentoo-2-03bc7d16d4bf621259ed6e2abbd72966044d4829.zip |
Add patch to fix one issue with Ruby 1.9 (tempfile behaviour); also apply to 1.0.1 even though that does not work with 1.9 at all.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/rack')
-rw-r--r-- | dev-ruby/rack/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/rack/files/rack-1.0.1-gentoo.patch | 25 | ||||
-rw-r--r-- | dev-ruby/rack/files/rack-1.1.0-gentoo.patch | 37 | ||||
-rw-r--r-- | dev-ruby/rack/rack-1.0.1-r1.ebuild | 12 | ||||
-rw-r--r-- | dev-ruby/rack/rack-1.1.0.ebuild | 22 |
5 files changed, 81 insertions, 23 deletions
diff --git a/dev-ruby/rack/ChangeLog b/dev-ruby/rack/ChangeLog index d4a72b4abbb2..ed71b15c71b8 100644 --- a/dev-ruby/rack/ChangeLog +++ b/dev-ruby/rack/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/rack # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/ChangeLog,v 1.27 2010/01/17 19:39:51 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/ChangeLog,v 1.28 2010/04/30 20:13:50 flameeyes Exp $ + + 30 Apr 2010; Diego E. Pettenò <flameeyes@gentoo.org> + rack-1.0.1-r1.ebuild, +files/rack-1.0.1-gentoo.patch, rack-1.1.0.ebuild, + +files/rack-1.1.0-gentoo.patch: + Add patch to fix one issue with Ruby 1.9 (tempfile behaviour); also apply + to 1.0.1 even though that does not work with 1.9 at all. 17 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> rack-1.0.1-r1.ebuild, rack-1.1.0.ebuild: diff --git a/dev-ruby/rack/files/rack-1.0.1-gentoo.patch b/dev-ruby/rack/files/rack-1.0.1-gentoo.patch new file mode 100644 index 000000000000..1331318f66c0 --- /dev/null +++ b/dev-ruby/rack/files/rack-1.0.1-gentoo.patch @@ -0,0 +1,25 @@ +diff --git a/lib/rack/rewindable_input.rb b/lib/rack/rewindable_input.rb +index accd96b..d71fde6 100644 +--- a/lib/rack/rewindable_input.rb ++++ b/lib/rack/rewindable_input.rb +@@ -94,7 +94,7 @@ module Rack + end + + def filesystem_has_posix_semantics? +- RUBY_PLATFORM !~ /(mswin|mingw|cygwin|java)/ ++ RUBY_PLATFORM !~ /(mswin|mingw|cygwin|java)/ && RUBY_VERSION < '1.9.1' + end + end + end +diff --git a/test/spec_rack_mock.rb b/test/spec_rack_mock.rb +index 9c392a2..ed39474 100644 +--- a/test/spec_rack_mock.rb ++++ b/test/spec_rack_mock.rb +@@ -130,7 +130,6 @@ context "Rack::MockResponse" do + res.original_headers["Content-Type"].should.equal "text/yaml" + res["Content-Type"].should.equal "text/yaml" + res.content_type.should.equal "text/yaml" +- res.content_length.should.be 401 # needs change often. + res.location.should.be.nil + end + diff --git a/dev-ruby/rack/files/rack-1.1.0-gentoo.patch b/dev-ruby/rack/files/rack-1.1.0-gentoo.patch new file mode 100644 index 000000000000..1bb3db9f85df --- /dev/null +++ b/dev-ruby/rack/files/rack-1.1.0-gentoo.patch @@ -0,0 +1,37 @@ +diff --git a/lib/rack/rewindable_input.rb b/lib/rack/rewindable_input.rb +index accd96b..d71fde6 100644 +--- a/lib/rack/rewindable_input.rb ++++ b/lib/rack/rewindable_input.rb +@@ -94,7 +94,7 @@ module Rack + end + + def filesystem_has_posix_semantics? +- RUBY_PLATFORM !~ /(mswin|mingw|cygwin|java)/ ++ RUBY_PLATFORM !~ /(mswin|mingw|cygwin|java)/ && RUBY_VERSION < '1.9.1' + end + end + end +diff --git a/test/spec_rack_mock.rb b/test/spec_rack_mock.rb +index a03bedc..a8c9839 100644 +--- a/test/spec_rack_mock.rb ++++ b/test/spec_rack_mock.rb +@@ -216,7 +216,6 @@ context "Rack::MockResponse" do + res.original_headers["Content-Type"].should.equal "text/yaml" + res["Content-Type"].should.equal "text/yaml" + res.content_type.should.equal "text/yaml" +- res.content_length.should.be 414 # needs change often. + res.location.should.be.nil + end + +diff --git a/test/spec_rack_runtime.rb b/test/spec_rack_runtime.rb +index 62d8095..29dd605 100644 +--- a/test/spec_rack_runtime.rb ++++ b/test/spec_rack_runtime.rb +@@ -29,7 +29,5 @@ context "Rack::Runtime" do + + response[1]['X-Runtime-App'].should =~ /[\d\.]+/ + response[1]['X-Runtime-All'].should =~ /[\d\.]+/ +- +- Float(response[1]['X-Runtime-All']).should > Float(response[1]['X-Runtime-App']) + end + end diff --git a/dev-ruby/rack/rack-1.0.1-r1.ebuild b/dev-ruby/rack/rack-1.0.1-r1.ebuild index 9e8f1b353e6e..b98498897e18 100644 --- a/dev-ruby/rack/rack-1.0.1-r1.ebuild +++ b/dev-ruby/rack/rack-1.0.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.0.1-r1.ebuild,v 1.9 2010/01/17 19:39:51 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.0.1-r1.ebuild,v 1.10 2010/04/30 20:13:50 flameeyes Exp $ EAPI="2" USE_RUBY="ruby18 jruby" @@ -23,13 +23,11 @@ IUSE="" # make them dependencies at all. ruby_add_bdepend test dev-ruby/test-spec +#USE_RUBY=ruby19 \ +# ruby_add_bdepend "ruby_targets_ruby19 test" '=dev-ruby/test-unit-1*' + all_ruby_prepare() { - # Disable the test on the content-length: it not only varies on - # the internal implementation (and thus “needs change often” as - # the code says), but it also varies on the implementation (thus - # failing on JRuby). - sed -i -e '/content_length\.should\.be/s:^:#:' \ - test/spec_rack_mock.rb || die + epatch "${FILESDIR}"/${P}-gentoo.patch } each_ruby_test() { diff --git a/dev-ruby/rack/rack-1.1.0.ebuild b/dev-ruby/rack/rack-1.1.0.ebuild index 749bac7d1a7e..1beccc58d825 100644 --- a/dev-ruby/rack/rack-1.1.0.ebuild +++ b/dev-ruby/rack/rack-1.1.0.ebuild @@ -1,13 +1,13 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.1.0.ebuild,v 1.2 2010/01/17 19:39:51 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.1.0.ebuild,v 1.3 2010/04/30 20:13:50 flameeyes Exp $ EAPI="2" -USE_RUBY="ruby18 jruby" +USE_RUBY="ruby18 ruby19 jruby" RUBY_FAKEGEM_DOCDIR="doc" -inherit ruby-fakegem +inherit ruby-fakegem eutils DESCRIPTION="A modular Ruby webserver interface" HOMEPAGE="http://rubyforge.org/projects/rack" @@ -23,19 +23,11 @@ IUSE="" # make them dependencies at all. ruby_add_bdepend test dev-ruby/test-spec +USE_RUBY=ruby19 \ + ruby_add_bdepend "ruby_targets_ruby19 test" '=dev-ruby/test-unit-1*' + all_ruby_prepare() { - # Disable the test on the content-length: it not only varies on - # the internal implementation (and thus “needs change often” as - # the code says), but it also varies on the implementation (thus - # failing on JRuby). - sed -i -e '/content_length\.should\.be/s:^:#:' \ - test/spec_rack_mock.rb || die - - # This part of the test relies on millisecond timing differences, - # since it's very fragile (and breaks with e.g. JRuby), disable it - # entirely and be done with it. - sed -i -e '/X-Runtime-All.*should >.*X-Runtime-App/s:^:#:' \ - test/spec_rack_runtime.rb || die + epatch "${FILESDIR}"/${P}-gentoo.patch } each_ruby_test() { |