dev-ruby/web-console: add ruby24, fix tests
authorHans de Graaff <graaff@gentoo.org>
Tue, 23 Jan 2018 06:35:39 +0000 (07:35 +0100)
committerHans de Graaff <graaff@gentoo.org>
Tue, 23 Jan 2018 06:52:41 +0000 (07:52 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

dev-ruby/web-console/web-console-2.3.0.ebuild
dev-ruby/web-console/web-console-3.5.1.ebuild

index d8e0f4072532217efbaabdd500364bc15bf48f73..85f233836b9d5ce60d7f02d56bb019f86373a80c 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-USE_RUBY="ruby21 ruby22 ruby23"
+USE_RUBY="ruby22 ruby23"
 
 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.markdown README.markdown"
@@ -29,7 +29,7 @@ ruby_add_rdepend "
 
 ruby_add_bdepend "test? (
        dev-ruby/bundler
-       >=dev-ruby/rails-4.0
+       dev-ruby/rails:4.2
        dev-ruby/sqlite3
        dev-ruby/mocha
        dev-ruby/simplecov
@@ -37,5 +37,8 @@ ruby_add_bdepend "test? (
 
 all_ruby_prepare() {
        # Use an installed rails version rather than live source from github.
-       sed -i -e '/rails/ s/,/#/' Gemfile || die
+       sed -i -e "/'rails'/ s/,/, '~> 4.2' #/" \
+               -e "/'arel'/ s/,/#/" \
+               -e '/simplecov/ s:^:#:' Gemfile || die
+       sed -i -e '/simplecov/I s:^:#:' test/test_helper.rb || die
 }
index 081438ff720a8531cca4cb0baa11d6755eb669b7..eee8ecae5741ddf4de124bbc370576a1d0c064f9 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-USE_RUBY="ruby22 ruby23"
+USE_RUBY="ruby22 ruby23 ruby24"
 
 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.markdown README.markdown"
@@ -38,7 +38,7 @@ ruby_add_bdepend "test? (
 all_ruby_prepare() {
        # Use an installed rails version rather than live source from github.
        sed -i -e '/\(rack\|rails\|simplecov\)/ s/,/#/'  \
-               -e '/simplecov/d' Gemfile || die
+               -e '/\(byebug\|simplecov\)/ s:^:#:' Gemfile || die
 
        sed -i -e '/simplecov/I s:^:#:' test/test_helper.rb || die
 }