Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/mocha/, dev-ruby/mocha/files/
Date: Sat, 18 Mar 2023 00:03:04
Message-Id: 1679097715.3a078465a8e26099a35dc4374ae8aaf2dbda406c.sam@gentoo
1 commit: 3a078465a8e26099a35dc4374ae8aaf2dbda406c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 15 07:24:32 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 18 00:01:55 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a078465
7
8 dev-ruby/mocha: enable ruby32 for 1.16.0
9
10 ```
11 Finished in 0.151366s, 2530.2874 runs/s, 1909.2769 assertions/s.
12
13 383 runs, 289 assertions, 0 failures, 0 errors, 0 skips
14 ```
15
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 .../files/{mocha-2.0.2-ruby32.patch => mocha-1.16.0-ruby32.patch} | 0
19 dev-ruby/mocha/mocha-1.16.0.ebuild | 8 ++++++--
20 dev-ruby/mocha/mocha-2.0.2.ebuild | 2 +-
21 3 files changed, 7 insertions(+), 3 deletions(-)
22
23 diff --git a/dev-ruby/mocha/files/mocha-2.0.2-ruby32.patch b/dev-ruby/mocha/files/mocha-1.16.0-ruby32.patch
24 similarity index 100%
25 rename from dev-ruby/mocha/files/mocha-2.0.2-ruby32.patch
26 rename to dev-ruby/mocha/files/mocha-1.16.0-ruby32.patch
27
28 diff --git a/dev-ruby/mocha/mocha-1.16.0.ebuild b/dev-ruby/mocha/mocha-1.16.0.ebuild
29 index 5f825dc0d59e..ea8837619e17 100644
30 --- a/dev-ruby/mocha/mocha-1.16.0.ebuild
31 +++ b/dev-ruby/mocha/mocha-1.16.0.ebuild
32 @@ -1,8 +1,8 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 +# Copyright 1999-2023 Gentoo Authors
35 # Distributed under the terms of the GNU General Public License v2
36
37 EAPI=8
38 -USE_RUBY="ruby27 ruby30 ruby31"
39 +USE_RUBY="ruby27 ruby30 ruby31 ruby32"
40
41 RUBY_FAKEGEM_TASK_TEST="test:units test:acceptance"
42
43 @@ -26,6 +26,10 @@ IUSE=""
44 ruby_add_bdepend "
45 test? ( >=dev-ruby/test-unit-2.5.1-r1 dev-ruby/introspection )"
46
47 +PATCHES=(
48 + "${FILESDIR}"/mocha-1.16.0-ruby32.patch
49 +)
50 +
51 all_ruby_prepare() {
52 sed -i -e '/[Bb]undler/ s:^:#:' -e '1iload "lib/mocha/version.rb"' Rakefile || die
53
54
55 diff --git a/dev-ruby/mocha/mocha-2.0.2.ebuild b/dev-ruby/mocha/mocha-2.0.2.ebuild
56 index 86f55e44e1b2..7200023417c0 100644
57 --- a/dev-ruby/mocha/mocha-2.0.2.ebuild
58 +++ b/dev-ruby/mocha/mocha-2.0.2.ebuild
59 @@ -27,7 +27,7 @@ ruby_add_bdepend "
60 test? ( >=dev-ruby/test-unit-2.5.1-r1 dev-ruby/introspection )"
61
62 PATCHES=(
63 - "${FILESDIR}"/${P}-ruby32.patch
64 + "${FILESDIR}"/${PN}-1.16.0-ruby32.patch
65 )
66
67 all_ruby_prepare() {