diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-09-22 07:36:14 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-09-22 07:36:14 +0200 |
commit | 8e57dcaa8ad463013d565b469fec1dad3e36055f (patch) | |
tree | 9ba9d22a9fa0d145457ea4b6df0b6ed43d7ca532 /dev-ruby/capybara | |
parent | dev-ruby/bunny: add 2.12.0 (diff) | |
download | gentoo-8e57dcaa8ad463013d565b469fec1dad3e36055f.tar.gz gentoo-8e57dcaa8ad463013d565b469fec1dad3e36055f.tar.bz2 gentoo-8e57dcaa8ad463013d565b469fec1dad3e36055f.zip |
dev-ruby/capybara: add 3.8.0
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r-- | dev-ruby/capybara/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/capybara/capybara-3.8.0.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index 584592b36ef1..ca68bbe1d15c 100644 --- a/dev-ruby/capybara/Manifest +++ b/dev-ruby/capybara/Manifest @@ -4,3 +4,4 @@ DIST capybara-3.6.0.gem 296448 BLAKE2B 4054aaac6b6e0d5f1f0c1adee1951dcac7fcb3b20 DIST capybara-3.7.0.gem 299008 BLAKE2B 79f08d71085e6fd42986da5cc69e9f2df21ad65eaad7bbc2d450815c5cd3f6ad38889739ddab7e2fa92548bbe4c23940f46e99a5633b3a6fe80988bd417d55ff SHA512 0c40bdaad6423fa86d1e41bc5c2e8ec8bdb90326631f464dd4ed759a28b9c6e03fd4f5292e11f05cf478c0a5ce19b2df628a259861fb80f94fde367d4f4dacde DIST capybara-3.7.1.gem 299008 BLAKE2B 0f90ee7266a360c0430e55a60f354f2cc079ce3ffa318a12eef1c8faf9637a1d0678f049fc1a921657ca557d99a30bad54ff51b00645eedbc4ecf9567f9d6a20 SHA512 6d5546607652439f7c487e60859803980e90a511acf43a3bb1b197d2f27a9edf50f95a77d4de2fd40570373c03a25b4a0450bc84d509abd264b926acdc1132f1 DIST capybara-3.7.2.gem 299520 BLAKE2B eea9d0bc35483174ccedd9366c04484a5b819e40aa6f0d01ceefad1700b04ded446d2b14de826981296666fd5f7a5440f08dc2ee437ee3db8e7bcd70d6cde636 SHA512 980346ea0fd1c3cb6de2423707d8c8e637f64bde2c1ef48622a08d1fe2177e29eb5d7125a048ebafaf4ca1591c483d34a8b17ed7288985dad783023ed35305e0 +DIST capybara-3.8.0.gem 300544 BLAKE2B 12e6d0f316fdc050380b494dd9d1b35feb14dfcf2e2fca7b439e76538f79e17020774fb02667fe2b576b5fb54fb432fd7a06fbf7147baf71baccfa5d307a337a SHA512 6b8069e1f39d42695bb8f96ddd6f221e1ddcf09ceeeec65588721c89d232497a53fd8e3b8018e65a306eec0a187a15ed26c481a7574a6af7260f86466449c864 diff --git a/dev-ruby/capybara/capybara-3.8.0.ebuild b/dev-ruby/capybara/capybara-3.8.0.ebuild new file mode 100644 index 000000000000..da6c2de9e770 --- /dev/null +++ b/dev-ruby/capybara/capybara-3.8.0.ebuild @@ -0,0 +1,56 @@ +# 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 ~x86" +SLOT="3" +IUSE="test" + +DEPEND="${DEPEND} test? ( www-client/firefox )" + +ruby_add_bdepend "test? ( + dev-ruby/rspec:3 + >=dev-ruby/launchy-2.4.0 + >=dev-ruby/selenium-webdriver-3.5:3 + dev-ruby/sinatra:2 + www-servers/puma +)" + +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.1: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." +} |