From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6DD5215ACB3 for ; Fri, 7 Apr 2023 11:26:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CA92E08EB; Fri, 7 Apr 2023 11:26:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 88324E08EB for ; Fri, 7 Apr 2023 11:26:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EC85D335D96 for ; Fri, 7 Apr 2023 11:25:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 42CEAA2B for ; Fri, 7 Apr 2023 11:25:56 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1680866693.b069f10e5424a47aeadcfb8b3ba7af291f443648.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/capybara/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/capybara/capybara-3.39.0-r1.ebuild X-VCS-Directories: dev-ruby/capybara/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b069f10e5424a47aeadcfb8b3ba7af291f443648 X-VCS-Branch: master Date: Fri, 7 Apr 2023 11:25:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 518933f6-dd64-49cd-ae12-32b9d181d6ef X-Archives-Hash: 04c7a4beda1ad3c02b44b6ddd9c1eb9e commit: b069f10e5424a47aeadcfb8b3ba7af291f443648 Author: Sam James gentoo org> AuthorDate: Fri Apr 7 07:46:06 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Apr 7 11:24:53 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b069f10e dev-ruby/capybara: enable ruby32 Signed-off-by: Sam James gentoo.org> dev-ruby/capybara/capybara-3.39.0-r1.ebuild | 61 +++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/dev-ruby/capybara/capybara-3.39.0-r1.ebuild b/dev-ruby/capybara/capybara-3.39.0-r1.ebuild new file mode 100644 index 000000000000..daa72adcbeb3 --- /dev/null +++ b/dev-ruby/capybara/capybara-3.39.0-r1.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 ruby32" + +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 +}