summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/capybara/Manifest1
-rw-r--r--dev-ruby/capybara/capybara-3.11.1.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest
index fe1aa37d748..a1e0ba1c86d 100644
--- a/dev-ruby/capybara/Manifest
+++ b/dev-ruby/capybara/Manifest
@@ -1,4 +1,5 @@
DIST capybara-2.18.0.gem 274432 BLAKE2B 992799362025b81a0d074fb06fdafef4c4385ca18ea85a7095d9e58625df6a59a349b60b462c5c4f403a6af955466bc46d82be6cd91724fc2b12cbe15ed74a4c SHA512 3bb994e022593d485a07296193a16cae7b45e96e87dd10b2bd4807ad2bc990801044c0493360598d1626c3e367e8de87e407f65c2c6f42674d5f1b9c0b5c1933
+DIST capybara-3.11.1.gem 310784 BLAKE2B ed2c26d0340b0c0ea0fd008436ce29a38d650bf1a7b31279863c0f84e5bcebbd534f4611e9656743cdb9c61ca9eac4c3b152d21d6b630427829f3a2e53f27057 SHA512 d97c53135d5ea040950f42750f1644c7a1ba96ff86cefbc83934a19173cae1f303f4ed5b56b95b5d7b9dfb83209312de5e129275b03d472e2614371d4234082b
DIST capybara-3.2.1.gem 284672 BLAKE2B 9da8f588049fab74c4e734626e42758cdd4baf555cfc64e7456bfab2cb4d5c90ed6bfc8ada7cc0d6323ef1113169aec70fd4254aa50c003408376ea4afe00a06 SHA512 50af1d4c49c200a4c08901d19b16826499abb8d19de8e059160c509afd555edbe620b6fd5d78f8c286feeb15a72e5a4b241cb1f14151b349fd94cdd3648b64b2
DIST capybara-3.6.0.gem 296448 BLAKE2B 4054aaac6b6e0d5f1f0c1adee1951dcac7fcb3b2061dfe9de261e6c8bb749d6c88eb2c5a635b683e9a02719870435d52546701f4f21f722068836d4acd78f3eb SHA512 d99e9aab306955e01c08f26e7e8e042019b30d97c106ce6e33c96d7277670b81a143312c06e89c2f6c5f959af461d219c213c3660e895bec1e8cfcae030728b4
DIST capybara-3.7.2.gem 299520 BLAKE2B eea9d0bc35483174ccedd9366c04484a5b819e40aa6f0d01ceefad1700b04ded446d2b14de826981296666fd5f7a5440f08dc2ee437ee3db8e7bcd70d6cde636 SHA512 980346ea0fd1c3cb6de2423707d8c8e637f64bde2c1ef48622a08d1fe2177e29eb5d7125a048ebafaf4ca1591c483d34a8b17ed7288985dad783023ed35305e0
diff --git a/dev-ruby/capybara/capybara-3.11.1.ebuild b/dev-ruby/capybara/capybara-3.11.1.ebuild
new file mode 100644
index 00000000000..2380395dc83
--- /dev/null
+++ b/dev-ruby/capybara/capybara-3.11.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2018 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"
+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/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"' 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."
+}