1 |
commit: 163d53df07582a41e9cf11673da0f79ac9a112c3 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 2 05:04:09 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 2 06:01:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=163d53df |
7 |
|
8 |
dev-ruby/capybara: add 3.2.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
11 |
|
12 |
dev-ruby/capybara/Manifest | 1 + |
13 |
dev-ruby/capybara/capybara-3.2.0.ebuild | 50 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest |
17 |
index b918032ad51..4421b6bb528 100644 |
18 |
--- a/dev-ruby/capybara/Manifest |
19 |
+++ b/dev-ruby/capybara/Manifest |
20 |
@@ -3,3 +3,4 @@ DIST capybara-2.18.0.gem 274432 BLAKE2B 992799362025b81a0d074fb06fdafef4c4385ca1 |
21 |
DIST capybara-3.0.3.gem 276480 BLAKE2B a1aa8e8ccc3846c87bdc989f456fdd0c09f41b2939cfe322faa6ae478bacdd1d6b4b13dba55fc74edd50fcfe28eb59eb8a2add8e3fc5ba948bcf8365c0ffbb96 SHA512 7af6c04304f3308322ec374d226b6cd874ba2068be5451da482a6bd2861e404b580e4c74604f0873cd91a52f1d95117efdf850cf19eb9c6265715cff5d503c47 |
22 |
DIST capybara-3.1.0.gem 282112 BLAKE2B 71b275c548e3327dcbad779d48563b6784cbfcc0e5c3ba5fa478488ef90276bab1aeeaecd229255047cd23e01be6923c68c1f753b9d76d3428cc0ce75ff3ede3 SHA512 64c7a22eb8d566b245084e7b95d79dec2c72162e003418c0367a46e1072ad83569e97702f61f9a87f996160a62df3a653543d33878c6d3a46ebc2c286fcfbfd7 |
23 |
DIST capybara-3.1.1.gem 282112 BLAKE2B 82740933a34bc80ff4901fdf538b9d48d3ae8b5d9c906f462a964104ee1312a74697528f1803eeead0a250823baaedb1f2d4839053b26e4a9ed0fccbc224a137 SHA512 955918a004f11af93caecf964738108edd31ebfb239d6af752bc48ac74b754320014b997d01b8cd12bec5aeef27c88b6737cf7d0ba7dfdb4ce983939ae534546 |
24 |
+DIST capybara-3.2.0.gem 284672 BLAKE2B 7f842877e25bf7eba0bffd3b5cba0c1763d1545b6c0729ac0751e42c40e5317273da3b635c9a5a4eadd65326fe35a32c20ad985f56439da4715ab32eda342f4d SHA512 513283bb0e961069b8746ee869f77a03e632de733b364f385688c93d96228d7a09f6ccf9a9be033fba700c8be1b754ac8a578ec4ea7a3b869431d29c5770ba84 |
25 |
|
26 |
diff --git a/dev-ruby/capybara/capybara-3.2.0.ebuild b/dev-ruby/capybara/capybara-3.2.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..54ef8d17123 |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/capybara/capybara-3.2.0.ebuild |
31 |
@@ -0,0 +1,50 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+USE_RUBY="ruby23 ruby24 ruby25" |
37 |
+ |
38 |
+RUBY_FAKEGEM_EXTRADOC="History.md README.md" |
39 |
+ |
40 |
+# Rake tasks are not distributed in the gem. |
41 |
+RUBY_FAKEGEM_TASK_DOC="" |
42 |
+RUBY_FAKEGEM_TASK_TEST="" |
43 |
+ |
44 |
+inherit virtualx ruby-fakegem |
45 |
+ |
46 |
+DESCRIPTION="Capybara aims to simplify the process of integration testing Rack applications" |
47 |
+HOMEPAGE="https://github.com/jnicklas/capybara" |
48 |
+LICENSE="MIT" |
49 |
+ |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86" |
51 |
+SLOT="3" |
52 |
+IUSE="test" |
53 |
+ |
54 |
+DEPEND="${DEPEND} test? ( www-client/firefox )" |
55 |
+ |
56 |
+ruby_add_bdepend "test? ( dev-ruby/rspec:3 dev-ruby/launchy >=dev-ruby/selenium-webdriver-2.0 dev-ruby/sinatra )" |
57 |
+ |
58 |
+ruby_add_rdepend " |
59 |
+ dev-ruby/addressable |
60 |
+ >=dev-ruby/mini_mime-0.1.3 |
61 |
+ >=dev-ruby/nokogiri-1.8:0 |
62 |
+ >=dev-ruby/rack-1.6.0:* |
63 |
+ >=dev-ruby/rack-test-0.6.3:* |
64 |
+ >=dev-ruby/xpath-3.1:3" |
65 |
+ |
66 |
+all_ruby_prepare() { |
67 |
+ sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' spec/spec_helper.rb || die |
68 |
+ |
69 |
+ # Avoid window-manager specific tests (sizes are specific for fluxbox) |
70 |
+ sed -i -e '/#maximize/,/^ end/ s:^:#:' lib/capybara/spec/session/window/window_spec.rb || die |
71 |
+ |
72 |
+ # Avoid spec that requires unpackaged geckodriver |
73 |
+ sed -i -e '/describe.*register_server/,/^ end/ s:^:#:' spec/capybara_spec.rb || die |
74 |
+ |
75 |
+ # Avoid test dependency on puma server for now |
76 |
+ sed -i -e '/should have :puma registered/,/^ end/ s:^:#:' spec/capybara_spec.rb || die |
77 |
+} |
78 |
+ |
79 |
+each_ruby_test() { |
80 |
+ virtx ${RUBY} -Ilib -S rspec-3 spec || die "Tests failed." |
81 |
+} |