summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-06-10 07:39:15 +0200
committerHans de Graaff <graaff@gentoo.org>2017-06-10 07:48:15 +0200
commit84893cbbeb2fdfd9fff7f4e155a3a79a357d9ac0 (patch)
treeca88c4c85a3d5b211ad2f8837fff9f7c7e26d495 /dev-ruby/capybara
parentdev-ruby/minitest-bonus-assertions: add ruby24 (diff)
downloadgentoo-84893cbbeb2fdfd9fff7f4e155a3a79a357d9ac0.tar.gz
gentoo-84893cbbeb2fdfd9fff7f4e155a3a79a357d9ac0.tar.bz2
gentoo-84893cbbeb2fdfd9fff7f4e155a3a79a357d9ac0.zip
dev-ruby/capybara: add 2.14.2
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r--dev-ruby/capybara/Manifest1
-rw-r--r--dev-ruby/capybara/capybara-2.14.2.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest
index 9f6e86043c05..701d254a803b 100644
--- a/dev-ruby/capybara/Manifest
+++ b/dev-ruby/capybara/Manifest
@@ -3,3 +3,4 @@ DIST capybara-2.12.1.gem 252928 SHA256 ac950f6f4645e31b9bbaf0c2b9524556b84ad0ff5
DIST capybara-2.13.0.gem 257024 SHA256 09d574e170b8042914c08630382ed784694c1b2bd1c04af482fbfd71cd56994d SHA512 35e096fa4aed8fea1456d3271bb0dbeb14215ab856a52071243e76d27aaa25f34b256edf8e391cfe024368555aeb2b68dafc896269d231c01e58c247e7a10ac2 WHIRLPOOL 723a4090cc4a438c45c23a491967043e7a2a9a996df6097b88ce7dd7eb69697f19fdbaa63d4b12c7dea317dbd90456c5ae8dde89899d1888fe0633675daa231f
DIST capybara-2.14.0.gem 262144 SHA256 728f734a39a4af7612b6f03885a8f885aeb4da44e28ce9bc50ade9814733064f SHA512 423cff1e11a3c2739822ef41c36db89169e9f35628f2e569c90580103926da4a831ae5df56bed636628ea75895f106d924be6ccd73a078257ed86b08d9e7c506 WHIRLPOOL 84321d3eee3285d41dfcb3c1cddf52ddce0c75fc6b345b0d92e3d3dd47d3b21d4accb3ccbe9c4a0cfdfab001c965fb9721df9afefedc5ffbd153c02290e03fef
DIST capybara-2.14.1.gem 265216 SHA256 a387085b562cb087938a791da62cc5b2d4b40f4fd637668d74888b768a839523 SHA512 e05c92e59e045a49c97d45dfd553b421b4750c0cb6dc8aba493d66b1c3fd9a18303d7c1fc3c77186703311870e55b4afc1cab4e99c3103d0d9b45c6f0e614e84 WHIRLPOOL 5bde5bba881620ea243dd720097c55079092b9fc9a8f325572da3b9e0a1528cca743a27ebbc38838851dd1bb1713bdda90f0d44dfc88380e761869138b985163
+DIST capybara-2.14.2.gem 265728 SHA256 e775e725c1913f3cf0b1412610a4caca7e0f800ad2a4042ad8b5b87257668ab7 SHA512 988bb29c117329ddf81ad9f086f527647bc044a9dbd2102f7b3fdacc76f2b1a799c4441b59c65cd716eb9ceebf67856305dda07328d58b73271f3e7ea8858771 WHIRLPOOL f8c2e05a7fab161b94cf152c34c075447f19c679add755e4ae5e7b7af002b3224add2888587732c889cbbd8337282837511c7b4a8ca5844f00120296aa9dab65
diff --git a/dev-ruby/capybara/capybara-2.14.2.ebuild b/dev-ruby/capybara/capybara-2.14.2.ebuild
new file mode 100644
index 000000000000..4e501520f353
--- /dev/null
+++ b/dev-ruby/capybara/capybara-2.14.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="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 ~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 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
+
+ # Avoid spec that requires unpackaged geckodriver
+ sed -i -e '/register_server/,/^ end/ s:^:#:' spec/capybara_spec.rb || die
+}
+
+each_ruby_test() {
+ virtx ${RUBY} -Ilib -S rspec-3 spec || die "Tests failed."
+}