summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-09-24 09:10:58 +0200
committerHans de Graaff <graaff@gentoo.org>2016-09-24 09:11:32 +0200
commit8d997afd57c46fba57f1ee50f076ebbd50a4f252 (patch)
tree4100ba5d0ef9b95a473d0bbb3f32455700001ee8 /dev-ruby/capybara
parentdev-ruby/ammeter: add 1.1.4 (diff)
downloadgentoo-8d997afd57c46fba57f1ee50f076ebbd50a4f252.tar.gz
gentoo-8d997afd57c46fba57f1ee50f076ebbd50a4f252.tar.bz2
gentoo-8d997afd57c46fba57f1ee50f076ebbd50a4f252.zip
dev-ruby/capybara: add 2.9.1
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r--dev-ruby/capybara/Manifest1
-rw-r--r--dev-ruby/capybara/capybara-2.9.1.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest
index c2bdf8afbde8..97dcdbaea512 100644
--- a/dev-ruby/capybara/Manifest
+++ b/dev-ruby/capybara/Manifest
@@ -1,3 +1,4 @@
DIST capybara-1.1.4.gem 72192 SHA256 33073d7e4920a3e74c61ec46d1afe655eb0f3361187113c5e146df498e4611ed SHA512 102738031281d0fabd645fa6d941cf0a9ddd56f90d53d7cc1c8a7b03a37b6af8f4cddd178e6fc07d6751a539a5039cf20502eabdd49e8001793601bb312b47a3 WHIRLPOOL 81eff318acfdc0806c9f8d4e212068edd57694d44db1e29bbefaa7a4db162f3a2354374d6ab97ad7c2372ff9e6f6bb864ed483050facad5c298c2223a39c63cc
DIST capybara-2.7.1.gem 227328 SHA256 2c010cefb36e701bc576223c877ed173b316d06e5d50512eb242cde487bed513 SHA512 cb9249957bf24ce73c2465d6f1cd01fbc32c211b355ed47ce345e376fca705203da362ee2697e9f1dc72bb807df9c0728441635ee6f4681d1270a475cc606cc8 WHIRLPOOL c9b52c150c722b983b11dd466bbad79f1632a63fbd664f395d23d30636334b09f281d2d89329824ae37f7015699266f577c577b5c280005fc079dab72c649dfa
DIST capybara-2.8.1.gem 234496 SHA256 72ce8c0cf65368e9ebd72beaf3bd1499d2f8d486d260c1d66493cc8779fa7cca SHA512 efd1807a93bdb15b5ed67f19370d2381d7f22d06233298194254b314240aada2c41fbb722dfff5c136cb6f7591559bed9823b35b1ac0a2f16ebfb160f3b559a7 WHIRLPOOL 50fe91119dc09249bde46bdf6f7c3dd9567566573e211ff3d9afdf7420f55ba449cbc98d57e663d211dc2cd3674464da7f544234e3c92365763106a27c4b1b6a
+DIST capybara-2.9.1.gem 240640 SHA256 6f723ccc2cb5ae221cea1877699e7ea1c84663eaf265f8b15fac259337fe3365 SHA512 919f1cfc4c8a4bf1d3d4781f198b9464b5aa579e789a03c794f62869cfd643f4a360ecaa74a6b764fe50d827c6caedcb36f14f0964d4c96c3395f3d8e8dc640f WHIRLPOOL 1eddc43aabdbdb30910f5425020ebafbed99803b1eaf0a0de23901e45565925cfbacbfef368e15350296959e3f995c1e3410490b0bfd94a3de56d1ab95cdd704
diff --git a/dev-ruby/capybara/capybara-2.9.1.ebuild b/dev-ruby/capybara/capybara-2.9.1.ebuild
new file mode 100644
index 000000000000..8faf2c648044
--- /dev/null
+++ b/dev-ruby/capybara/capybara-2.9.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+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="2"
+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 )"
+
+ruby_add_rdepend "
+ dev-ruby/addressable
+ >=dev-ruby/mime-types-1.16:*
+ >=dev-ruby/nokogiri-1.3.3
+ >=dev-ruby/rack-1.0.0:*
+ >=dev-ruby/rack-test-0.5.4
+ >=dev-ruby/xpath-2.0.0:2"
+
+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
+}
+
+each_ruby_test() {
+ VIRTUALX_COMMAND=${RUBY}
+ virtualmake -Ilib -S rspec-3 spec || die "Tests failed."
+}