diff options
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r-- | dev-ruby/capybara/Manifest | 4 | ||||
-rw-r--r-- | dev-ruby/capybara/capybara-3.39.0.ebuild | 61 | ||||
-rw-r--r-- | dev-ruby/capybara/metadata.xml | 2 |
3 files changed, 65 insertions, 2 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest index a65fa56d0dd8..5666d2927582 100644 --- a/dev-ruby/capybara/Manifest +++ b/dev-ruby/capybara/Manifest @@ -1,3 +1,5 @@ DIST capybara-3.38.0.gem 379392 BLAKE2B e1ba89daa08e43e5f97ed5c649a3ea82c27e2ee7a737844f83ba68f0379cc4ef2a0349bc2ae9af76a5cca3659c11f1ed0d1b7dcae7f7701305ca3644e40a4dee SHA512 530db1102e8bc1bfa1ac55d28a725a26a7c6c98baf89655bb15436217e99c7131edb204638f51831c416e4898b9e7c653b83c74abf8aa644eb4da0ad8cddd44c +DIST capybara-3.39.0.gem 381952 BLAKE2B 2b70bfbf930258c2273bf0c6bddc70e455d1d717bd0ed79fc68459c6f40d47ef8149fec161dbaff08e6d8424aebbdf5160033169a6269408b368525218899e23 SHA512 0910ecef11a007d10e753887d9016bab4de74e2ddf2fa2c8b8fc32bfe7d71d64a8c0b72a0a606aa7b558922ab02b4368d1c42a0df78ecf3f68a5efc34edc8707 EBUILD capybara-3.38.0.ebuild 1831 BLAKE2B 5d6340331a0bfaccce476f8b1a1fc060a0de11d3cbd4601f37326d5d698dc3722cbb8bdd8dd15b63af51d61c9abaed7268743338760f21d009600c94f541c1eb SHA512 c3eef527dcf786987fb191c0a17ddac3c98306f561c1ded71e9e078105f861a2eabfea9aa7324991f5b92b4324269b6115af7db2ee8c9aebecedc399d6e5fbe5 -MISC metadata.xml 344 BLAKE2B cc8fd629cca0ed4f66836cefd43f13a45baa7bb13d157fa7f90c61cdd4a12d71ef773ef9daa8dc6e5b07dcadd1b52a258995136a0792ec1870eb93fbb90cd61d SHA512 dae769c0ee80ebfdbd8b86b471fc13c3ac656bf556e554d3d5ce80108f6f6ab79dfe7a54f51b78af3d29f22807fa5ac5be48bfcf8655c60309bef7e3f80cea5d +EBUILD capybara-3.39.0.ebuild 1836 BLAKE2B cf058f6b49569909a549b9590015dd5c4f75c1161a15b2e934659e99efe5524bb43240b84c3cb48c5b5c62f026de339195224850992c68ade82b8b68b37741c3 SHA512 0377bf0eed16add06515e6d70197fd3112dd48c0a7642c345be6a567d0608fe993576f0610c16b9e164aad2d608fe90749925da5bfd9ccf54341c9be5d08b688 +MISC metadata.xml 348 BLAKE2B b4194195a69c268721e6cd93da0b2c991fdff4528d4835e8a9717ca6b378a9b48930265f6312334d6ee59de19a7b683258a4767c7f436d2fc53a62b1fff600b5 SHA512 ef3fc6dfd16d2111ead7891ee86eca1f2252226a5e35a94182e3a052d5c63299e2e206e09f6f3062ca85b1a31c893a43232807216dd01ef30dd227fa94449c28 diff --git a/dev-ruby/capybara/capybara-3.39.0.ebuild b/dev-ruby/capybara/capybara-3.39.0.ebuild new file mode 100644 index 000000000000..36161f10c21e --- /dev/null +++ b/dev-ruby/capybara/capybara-3.39.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_EXTRADOC="History.md README.md" + +# Rake tasks are not distributed in the gem. +RUBY_FAKEGEM_TASK_TEST="" + +inherit virtualx ruby-fakegem + +DESCRIPTION="Capybara aims to simplify the process of integration testing Rack applications" +HOMEPAGE="https://github.com/teamcapybara/capybara" +LICENSE="MIT" + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~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:4 + || ( dev-ruby/sinatra:3 dev-ruby/sinatra:2 ) + www-servers/puma +)" + +ruby_add_rdepend " + dev-ruby/addressable + dev-ruby/matrix + >=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:2 + >=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 + + # Update spec to catch the right error code. This seems to have + # changed recently across ruby versions. + sed -i -e '/raise_error/ s/EOFError/Net::ReadTimeout/' spec/server_spec.rb || die +} + +each_ruby_test() { + virtx ${RUBY} -Ilib -S rspec-3 spec +} diff --git a/dev-ruby/capybara/metadata.xml b/dev-ruby/capybara/metadata.xml index f2c9b6d808ad..c8f186cb7600 100644 --- a/dev-ruby/capybara/metadata.xml +++ b/dev-ruby/capybara/metadata.xml @@ -6,6 +6,6 @@ <name>Gentoo Ruby Project</name> </maintainer> <upstream> - <remote-id type="github">jnicklas/capybara</remote-id> + <remote-id type="github">teamcapybara/capybara</remote-id> </upstream> </pkgmetadata> |