diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-04-18 08:05:06 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-04-18 08:07:12 +0200 |
commit | 092f8c507e9cbaac99eb911780a94ece28891592 (patch) | |
tree | 922d6335f5d2903af3850af7e412969cd1d795e5 /dev-ruby/capybara | |
parent | dev-lang/ruby: add 2.6.3 (diff) | |
download | gentoo-092f8c507e9cbaac99eb911780a94ece28891592.tar.gz gentoo-092f8c507e9cbaac99eb911780a94ece28891592.tar.bz2 gentoo-092f8c507e9cbaac99eb911780a94ece28891592.zip |
dev-ruby/capybara: add 3.16.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r-- | dev-ruby/capybara/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/capybara/capybara-3.16.2.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index 3211a1f6b686..022a3586d9ee 100644 --- a/dev-ruby/capybara/Manifest +++ b/dev-ruby/capybara/Manifest @@ -4,4 +4,5 @@ DIST capybara-3.12.0.gem 313344 BLAKE2B 7efac262e6bfee18a44b0a399bee0671e98c9d08 DIST capybara-3.13.2.gem 320512 BLAKE2B f6586c9e38ace599b8214b71e6516c2d7b236777d1cf2beba01d276e624cb1a49b2dc3c7fb74ef13d5bf666aeed2110fc4e7991ef960c7dd9af1430d9b6333db SHA512 e3d2f81934d75b6a54a80b913be411b617074412ccf15897454568dc9c35557a4825b6c7ac67b6f808dd199123c164c83af8bcc9edd61c2a02bc65723668774f DIST capybara-3.14.0.gem 323072 BLAKE2B cfcc97d2e8275ec2ce4bd991038e47ee65dc8397932fea695c9806d6641f7c9fed1e9c346da3e6cf612a6c0e2476e54a330fcf6fbff475850f2d0e81a428b51c SHA512 8a01738530263155e671a7646731c666a4287ca8d143cf474d0f248aa862affb03f9a4bba31c3ffd6092d9f9edb21147105a1a53fbd45751cd49f133cdfd91c2 DIST capybara-3.15.0.gem 328192 BLAKE2B a70e77447c7fc2a52ec2f49377dffed167e6da21dfe3815122dcd2467c5d7022c40a320207de5d6e5bcde466d6605a0ddcf8596219519c77ff4c7e3042303476 SHA512 7d4aacfccead777f41e3acdabd642628e7e617e6c3df5078ba672c3cca5aa635b954cfc48601a5675afeeb3d4d161d70f5e0f24b413ab83c0dbde08cd2dda30b +DIST capybara-3.16.2.gem 328704 BLAKE2B cec9871efe380b57b2dea54824e2032de5bbdc7bb49fbdb8c4f135ba4ae577431e9813a8532f37bff3616820916014a91fd5e558f4f0049a4718fc22e12f953d SHA512 9350fdffa5991aa680337a77ea5422adf0c9cce9c2c42a0e30b7994377cce827c971e4e34c4331b2e2bf7fd3036845416dbaa06ebeb2c6d40c89749fec3240cc DIST capybara-3.2.1.gem 284672 BLAKE2B 9da8f588049fab74c4e734626e42758cdd4baf555cfc64e7456bfab2cb4d5c90ed6bfc8ada7cc0d6323ef1113169aec70fd4254aa50c003408376ea4afe00a06 SHA512 50af1d4c49c200a4c08901d19b16826499abb8d19de8e059160c509afd555edbe620b6fd5d78f8c286feeb15a72e5a4b241cb1f14151b349fd94cdd3648b64b2 diff --git a/dev-ruby/capybara/capybara-3.16.2.ebuild b/dev-ruby/capybara/capybara-3.16.2.ebuild new file mode 100644 index 000000000000..afdd54d05cc6 --- /dev/null +++ b/dev-ruby/capybara/capybara-3.16.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="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 www-client/firefox-bin ) )" + +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/regexp_parser-1.2:1 + >=dev-ruby/xpath-3.2:3" + +all_ruby_prepare() { + sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' -e '/statistics/Id' 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." +} |