summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2018-07-25 06:54:19 +0200
committerHans de Graaff <graaff@gentoo.org>2018-07-25 06:54:19 +0200
commit8acb750a6f01f32f8f7ba4a3b29f8c8e5e685ca4 (patch)
treec964b51de4541f3085bd5189c220e3f3da6936e0 /dev-ruby
parentprofiles: remove django-tastypie "doc" USE mask (diff)
downloadgentoo-8acb750a6f01f32f8f7ba4a3b29f8c8e5e685ca4.tar.gz
gentoo-8acb750a6f01f32f8f7ba4a3b29f8c8e5e685ca4.tar.bz2
gentoo-8acb750a6f01f32f8f7ba4a3b29f8c8e5e685ca4.zip
dev-ruby/capybara: add 3.4.2
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/capybara/Manifest1
-rw-r--r--dev-ruby/capybara/capybara-3.4.2.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest
index 7bc0fdb672e3..d6e0cc3ebcfe 100644
--- a/dev-ruby/capybara/Manifest
+++ b/dev-ruby/capybara/Manifest
@@ -3,3 +3,4 @@ DIST capybara-2.18.0.gem 274432 BLAKE2B 992799362025b81a0d074fb06fdafef4c4385ca1
DIST capybara-3.1.1.gem 282112 BLAKE2B 82740933a34bc80ff4901fdf538b9d48d3ae8b5d9c906f462a964104ee1312a74697528f1803eeead0a250823baaedb1f2d4839053b26e4a9ed0fccbc224a137 SHA512 955918a004f11af93caecf964738108edd31ebfb239d6af752bc48ac74b754320014b997d01b8cd12bec5aeef27c88b6737cf7d0ba7dfdb4ce983939ae534546
DIST capybara-3.2.1.gem 284672 BLAKE2B 9da8f588049fab74c4e734626e42758cdd4baf555cfc64e7456bfab2cb4d5c90ed6bfc8ada7cc0d6323ef1113169aec70fd4254aa50c003408376ea4afe00a06 SHA512 50af1d4c49c200a4c08901d19b16826499abb8d19de8e059160c509afd555edbe620b6fd5d78f8c286feeb15a72e5a4b241cb1f14151b349fd94cdd3648b64b2
DIST capybara-3.4.1.gem 292352 BLAKE2B baf07378ec9c932ca4fac4b9ce465b76704c5b17cea73db01d584dbf7076b2c6defe0170a0575691f6af5dcda2d8f97bd16a3901d36c8a9db63c72491fbfc962 SHA512 abd969af564a9b8a827493674d51e2cabbb57c47795ede260498f99600da0da9bf00c97e64ccd07cfdb1b630135714191f232f166e08856a4cb9fdff6c47fe1a
+DIST capybara-3.4.2.gem 292864 BLAKE2B f04bef4540df60eaaeab2cdf59577962493da34adae1abcb4fc23101244a522fa2bc80ad86ba906368a98e68d6918877a073be1e0068b4eb2ba44e0d060b40cd SHA512 e9415ce626a1391d9a0af944d9afaa536d98b6d44bb19d288e3b71399effa2fa8ffeef72a0fb2d786a3267f6809943f499f50f88f95c24552888db24888867e5
diff --git a/dev-ruby/capybara/capybara-3.4.2.ebuild b/dev-ruby/capybara/capybara-3.4.2.ebuild
new file mode 100644
index 000000000000..27821bfea232
--- /dev/null
+++ b/dev-ruby/capybara/capybara-3.4.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby23 ruby24 ruby25"
+
+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"
+SLOT="3"
+IUSE="test"
+
+DEPEND="${DEPEND} test? ( www-client/firefox )"
+
+ruby_add_bdepend "test? ( dev-ruby/rspec:3 dev-ruby/launchy >=dev-ruby/selenium-webdriver-2.0 dev-ruby/sinatra:2 )"
+
+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/xpath-3.1:3"
+
+all_ruby_prepare() {
+ sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' 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
+}
+
+each_ruby_test() {
+ virtx ${RUBY} -Ilib -S rspec-3 spec || die "Tests failed."
+}