diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-05-07 06:39:35 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-05-07 06:40:10 +0200 |
commit | 07532328907f7b81f217ce184b933777e98d5427 (patch) | |
tree | 6a19e495cab1799b7babc757122de11ffa6f8357 /dev-ruby | |
parent | dev-ruby/launchy: add ruby25 (diff) | |
download | gentoo-07532328907f7b81f217ce184b933777e98d5427.tar.gz gentoo-07532328907f7b81f217ce184b933777e98d5427.tar.bz2 gentoo-07532328907f7b81f217ce184b933777e98d5427.zip |
dev-ruby/capybara: add 3.0.3
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/capybara/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/capybara/capybara-3.0.3.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index 67350add4dfc..2e8424fd5cc4 100644 --- a/dev-ruby/capybara/Manifest +++ b/dev-ruby/capybara/Manifest @@ -2,3 +2,4 @@ DIST capybara-2.14.4.gem 265728 BLAKE2B 7b61fc7424b5e5aeec50e0695ef7719d23b594d3 DIST capybara-2.16.1.gem 273408 BLAKE2B 1d1a68427fcfed9a8153e409e17fc043dd8d926c3ebbab3560ae12454f3010c8b4569348c231e807d993263940b703dc5380a235da438eb5ac2f9d0bd3a66309 SHA512 921e05111278b7bff93fe805a29e7b2e0e78b36510db5dff1189e34c3cdeada52504a8e06534238e578c32e8e0efa8d99a0ffc8516d94e60c06e7fd2c4ecb174 DIST capybara-2.18.0.gem 274432 BLAKE2B 992799362025b81a0d074fb06fdafef4c4385ca18ea85a7095d9e58625df6a59a349b60b462c5c4f403a6af955466bc46d82be6cd91724fc2b12cbe15ed74a4c SHA512 3bb994e022593d485a07296193a16cae7b45e96e87dd10b2bd4807ad2bc990801044c0493360598d1626c3e367e8de87e407f65c2c6f42674d5f1b9c0b5c1933 DIST capybara-3.0.2.gem 275456 BLAKE2B bcf2049193062b7d16e811807faf629379bc5a94bba771d442e9680e727d765703ad4c6cf8abd9d0bb22d1971f07d897f0fc8a572182302528961fcfe8b186fb SHA512 5f2611238a58184dcd57a5ca2fff786d4ecfdbb51815c3f6afdcabbb85087baf87fc601d1506a6b880d42af32e06a62e7757b1abf455325718258d3072616a49 +DIST capybara-3.0.3.gem 276480 BLAKE2B a1aa8e8ccc3846c87bdc989f456fdd0c09f41b2939cfe322faa6ae478bacdd1d6b4b13dba55fc74edd50fcfe28eb59eb8a2add8e3fc5ba948bcf8365c0ffbb96 SHA512 7af6c04304f3308322ec374d226b6cd874ba2068be5451da482a6bd2861e404b580e4c74604f0873cd91a52f1d95117efdf850cf19eb9c6265715cff5d503c47 diff --git a/dev-ruby/capybara/capybara-3.0.3.ebuild b/dev-ruby/capybara/capybara-3.0.3.ebuild new file mode 100644 index 000000000000..d9c1c90896ed --- /dev/null +++ b/dev-ruby/capybara/capybara-3.0.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23 ruby24 ruby25" + +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 ~arm64 ~hppa ~x86" +SLOT="3" +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.8:0 + >=dev-ruby/rack-1.6.0:* + >=dev-ruby/rack-test-0.6.3:* + dev-ruby/xpath:3" + +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 '/describe.*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." +} |