summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-01-20 07:55:57 +0100
committerHans de Graaff <graaff@gentoo.org>2016-01-20 07:56:27 +0100
commit2e65754931f6e872f9a35c26d4610890d15d336f (patch)
tree2f71cb1170fe9fbdb4ca575726bca91cab9ec4a4 /dev-ruby/capybara
parentdev-ruby/spring: add 1.6.2 with ruby22 (diff)
downloadgentoo-2e65754931f6e872f9a35c26d4610890d15d336f.tar.gz
gentoo-2e65754931f6e872f9a35c26d4610890d15d336f.tar.bz2
gentoo-2e65754931f6e872f9a35c26d4610890d15d336f.zip
dev-ruby/capybara: add 2.6.0
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r--dev-ruby/capybara/Manifest1
-rw-r--r--dev-ruby/capybara/capybara-2.6.0.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest
index 52d921c22f26..e5fa61b2c61a 100644
--- a/dev-ruby/capybara/Manifest
+++ b/dev-ruby/capybara/Manifest
@@ -1,2 +1,3 @@
DIST capybara-1.1.4.gem 72192 SHA256 33073d7e4920a3e74c61ec46d1afe655eb0f3361187113c5e146df498e4611ed SHA512 102738031281d0fabd645fa6d941cf0a9ddd56f90d53d7cc1c8a7b03a37b6af8f4cddd178e6fc07d6751a539a5039cf20502eabdd49e8001793601bb312b47a3 WHIRLPOOL 81eff318acfdc0806c9f8d4e212068edd57694d44db1e29bbefaa7a4db162f3a2354374d6ab97ad7c2372ff9e6f6bb864ed483050facad5c298c2223a39c63cc
DIST capybara-2.5.0.gem 240640 SHA256 755c32b0ba828b2671ca63605cce4e4c3b494b16e91bf4f99e445975488ebc61 SHA512 30431cc78c16a26f850ef1a1d60af4c9934ce89ffa3ed9c305af903640a66dc78e831614c22ed7725bf23d70e5de6b50b6c1d23cc3e33c815e73a2f1117dc13c WHIRLPOOL cb1dded65c7a789a46df0a86fbaf1f3104a4ece86133b8003c8c6ac18b8d6ed4d86f50310fe7d5a4d523393258c9bbf636c088d00f2a9d8f751390ed08d02bca
+DIST capybara-2.6.0.gem 220160 SHA256 a34de24ef02b2cd42367f580a8b005e3793fb0a6a53a71d7d8c267ec1a1472fc SHA512 d7b2006565bb3118f5c16d2bf50aa833f56bd862b00b3dc483d09e1f1474f5882b3121d69ae0699c90f950589b8d673f384e20b93f1eee663dbfd76801ce2993 WHIRLPOOL d9da6ec338df9d2eda4019df877f66d68329a8027f00331f5f2fab6f9ffd051c0ada0843dcf27d93843f818619367a220092dfea47708a4c2e1dfc8b51690c2a
diff --git a/dev-ruby/capybara/capybara-2.6.0.ebuild b/dev-ruby/capybara/capybara-2.6.0.ebuild
new file mode 100644
index 000000000000..e1f0df21bdfb
--- /dev/null
+++ b/dev-ruby/capybara/capybara-2.6.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+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="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 )"
+
+ruby_add_rdepend "
+ >=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' 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."
+}