diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-10-08 08:48:32 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-10-08 08:48:32 +0200 |
commit | fa156bc7255f384731084f0d0d52944dd59ea871 (patch) | |
tree | 4b98e9847f6942325eb06c011330e95984fc429c /dev-ruby | |
parent | dev-ruby/capybara: cleanup (diff) | |
download | gentoo-fa156bc7255f384731084f0d0d52944dd59ea871.tar.gz gentoo-fa156bc7255f384731084f0d0d52944dd59ea871.tar.bz2 gentoo-fa156bc7255f384731084f0d0d52944dd59ea871.zip |
dev-ruby/capybara: add 2.15.4
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/capybara/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/capybara/capybara-2.15.4.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index d7f2ce7576e9..d1f563f01464 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.14.4.gem 265728 SHA256 bbdfd40c542c790dab81032e23bbc7438a562bbe440b4712abcad67f10d17d7d SHA512 d3ebbd8d96e4d2026327b1c70ff723225ce052fff510a909111b8cc7e02b12fec9e00acddc0bc2565371cc5eb0b590abef43d42a99c3938a929ea25930fdefd1 WHIRLPOOL e4829ed0895af9b80c936ffe7f274e0637ab0b1cc2e790e261089fae14a0f8544fd178409e1420527d5eec69104a96aa4ab87e0f6f088e94bad9371e4c260ce2 DIST capybara-2.15.2.gem 270848 SHA256 11223a4f98942913a67520c8e1126ae6f544b48f26844a9098f5f440caf12b50 SHA512 8c7eec2d23dcf82b1c41144fcaf5151330c220277bf2fe2a4713a79c6b065789465a9e867936a25d00bce727ab218cd3ff9934a67158552a04f552d734ee5387 WHIRLPOOL 519d6c841e8a1edd5372086f76400856525c7f6daa3c97616ab2c6ef4a382d0a66718137b29295af44292608a35d699f1977bf313f628f1abf50a0c619ac7050 DIST capybara-2.15.3.gem 271360 SHA256 b67bcaa5ed9082c14179d9ea5268ff1b3455ece0a52f21bee4e203fe6fc791bf SHA512 8248f29e2da570b693092136850f6a4b8e06451c502493177884a9306bd8704843ddc2d3caa8c530c39909257e308bda86cedf263bcf5eded83d734229de6bca WHIRLPOOL 8777ed1248d8edd36bbb6b142806900d9a2c5785f892e249d27ec1c09bc3537b8b9a686a0475132c1c46bf427055f6644a83dc5ffc72fb76839ae5d6b5adc103 +DIST capybara-2.15.4.gem 271360 SHA256 051d8518c42c20900950b34868c4edb07fd4d116d82175f84c7b96aa1a6b371f SHA512 405f5d9aeafe98e8aafe26d1f563c42ebe737b88efb9a52fbd38aec6b2418e1d7701368c75b6ea4946bf4eee0c1471e9af7be63dda3238ac5c4129fec8e3f999 WHIRLPOOL 7298f246bd465ff45830d2a55247f69f9aee342b128c121cf77c4ce47ccedb607c86310a03f6cb3b6c34c16a787f76a419a81154efea6d8ce160f8453a014f32 diff --git a/dev-ruby/capybara/capybara-2.15.4.ebuild b/dev-ruby/capybara/capybara-2.15.4.ebuild new file mode 100644 index 000000000000..e978384153dc --- /dev/null +++ b/dev-ruby/capybara/capybara-2.15.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby22 ruby23 ruby24" + +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/mini_mime-0.1.3 + >=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 + + # Avoid test dependency on puma server for now + sed -i -e '/should have :puma registered/,/^ end/ s:^:#:' spec/capybara_spec.rb || die +} + +each_ruby_test() { + virtx ${RUBY} -Ilib -S rspec-3 spec || die "Tests failed." +} |