summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-05-24 08:43:20 +0200
committerHans de Graaff <graaff@gentoo.org>2019-05-24 09:06:06 +0200
commit1426a731455aeb251927db6d4b9a45bfe92da939 (patch)
treec1e170fcee31c5b7cd29085051107aa801f92f82 /dev-ruby/capybara
parentdev-ruby/fakefs: cleanup (diff)
downloadgentoo-1426a731455aeb251927db6d4b9a45bfe92da939.tar.gz
gentoo-1426a731455aeb251927db6d4b9a45bfe92da939.tar.bz2
gentoo-1426a731455aeb251927db6d4b9a45bfe92da939.zip
dev-ruby/capybara: add 3.20.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r--dev-ruby/capybara/Manifest1
-rw-r--r--dev-ruby/capybara/capybara-3.20.2.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest
index 7a75d1bc96a3..8556a9ac3505 100644
--- a/dev-ruby/capybara/Manifest
+++ b/dev-ruby/capybara/Manifest
@@ -6,3 +6,4 @@ DIST capybara-3.19.0.gem 333312 BLAKE2B 31bd7caf2f9964d4baa37526dc8b0a4f734df16e
DIST capybara-3.19.1.gem 333312 BLAKE2B ff0ea453066b2b11f417f9ea54af47ed9fb27847a09967a07c97196dda0e76e2c9862bea89c9ef7006bedc0dabe3b6e5cab19fa12f5b2e80f8872ca43b6dfdb0 SHA512 3098748e34ea794b13bfb62fc3a98c3cda8acfe1cfdfc9d816a4cf2c38aff6f1b9f23b4d84ca2cb8f0257a7bf1f5c368dcd40148354661687346ed30dd005b87
DIST capybara-3.2.1.gem 284672 BLAKE2B 9da8f588049fab74c4e734626e42758cdd4baf555cfc64e7456bfab2cb4d5c90ed6bfc8ada7cc0d6323ef1113169aec70fd4254aa50c003408376ea4afe00a06 SHA512 50af1d4c49c200a4c08901d19b16826499abb8d19de8e059160c509afd555edbe620b6fd5d78f8c286feeb15a72e5a4b241cb1f14151b349fd94cdd3648b64b2
DIST capybara-3.20.1.gem 344064 BLAKE2B ba014545dc42d4e024de42b4d359fc6fbd799209836082e2e0c862057f620018d492c8e5537fe378d43c0f0b830b419e09352341ff24ef6dd3efc6ff1bf780a6 SHA512 473b8b177e75fecb4ef1b070cfb39618210a589603ed74290ff155c71ee4059ffbf0bb00541a2f4082a15e54c87ae1cc0700637c3dbbae0ecb5ee4130b3e9cce
+DIST capybara-3.20.2.gem 344064 BLAKE2B 6b0c8551c2cc88ddd201d416abea25b03c874ac65bc3d7abeda0990e03bed231493310dedd287be1c8961e1d38c7d4d0060698645223167113b86dc650dd6ec0 SHA512 f91902712c5140428260fde24643900c628c75de66752a655584c600c84bd55e9f5153c694c7b286d0c295f18bb459906bf5e68ca636bbabb29f84c4f82031c4
diff --git a/dev-ruby/capybara/capybara-3.20.2.ebuild b/dev-ruby/capybara/capybara-3.20.2.ebuild
new file mode 100644
index 000000000000..bbbfa3a36f7f
--- /dev/null
+++ b/dev-ruby/capybara/capybara-3.20.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+# Rake tasks are not distributed in the gem.
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST=""
+
+inherit virtualx ruby-fakegem
+
+DESCRIPTION="Capybara aims to simplify the process of integration testing Rack applications"
+HOMEPAGE="https://github.com/jnicklas/capybara"
+LICENSE="MIT"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="3"
+IUSE="test"
+
+DEPEND="${DEPEND} test? ( || ( www-client/firefox www-client/firefox-bin ) )"
+
+ruby_add_bdepend "test? (
+ dev-ruby/rspec:3
+ >=dev-ruby/launchy-2.4.0
+ >=dev-ruby/selenium-webdriver-3.5:3
+ dev-ruby/sinatra:2
+ www-servers/puma
+)"
+
+ruby_add_rdepend "
+ dev-ruby/addressable
+ >=dev-ruby/mini_mime-0.1.3
+ >=dev-ruby/nokogiri-1.8:0
+ >=dev-ruby/rack-1.6.0:*
+ >=dev-ruby/rack-test-0.6.3:*
+ >=dev-ruby/regexp_parser-1.2:1
+ dev-ruby/uglifier:*
+ >=dev-ruby/xpath-3.2:3"
+
+all_ruby_prepare() {
+ sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' -e '/statistics/Id' spec/spec_helper.rb || die
+
+ # Avoid window-manager specific tests (sizes are specific for fluxbox)
+ sed -i -e '/#maximize/,/^ end/ s:^:#:' lib/capybara/spec/session/window/window_spec.rb || die
+
+ # Avoid spec that requires unpackaged geckodriver
+ sed -i -e '/describe.*register_server/,/^ end/ s:^:#:' spec/capybara_spec.rb || die
+
+ # Avoid test dependency on puma server for now
+ sed -i -e '/should have :puma registered/,/^ end/ s:^:#:' spec/capybara_spec.rb || die
+
+ # Update spec to catch the right error code. This seems to have
+ # changed recently accross ruby versions.
+ sed -i -e '/raise_error/ s/EOFError/Net::ReadTimeout/' spec/server_spec.rb || die
+}
+
+each_ruby_test() {
+ virtx ${RUBY} -Ilib -S rspec-3 spec || die "Tests failed."
+}