diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-06-16 07:46:41 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-06-16 07:46:41 +0200 |
commit | 35ad62ae0d2283a18d53664c3062865d3307389c (patch) | |
tree | e779d50de0afc014919a6a3d1e9785e46691d326 /dev-ruby/capybara | |
parent | dev-ruby/launchy: add ruby24 (diff) | |
download | gentoo-35ad62ae0d2283a18d53664c3062865d3307389c.tar.gz gentoo-35ad62ae0d2283a18d53664c3062865d3307389c.tar.bz2 gentoo-35ad62ae0d2283a18d53664c3062865d3307389c.zip |
dev-ruby/capybara: add 2.14.3
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.3.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index 701d254a803b..9b514d95532f 100644 --- a/dev-ruby/capybara/Manifest +++ b/dev-ruby/capybara/Manifest @@ -4,3 +4,4 @@ DIST capybara-2.13.0.gem 257024 SHA256 09d574e170b8042914c08630382ed784694c1b2bd 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 +DIST capybara-2.14.3.gem 265728 SHA256 54ee720aa4ecc845aab5f703b3e7acedf230560be33e7b62de2b2f2caa28dd15 SHA512 e5a9334cb25a0456a118565ee10e0b73efc678133e10c7b921ba8facde97a747426fbe9c0555e70967837a3037de57ea25e8b6692a8fe186d568ea8a214178d4 WHIRLPOOL a7a02b1329879fd98ff70fece5b2277b8a0c9f9c809d0e8ad88105a9d907a64b8c3288996dccf8e6f9dcebb4ab196359865aae36c8bb1b0f61c922d45796a6f1 diff --git a/dev-ruby/capybara/capybara-2.14.3.ebuild b/dev-ruby/capybara/capybara-2.14.3.ebuild new file mode 100644 index 000000000000..4e501520f353 --- /dev/null +++ b/dev-ruby/capybara/capybara-2.14.3.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." +} |