1 |
commit: aa8dd99a6f2408f7aaaa871fd04c3f295a13cb2d |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 18 06:01:56 2017 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 18 06:01:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa8dd99a |
7 |
|
8 |
dev-ruby/hiera-eyaml: add ruby22, fix tests to use correct ruby version |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0.ebuild | 10 ++++++++-- |
13 |
1 file changed, 8 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0.ebuild b/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0.ebuild |
16 |
index 6afd988b926..05be0dd4b98 100644 |
17 |
--- a/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0.ebuild |
18 |
+++ b/dev-ruby/hiera-eyaml/hiera-eyaml-2.1.0.ebuild |
19 |
@@ -1,8 +1,8 @@ |
20 |
-# Copyright 1999-2016 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=5 |
25 |
-USE_RUBY="ruby20 ruby21" |
26 |
+USE_RUBY="ruby21 ruby22" |
27 |
|
28 |
RUBY_FAKEGEM_TASK_DOC="" |
29 |
RUBY_FAKEGEM_EXTRADOC="README.md CHANGES.md PLUGINS.md" |
30 |
@@ -36,6 +36,12 @@ all_ruby_prepare() { |
31 |
features/puppet.feature |
32 |
} |
33 |
|
34 |
+each_ruby_prepare() { |
35 |
+ # Run tests with the correct ruby interpreter |
36 |
+ sed -i -e 's:I run `eyaml:I run `'${RUBY}' '${S}'/bin/eyaml:' features/*.feature || die |
37 |
+ |
38 |
+} |
39 |
+ |
40 |
each_ruby_test() { |
41 |
${RUBY} -S cucumber --format progress features || die |
42 |
} |