dev-ruby/sprockets: add ruby22

Package-Manager: Portage-2.3.5, Repoman-2.3.1
This commit is contained in:
Hans de Graaff
2017-06-02 07:32:18 +02:00
parent 8ba81a5047
commit cf7f8e62ba

View File

@@ -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