summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-06-02 07:32:18 +0200
committerHans de Graaff <graaff@gentoo.org>2017-06-02 07:38:15 +0200
commitcf7f8e62bafa34fe102add0705856beddefd3c26 (patch)
tree006c290045f6ef8e5bb6db848d1c6cd0638f6c22 /dev-ruby/sprockets
parentdev-ruby/tilt: add ruby22 (diff)
downloadgentoo-cf7f8e62bafa34fe102add0705856beddefd3c26.tar.gz
gentoo-cf7f8e62bafa34fe102add0705856beddefd3c26.tar.bz2
gentoo-cf7f8e62bafa34fe102add0705856beddefd3c26.zip
dev-ruby/sprockets: add ruby22
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/sprockets')
-rw-r--r--dev-ruby/sprockets/sprockets-2.12.3-r1.ebuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/dev-ruby/sprockets/sprockets-2.12.3-r1.ebuild b/dev-ruby/sprockets/sprockets-2.12.3-r1.ebuild
index eb31e54a2ace..e33a105fff55 100644
--- a/dev-ruby/sprockets/sprockets-2.12.3-r1.ebuild
+++ b/dev-ruby/sprockets/sprockets-2.12.3-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-USE_RUBY="ruby20 ruby21"
+USE_RUBY="ruby21 ruby22"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="README.md"
@@ -55,8 +55,8 @@ all_ruby_prepare() {
# Require a newer version of execjs since we do not have this slotted.
sed -i -e '/execjs/ s/1.0/2.0/' ${RUBY_FAKEGEM_GEMSPEC} || die
- # Make sure the correct version of tilt is used when testing
- sed -i -e '1igem "tilt", "~>1.3"' test/sprockets_test.rb || die
+ # Make sure the correct version of tilt and rack used when testing
+ sed -i -e '1igem "tilt", "~>1.3"; gem "rack", "~>1.0"' test/sprockets_test.rb || die
}
each_ruby_prepare() {
@@ -70,8 +70,8 @@ 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
+ # Make sure we use the correct tilt and rack version.
+ sed -i -e '2i gem "tilt", "~>1.3"; gem "rack", "~>1.0"' bin/sprockets || die
each_fakegem_test