diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-04-09 10:37:02 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-04-09 10:38:47 +0200 |
commit | 9d65c0c805f8a41a90d8b34a8138638eb96c6c92 (patch) | |
tree | 661592f24f6b39f6a88ae5cee03e29ee36435325 /dev-ruby/capybara | |
parent | dev-ruby/ruby-romkan: cleanup (diff) | |
download | gentoo-9d65c0c805f8a41a90d8b34a8138638eb96c6c92.tar.gz gentoo-9d65c0c805f8a41a90d8b34a8138638eb96c6c92.tar.bz2 gentoo-9d65c0c805f8a41a90d8b34a8138638eb96c6c92.zip |
dev-ruby/capybara: add 2.7.0
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r-- | dev-ruby/capybara/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/capybara/capybara-2.7.0.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index 7bab93fd7f19..a60f68c533db 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.6.2.gem 220160 SHA256 dc03b0065090b6f7a41fc242d15f06ea5bc97337620fa8fbd2a541ce8b3ac752 SHA512 a50de9bf3e09270a8ad4739326ecb938901e098caa7610cb5daa3df7d79753dcbe77beca60237d3a0536e0e6518af517dc6d96e9fea37d19ceb89a6f6905969d WHIRLPOOL 509b8963f5ea7808f4ebf1c24a34bcfa8b27374f900d63a2c07a44367e48e2208e30477f92e058d2b8724ce063c8f03b76046303a98d9325ce03d5405400b40f +DIST capybara-2.7.0.gem 227328 SHA256 645f6c2edddd6d90cab56cb471f262a222db566f38c7dc1e08477f2b00f6d8ec SHA512 522970c329d3e48265ce65329d8c0b11133364b69beb141d943f4336eb5b87d0f8327c4a5e976fa71f80c3ff84796ce9750eb05f73a18073672fe3f667344828 WHIRLPOOL 33ce95e2d4e9dbe118916291f7a4cb491f8dfc8178a68d6b7fbbd0c4f688f7af86342ce592d45fd7616ad8eb2e01a97d23f41bdb145ff986ba2bac26471856af diff --git a/dev-ruby/capybara/capybara-2.7.0.ebuild b/dev-ruby/capybara/capybara-2.7.0.ebuild new file mode 100644 index 000000000000..29d850aca7ec --- /dev/null +++ b/dev-ruby/capybara/capybara-2.7.0.ebuild @@ -0,0 +1,46 @@ +# 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/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' 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." +} |