commit:     5a44e8d667fedfdc80398c5fc206f09f37b9924f
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 26 06:30:23 2019 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Feb 26 06:30:23 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a44e8d6

dev-ruby/capybara: add 3.14.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-ruby/capybara/Manifest               |  1 +
 dev-ruby/capybara/capybara-3.14.0.ebuild | 57 ++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest
index 6e56a926c0c..774ac518e43 100644
--- a/dev-ruby/capybara/Manifest
+++ b/dev-ruby/capybara/Manifest
@@ -2,4 +2,5 @@ DIST capybara-2.18.0.gem 274432 BLAKE2B 
992799362025b81a0d074fb06fdafef4c4385ca1
 DIST capybara-3.11.1.gem 310784 BLAKE2B 
ed2c26d0340b0c0ea0fd008436ce29a38d650bf1a7b31279863c0f84e5bcebbd534f4611e9656743cdb9c61ca9eac4c3b152d21d6b630427829f3a2e53f27057
 SHA512 
d97c53135d5ea040950f42750f1644c7a1ba96ff86cefbc83934a19173cae1f303f4ed5b56b95b5d7b9dfb83209312de5e129275b03d472e2614371d4234082b
 DIST capybara-3.12.0.gem 313344 BLAKE2B 
7efac262e6bfee18a44b0a399bee0671e98c9d08e999e9c9cba5a325ed2e9da25e873d789a01d9e066a04aeab0ea3a6a35207e7d0ab05f63eca8331d93acbee8
 SHA512 
a0bc868fb69343c9b037fc7bfbc998662720a212821cb78a02d6dee29d841d1fc4781c6e5e6fe1d4a356ae495ea56dc356ec734b26005215a55ca1eb8a7e2789
 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.2.1.gem 284672 BLAKE2B 
9da8f588049fab74c4e734626e42758cdd4baf555cfc64e7456bfab2cb4d5c90ed6bfc8ada7cc0d6323ef1113169aec70fd4254aa50c003408376ea4afe00a06
 SHA512 
50af1d4c49c200a4c08901d19b16826499abb8d19de8e059160c509afd555edbe620b6fd5d78f8c286feeb15a72e5a4b241cb1f14151b349fd94cdd3648b64b2

diff --git a/dev-ruby/capybara/capybara-3.14.0.ebuild 
b/dev-ruby/capybara/capybara-3.14.0.ebuild
new file mode 100644
index 00000000000..ac78bf082bf
--- /dev/null
+++ b/dev-ruby/capybara/capybara-3.14.0.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="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 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."
+}

Reply via email to