diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-06-08 06:55:55 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-06-08 06:59:15 +0200 |
commit | 329eb9a8ff2d569f8f69685c21610b333123a19d (patch) | |
tree | 7ca72f9a5695b751409d958533d5b23586888852 /dev-ruby/capybara | |
parent | sys-apps/nvme-cli: remove old versions (diff) | |
download | gentoo-329eb9a8ff2d569f8f69685c21610b333123a19d.tar.gz gentoo-329eb9a8ff2d569f8f69685c21610b333123a19d.tar.bz2 gentoo-329eb9a8ff2d569f8f69685c21610b333123a19d.zip |
dev-ruby/capybara: add 2.14.1
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r-- | dev-ruby/capybara/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/capybara/capybara-2.14.1.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index 97d82012b05d..d27ba7fd7628 100644 --- a/dev-ruby/capybara/Manifest +++ b/dev-ruby/capybara/Manifest @@ -4,3 +4,4 @@ DIST capybara-2.12.0.gem 252928 SHA256 492cfcfa6763169ccb97655eef3fdb4345f9386ca DIST capybara-2.12.1.gem 252928 SHA256 ac950f6f4645e31b9bbaf0c2b9524556b84ad0ff58b517756dca38baf5f6657c SHA512 8b6225d3b2ec050d3188efd7c3ef6ae7f058f197c80aaf293ed7991a8763a22815d772a759919f62eb8b9d0386ea402667075c9cd2a5613aaa5bc7dc3c1af179 WHIRLPOOL bc470164f8b3f19164bdd825801d8ec42cf53924fee17856b5d65c987f832a4dedf831d9d3f0e07ee6dea727e961c5f998d404ec8a416d3dadf0042292b08ba8 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 diff --git a/dev-ruby/capybara/capybara-2.14.1.ebuild b/dev-ruby/capybara/capybara-2.14.1.ebuild new file mode 100644 index 000000000000..4e501520f353 --- /dev/null +++ b/dev-ruby/capybara/capybara-2.14.1.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." +} |