summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-10-04 06:32:13 +0200
committerHans de Graaff <graaff@gentoo.org>2017-10-04 06:32:13 +0200
commit572f808ed7588a7cb881e8106454870d02544600 (patch)
treebf94a5e10c6aae03e792f65d1a6ec7a7c693d0a3 /dev-ruby/capybara
parentsys-devel/gcc-config-1.8-r1: alpha stable, bug 626646 (diff)
downloadgentoo-572f808ed7588a7cb881e8106454870d02544600.tar.gz
gentoo-572f808ed7588a7cb881e8106454870d02544600.tar.bz2
gentoo-572f808ed7588a7cb881e8106454870d02544600.zip
dev-ruby/capybara: add 2.15.3
Package-Manager: Portage-2.3.8, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/capybara')
-rw-r--r--dev-ruby/capybara/Manifest1
-rw-r--r--dev-ruby/capybara/capybara-2.15.3.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/capybara/Manifest b/dev-ruby/capybara/Manifest
index 9752eb34527b..de3cdaf40fdb 100644
--- a/dev-ruby/capybara/Manifest
+++ b/dev-ruby/capybara/Manifest
@@ -3,3 +3,4 @@ DIST capybara-2.13.0.gem 257024 SHA256 09d574e170b8042914c08630382ed784694c1b2bd
DIST capybara-2.14.4.gem 265728 SHA256 bbdfd40c542c790dab81032e23bbc7438a562bbe440b4712abcad67f10d17d7d SHA512 d3ebbd8d96e4d2026327b1c70ff723225ce052fff510a909111b8cc7e02b12fec9e00acddc0bc2565371cc5eb0b590abef43d42a99c3938a929ea25930fdefd1 WHIRLPOOL e4829ed0895af9b80c936ffe7f274e0637ab0b1cc2e790e261089fae14a0f8544fd178409e1420527d5eec69104a96aa4ab87e0f6f088e94bad9371e4c260ce2
DIST capybara-2.15.1.gem 270336 SHA256 22718339815ad16a26b9832f496f8c9fdee41af8fe941e2283eee6d03287502d SHA512 03295b5008889523930898b51d943cd0976e0c3a771acb2d54a899009d77ab8248d94153089283cb73813e3397e656c3bc1ee7deee0d0cd001f8e15a79c45119 WHIRLPOOL f246bce1ff16f748f3628c8382e0c6a520e56a90b36ed4e8cf3432ab9de79711890952356b412f3e23b0a1d9526690955c706c4b061c94f09ceb2425035d8497
DIST capybara-2.15.2.gem 270848 SHA256 11223a4f98942913a67520c8e1126ae6f544b48f26844a9098f5f440caf12b50 SHA512 8c7eec2d23dcf82b1c41144fcaf5151330c220277bf2fe2a4713a79c6b065789465a9e867936a25d00bce727ab218cd3ff9934a67158552a04f552d734ee5387 WHIRLPOOL 519d6c841e8a1edd5372086f76400856525c7f6daa3c97616ab2c6ef4a382d0a66718137b29295af44292608a35d699f1977bf313f628f1abf50a0c619ac7050
+DIST capybara-2.15.3.gem 271360 SHA256 b67bcaa5ed9082c14179d9ea5268ff1b3455ece0a52f21bee4e203fe6fc791bf SHA512 8248f29e2da570b693092136850f6a4b8e06451c502493177884a9306bd8704843ddc2d3caa8c530c39909257e308bda86cedf263bcf5eded83d734229de6bca WHIRLPOOL 8777ed1248d8edd36bbb6b142806900d9a2c5785f892e249d27ec1c09bc3537b8b9a686a0475132c1c46bf427055f6644a83dc5ffc72fb76839ae5d6b5adc103
diff --git a/dev-ruby/capybara/capybara-2.15.3.ebuild b/dev-ruby/capybara/capybara-2.15.3.ebuild
new file mode 100644
index 000000000000..e978384153dc
--- /dev/null
+++ b/dev-ruby/capybara/capybara-2.15.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+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="2"
+IUSE="test"
+
+DEPEND="${DEPEND} test? ( www-client/firefox )"
+
+ruby_add_bdepend "test? ( dev-ruby/rspec:3 dev-ruby/launchy >=dev-ruby/selenium-webdriver-2.0 dev-ruby/sinatra )"
+
+ruby_add_rdepend "
+ dev-ruby/addressable
+ >=dev-ruby/mini_mime-0.1.3
+ >=dev-ruby/nokogiri-1.3.3
+ >=dev-ruby/rack-1.0.0:*
+ >=dev-ruby/rack-test-0.5.4:*
+ >=dev-ruby/xpath-2.0.0:2"
+
+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 '/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."
+}