1 |
commit: c95a45493bdfa755439ea1610e102897bc13a420 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 30 15:24:40 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 15:25:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c95a4549 |
7 |
|
8 |
dev-ruby/ruby-feedparser: fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/888757 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild | 5 +++-- |
14 |
1 file changed, 3 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild b/dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild |
17 |
index 8b34225bd149..7a0c43081796 100644 |
18 |
--- a/dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild |
19 |
+++ b/dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild |
20 |
@@ -2,7 +2,7 @@ |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
EAPI=8 |
24 |
-USE_RUBY="ruby26 ruby27 ruby30 ruby31" |
25 |
+USE_RUBY="ruby27 ruby30 ruby31" |
26 |
|
27 |
RUBY_FAKEGEM_EXTRADOC="README" |
28 |
|
29 |
@@ -24,7 +24,7 @@ IUSE="" |
30 |
ruby_add_rdepend "dev-ruby/magic" |
31 |
|
32 |
ruby_add_bdepend "dev-ruby/magic |
33 |
- test? ( dev-ruby/mocha )" |
34 |
+ test? ( dev-ruby/mocha:1.0 )" |
35 |
|
36 |
all_ruby_prepare() { |
37 |
# Extract gemspec source from Rakefile |
38 |
@@ -32,6 +32,7 @@ all_ruby_prepare() { |
39 |
sed -i -e 's/PKG_NAME/"'${PN}'"/' \ |
40 |
-e 's/PKG_VERSION/"'${PV}'"/' \ |
41 |
-e '/s.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die |
42 |
+ sed -i -e '2igem "mocha", "<2"' test/tc_sgml_parser.rb || die |
43 |
} |
44 |
|
45 |
each_ruby_prepare() { |