1 |
commit: af6663f780b22e805945640e3103875b41020a7e |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 4 19:54:41 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 4 20:02:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af6663f7 |
7 |
|
8 |
dev-ruby/bourne: add ruby25, ruby26 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
dev-ruby/bourne/bourne-1.6.0.ebuild | 10 +++++++--- |
14 |
1 file changed, 7 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/dev-ruby/bourne/bourne-1.6.0.ebuild b/dev-ruby/bourne/bourne-1.6.0.ebuild |
17 |
index 2e540174232..51ad0763943 100644 |
18 |
--- a/dev-ruby/bourne/bourne-1.6.0.ebuild |
19 |
+++ b/dev-ruby/bourne/bourne-1.6.0.ebuild |
20 |
@@ -1,8 +1,8 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=5 |
26 |
-USE_RUBY="ruby21 ruby22 ruby23 ruby24" |
27 |
+USE_RUBY="ruby23 ruby24 ruby25 ruby26" |
28 |
|
29 |
RUBY_FAKEGEM_TASK_DOC="" |
30 |
RUBY_FAKEGEM_EXTRADOC="README.md" |
31 |
@@ -21,11 +21,15 @@ SLOT="0" |
32 |
KEYWORDS="~amd64 ~arm ~x86" |
33 |
IUSE="" |
34 |
|
35 |
-ruby_add_rdepend ">=dev-ruby/mocha-1.1:1.0" |
36 |
+ruby_add_rdepend ">=dev-ruby/mocha-1.5.0:1.0" |
37 |
|
38 |
ruby_add_bdepend "test? ( dev-ruby/test-unit:2 )" |
39 |
|
40 |
all_ruby_prepare() { |
41 |
sed -i -e '/git ls-files/d' "${RUBY_FAKEGEM_GEMSPEC}" || die |
42 |
sed -i -e '/bundler/d' Rakefile || die |
43 |
+ |
44 |
+ # Fix tests to work with mocha 1.5.0 or newer where reset_instance is gone |
45 |
+ sed -i -e '/reset_instance/ s:^:#:' test/unit/*received_test.rb || die |
46 |
+ sed -i -e 's/Mockery.reset_instance/mocha_teardown/' test/unit/mockery_test.rb || die |
47 |
} |