Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/oauth/
Date: Sun, 31 May 2020 08:09:32
Message-Id: 1590912535.f90fb72bba0504467c243710de56ffe52e3d0ba8.graaff@gentoo
1 commit: f90fb72bba0504467c243710de56ffe52e3d0ba8
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 31 08:08:38 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun May 31 08:08:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f90fb72b
7
8 dev-ruby/oauth: fix tests
9
10 Closes: https://bugs.gentoo.org/723930
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
13
14 dev-ruby/oauth/oauth-0.5.4.ebuild | 7 +++++--
15 1 file changed, 5 insertions(+), 2 deletions(-)
16
17 diff --git a/dev-ruby/oauth/oauth-0.5.4.ebuild b/dev-ruby/oauth/oauth-0.5.4.ebuild
18 index d674b5571b4..59a71726716 100644
19 --- a/dev-ruby/oauth/oauth-0.5.4.ebuild
20 +++ b/dev-ruby/oauth/oauth-0.5.4.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 +# Copyright 1999-2020 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=6
27 @@ -21,16 +21,19 @@ KEYWORDS="~amd64 ~ppc ~x86 ~x86-macos"
28 IUSE=""
29
30 ruby_add_bdepend "test? (
31 + dev-ruby/bundler
32 dev-ruby/test-unit:2
33 dev-ruby/mocha:1.0
34 dev-ruby/webmock
35 dev-ruby/rack
36 dev-ruby/actionpack:5.2
37 + dev-ruby/railties:5.2
38 )"
39
40 all_ruby_prepare() {
41 # Require a compatible version of mocha
42 - sed -i -e '1igem "mocha", "~> 1.0"; gem "actionpack", "~>5.2.0"' \
43 + sed -i -e '1igem "mocha", "~> 1.0"; gem "railties", "~>5.2.0" ; gem "actionpack", "~>5.2.0"' \
44 -e '2i gem "test-unit"; require "test/unit"' \
45 + -e '/mocha/ s/mini_test/minitest/' \
46 -e '/\(byebug\|minitest_helpers\|simplecov\)/I s:^:#:' test/test_helper.rb || die
47 }