diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-11-21 06:33:10 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-11-21 06:33:10 +0100 |
commit | 27f86017edf8758abfa12b516f0a2fb70b6eede0 (patch) | |
tree | a89d5273f9032654546eef539a7f536144062004 /dev-ruby/capybara | |
parent | sys-apps/portage: version bump to 2.3.15 (diff) | |
download | gentoo-27f86017edf8758abfa12b516f0a2fb70b6eede0.tar.gz gentoo-27f86017edf8758abfa12b516f0a2fb70b6eede0.tar.bz2 gentoo-27f86017edf8758abfa12b516f0a2fb70b6eede0.zip |
dev-ruby/capybara: add 2.16.1
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r-- | dev-ruby/capybara/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/capybara/capybara-2.16.1.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index ed978a4465b9..9884139b368f 100644 --- a/dev-ruby/capybara/Manifest +++ b/dev-ruby/capybara/Manifest @@ -3,3 +3,4 @@ DIST capybara-2.15.2.gem 270848 SHA256 11223a4f98942913a67520c8e1126ae6f544b48f2 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 DIST capybara-2.16.0.gem 272896 SHA256 7f7548498a949da90c2ddb201ba4f4c1a4c098b91b193b031a196349dde52e39 SHA512 a51eeb4605644fa20f5b3977fe20b810655d666f2a838de673c20338aa3b3ba35c67dfcb9b65145189bba0d6058ec79c4abb6432af2852a1ef8033b3a463fe6d WHIRLPOOL de53c9087e64edc6fe4f384f077b23d3098b014e0728e788582ddc723bfb4121dc7837b3c76740a3fc125a0155e29cbed3fb12ae9fd180cf64e0d145e421d59e +DIST capybara-2.16.1.gem 273408 SHA256 6eef8dec4cb3023d4be7fc0c289e35e4cb8d907707ecb8444949b877c0357442 SHA512 921e05111278b7bff93fe805a29e7b2e0e78b36510db5dff1189e34c3cdeada52504a8e06534238e578c32e8e0efa8d99a0ffc8516d94e60c06e7fd2c4ecb174 WHIRLPOOL aff5e42f269282f09af0b4c5dfee708cb6a89f46aa579769b910dbe252011f4484adcc42deaba9dead2df34d140a7d9cbbc76b723f5edc8f47501d0cde144d9c diff --git a/dev-ruby/capybara/capybara-2.16.1.ebuild b/dev-ruby/capybara/capybara-2.16.1.ebuild new file mode 100644 index 000000000000..e978384153dc --- /dev/null +++ b/dev-ruby/capybara/capybara-2.16.1.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." +} |