1 |
commit: 7be216ba826776e1acaa87e51945c0c173a8c449 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 19 05:27:48 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 19 05:27:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7be216ba |
7 |
|
8 |
dev-ruby/capybara: add 3.9.0 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
12 |
|
13 |
dev-ruby/capybara/Manifest | 1 + |
14 |
dev-ruby/capybara/capybara-3.9.0.ebuild | 56 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 57 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest |
18 |
index 43e2bfe28b4..fe1aa37d748 100644 |
19 |
--- a/dev-ruby/capybara/Manifest |
20 |
+++ b/dev-ruby/capybara/Manifest |
21 |
@@ -4,3 +4,4 @@ DIST capybara-3.6.0.gem 296448 BLAKE2B 4054aaac6b6e0d5f1f0c1adee1951dcac7fcb3b20 |
22 |
DIST capybara-3.7.2.gem 299520 BLAKE2B eea9d0bc35483174ccedd9366c04484a5b819e40aa6f0d01ceefad1700b04ded446d2b14de826981296666fd5f7a5440f08dc2ee437ee3db8e7bcd70d6cde636 SHA512 980346ea0fd1c3cb6de2423707d8c8e637f64bde2c1ef48622a08d1fe2177e29eb5d7125a048ebafaf4ca1591c483d34a8b17ed7288985dad783023ed35305e0 |
23 |
DIST capybara-3.8.0.gem 300544 BLAKE2B 12e6d0f316fdc050380b494dd9d1b35feb14dfcf2e2fca7b439e76538f79e17020774fb02667fe2b576b5fb54fb432fd7a06fbf7147baf71baccfa5d307a337a SHA512 6b8069e1f39d42695bb8f96ddd6f221e1ddcf09ceeeec65588721c89d232497a53fd8e3b8018e65a306eec0a187a15ed26c481a7574a6af7260f86466449c864 |
24 |
DIST capybara-3.8.1.gem 300544 BLAKE2B 05c22b603bb67d3217fa9c4c87bbd79b2249219d9a62d00c511fb7c8272092d381b7598e82cc03c5080b9c5ec20a9d64602ba37d235eea9717e741232c05c24f SHA512 ee4d2b3226e5233a092d163b4323f02ba84ad682682dc9e17a4343380e4480774eac1bba28e12a83000438c7bc1d2698fe1aabe6162ff729a243fb863f06fffb |
25 |
+DIST capybara-3.9.0.gem 305664 BLAKE2B ee11e9dede512a49d2b652142976f34a882be2f9e02c0af6b22d4980d1c0e6c1f6f73807fee2062662625ea11e96d533c865cb9f4d25eb4918cabd0b06247bc2 SHA512 da2b9d7809d66b33288a31902ffbbad91da7b306b5035546618b987acfe40bfd99451df4be34e4eac86032e13509ca7baf4a2eef0eb4cff0dd8a265e43cc1a46 |
26 |
|
27 |
diff --git a/dev-ruby/capybara/capybara-3.9.0.ebuild b/dev-ruby/capybara/capybara-3.9.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..fcadf0e01c6 |
30 |
--- /dev/null |
31 |
+++ b/dev-ruby/capybara/capybara-3.9.0.ebuild |
32 |
@@ -0,0 +1,56 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+USE_RUBY="ruby23 ruby24 ruby25" |
38 |
+ |
39 |
+RUBY_FAKEGEM_EXTRADOC="History.md README.md" |
40 |
+ |
41 |
+# Rake tasks are not distributed in the gem. |
42 |
+RUBY_FAKEGEM_TASK_DOC="" |
43 |
+RUBY_FAKEGEM_TASK_TEST="" |
44 |
+ |
45 |
+inherit virtualx ruby-fakegem |
46 |
+ |
47 |
+DESCRIPTION="Capybara aims to simplify the process of integration testing Rack applications" |
48 |
+HOMEPAGE="https://github.com/jnicklas/capybara" |
49 |
+LICENSE="MIT" |
50 |
+ |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+SLOT="3" |
53 |
+IUSE="test" |
54 |
+ |
55 |
+DEPEND="${DEPEND} test? ( www-client/firefox )" |
56 |
+ |
57 |
+ruby_add_bdepend "test? ( |
58 |
+ dev-ruby/rspec:3 |
59 |
+ >=dev-ruby/launchy-2.4.0 |
60 |
+ >=dev-ruby/selenium-webdriver-3.5:3 |
61 |
+ dev-ruby/sinatra:2 |
62 |
+ www-servers/puma |
63 |
+)" |
64 |
+ |
65 |
+ruby_add_rdepend " |
66 |
+ dev-ruby/addressable |
67 |
+ >=dev-ruby/mini_mime-0.1.3 |
68 |
+ >=dev-ruby/nokogiri-1.8:0 |
69 |
+ >=dev-ruby/rack-1.6.0:* |
70 |
+ >=dev-ruby/rack-test-0.6.3:* |
71 |
+ >=dev-ruby/xpath-3.1:3" |
72 |
+ |
73 |
+all_ruby_prepare() { |
74 |
+ sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' spec/spec_helper.rb || die |
75 |
+ |
76 |
+ # Avoid window-manager specific tests (sizes are specific for fluxbox) |
77 |
+ sed -i -e '/#maximize/,/^ end/ s:^:#:' lib/capybara/spec/session/window/window_spec.rb || die |
78 |
+ |
79 |
+ # Avoid spec that requires unpackaged geckodriver |
80 |
+ sed -i -e '/describe.*register_server/,/^ end/ s:^:#:' spec/capybara_spec.rb || die |
81 |
+ |
82 |
+ # Avoid test dependency on puma server for now |
83 |
+ sed -i -e '/should have :puma registered/,/^ end/ s:^:#:' spec/capybara_spec.rb || die |
84 |
+} |
85 |
+ |
86 |
+each_ruby_test() { |
87 |
+ virtx ${RUBY} -Ilib -S rspec-3 spec || die "Tests failed." |
88 |
+} |