1 |
commit: b917f82f72cd8f9fc87b4d3a9d7370ef5217cda1 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 28 04:48:55 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 28 04:48:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b917f82f |
7 |
|
8 |
dev-ruby/capybara: add 3.25.0 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.66, Repoman-2.3.11 |
12 |
|
13 |
dev-ruby/capybara/Manifest | 1 + |
14 |
dev-ruby/capybara/capybara-3.25.0.ebuild | 61 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest |
18 |
index 0cbc31f4184..0d00ef80b83 100644 |
19 |
--- a/dev-ruby/capybara/Manifest |
20 |
+++ b/dev-ruby/capybara/Manifest |
21 |
@@ -5,3 +5,4 @@ DIST capybara-3.21.0.gem 345600 BLAKE2B e9a2ea78a9d0a3ec4fad7b61b82a527fdb9b1a5a |
22 |
DIST capybara-3.22.0.gem 347648 BLAKE2B f1f50da92f62fc31231564500ae94ed7e5d07f4fcb04b68829dc538097f1bddb313fe9a8384772da24485879bb7c16caaa7dd2f4994d0bb95313fbbd5c79a3de SHA512 b77ad55bb35a3f62057a649e99086c322a3b3832f2c907f7abee46d694c5c189aff9f286590c8ab597bb767e56f3ec51911842146677545b99c44db27ca236c6 |
23 |
DIST capybara-3.23.0.gem 349184 BLAKE2B 233b83fb88f106de8e25a1aa34d1082664824571eca2a79ad3de3b164e639b68173804bf2e871c3fde7fe2af54d64ee6ade90c4149807e04e844cbf5d61f24dc SHA512 53e0c6223e574960e136e7620d7d00a0e1479f9eb0fb70c7150bc60e20ed009d163dc29f7cee84acad43168cca230465490c9ca64b640fdebe9223ec62b6e4db |
24 |
DIST capybara-3.24.0.gem 349696 BLAKE2B 54447fc17169d953c43f31505a9267bebe6d093052cb553efa8eb65bf6e39fbb13fe02cb3b7252c4fe1f0554370266265eb759ad7f4dc5bab9299410e4f07e81 SHA512 32a19471d3f8d13871c40c28671125039b432065ab6ac1b31f38551f9e5c7d52c041ef9a56db853aeddd14d9411dec4e647336f6b78feb45c90a676ccdc606fe |
25 |
+DIST capybara-3.25.0.gem 351744 BLAKE2B 12e8f483bca814fa826707895a6fc72a3d54df2e03c1175eb4be8e2f83afeda2466d70eab03c7700665d3f94bc7b3b8f85b2d2d6cf8242cad285d9350428cadc SHA512 1be454984862c314f0571ca68ed3858d241dc5f0709d155b1b7accd7fd81a1ab0bf0a5c6537c871989c9abc758d0e7fa5109c8b04be8b620137e129a5da13a68 |
26 |
|
27 |
diff --git a/dev-ruby/capybara/capybara-3.25.0.ebuild b/dev-ruby/capybara/capybara-3.25.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..00a37d02664 |
30 |
--- /dev/null |
31 |
+++ b/dev-ruby/capybara/capybara-3.25.0.ebuild |
32 |
@@ -0,0 +1,61 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+USE_RUBY="ruby24 ruby25 ruby26" |
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 ~arm ~x86" |
52 |
+SLOT="3" |
53 |
+IUSE="test" |
54 |
+ |
55 |
+DEPEND="${DEPEND} test? ( || ( www-client/firefox www-client/firefox-bin ) )" |
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/regexp_parser-1.5:1 |
72 |
+ >=dev-ruby/xpath-3.2:3" |
73 |
+ |
74 |
+all_ruby_prepare() { |
75 |
+ sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' -e '/statistics/Id' spec/spec_helper.rb || die |
76 |
+ |
77 |
+ # Avoid window-manager specific tests (sizes are specific for fluxbox) |
78 |
+ sed -i -e '/#maximize/,/^ end/ s:^:#:' lib/capybara/spec/session/window/window_spec.rb || die |
79 |
+ |
80 |
+ # Avoid spec that requires unpackaged geckodriver |
81 |
+ sed -i -e '/describe.*register_server/,/^ end/ s:^:#:' spec/capybara_spec.rb || die |
82 |
+ |
83 |
+ # Avoid test dependency on puma server for now |
84 |
+ sed -i -e '/should have :puma registered/,/^ end/ s:^:#:' spec/capybara_spec.rb || die |
85 |
+ |
86 |
+ # Update spec to catch the right error code. This seems to have |
87 |
+ # changed recently accross ruby versions. |
88 |
+ sed -i -e '/raise_error/ s/EOFError/Net::ReadTimeout/' spec/server_spec.rb || die |
89 |
+} |
90 |
+ |
91 |
+each_ruby_test() { |
92 |
+ virtx ${RUBY} -Ilib -S rspec-3 spec || die "Tests failed." |
93 |
+} |