From: Hans de Graaff Date: Sun, 4 Oct 2015 08:25:05 +0000 (+0200) Subject: dev-ruby/sprockets: fix tests when tilt:2 is installed X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aa16891d0b3ed14da97021d6555cbf7824dab338;p=gentoo.git dev-ruby/sprockets: fix tests when tilt:2 is installed Fix tests when tilt:2 is also installed. That version will get picked up by default and cause errors due to incompatible changes. Package-Manager: portage-2.2.20.1 --- diff --git a/dev-ruby/sprockets/sprockets-2.12.3-r1.ebuild b/dev-ruby/sprockets/sprockets-2.12.3-r1.ebuild index 7be0d996d4e3..30d14efdee3d 100644 --- a/dev-ruby/sprockets/sprockets-2.12.3-r1.ebuild +++ b/dev-ruby/sprockets/sprockets-2.12.3-r1.ebuild @@ -25,10 +25,10 @@ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-m IUSE="" ruby_add_rdepend " - =dev-ruby/hike-1* >=dev-ruby/hike-1.2 + =dev-ruby/hike-1*:0 >=dev-ruby/hike-1.2:0 =dev-ruby/multi_json-1* - =dev-ruby/rack-1* - =dev-ruby/tilt-1* >=dev-ruby/tilt-1.3.1 + =dev-ruby/rack-1*:* + =dev-ruby/tilt-1*:0 >=dev-ruby/tilt-1.3.1:0 !!1.3"' test/sprockets_test.rb || die } each_ruby_prepare() { @@ -68,5 +71,10 @@ each_ruby_test() { rm -rf test || die mv test-new test || die + # Make sure we use the correct tilt version. + sed -i -e '2i gem "tilt", "~>1.3"' bin/sprockets || die + each_fakegem_test + + sed -i -e '/tilt/d' bin/sprockets || die }