diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-06-28 07:17:08 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-06-28 07:17:08 +0200 |
commit | beed227cc034a49265f166a1ed96e6f0bb9c7721 (patch) | |
tree | b9ad72d3c889e19b6902d156b96c5145d0cc990b /dev-ruby/capybara | |
parent | dev-ruby/erubi: add 1.6.1 (diff) | |
download | gentoo-beed227cc034a49265f166a1ed96e6f0bb9c7721.tar.gz gentoo-beed227cc034a49265f166a1ed96e6f0bb9c7721.tar.bz2 gentoo-beed227cc034a49265f166a1ed96e6f0bb9c7721.zip |
dev-ruby/capybara: add 2.14.4
Package-Manager: Portage-2.3.6, 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.4.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index 05900400dc2b..9b208707e866 100644 --- a/dev-ruby/capybara/Manifest +++ b/dev-ruby/capybara/Manifest @@ -2,3 +2,4 @@ DIST capybara-1.1.4.gem 72192 SHA256 33073d7e4920a3e74c61ec46d1afe655eb0f3361187 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.3.gem 265728 SHA256 54ee720aa4ecc845aab5f703b3e7acedf230560be33e7b62de2b2f2caa28dd15 SHA512 e5a9334cb25a0456a118565ee10e0b73efc678133e10c7b921ba8facde97a747426fbe9c0555e70967837a3037de57ea25e8b6692a8fe186d568ea8a214178d4 WHIRLPOOL a7a02b1329879fd98ff70fece5b2277b8a0c9f9c809d0e8ad88105a9d907a64b8c3288996dccf8e6f9dcebb4ab196359865aae36c8bb1b0f61c922d45796a6f1 +DIST capybara-2.14.4.gem 265728 SHA256 bbdfd40c542c790dab81032e23bbc7438a562bbe440b4712abcad67f10d17d7d SHA512 d3ebbd8d96e4d2026327b1c70ff723225ce052fff510a909111b8cc7e02b12fec9e00acddc0bc2565371cc5eb0b590abef43d42a99c3938a929ea25930fdefd1 WHIRLPOOL e4829ed0895af9b80c936ffe7f274e0637ab0b1cc2e790e261089fae14a0f8544fd178409e1420527d5eec69104a96aa4ab87e0f6f088e94bad9371e4c260ce2 diff --git a/dev-ruby/capybara/capybara-2.14.4.ebuild b/dev-ruby/capybara/capybara-2.14.4.ebuild new file mode 100644 index 000000000000..4e501520f353 --- /dev/null +++ b/dev-ruby/capybara/capybara-2.14.4.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." +} |