summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-10-09 08:33:32 +0200
committerHans de Graaff <graaff@gentoo.org>2022-10-09 09:22:11 +0200
commitddfe3185ac61e64d4b9bad5ba246067ee1259cbc (patch)
tree9e9529e690ad079863d0a25c32a2912767c37750 /dev-util/cucumber-rails
parentdev-python/jaraco-text: Remove old (diff)
downloadgentoo-ddfe3185ac61e64d4b9bad5ba246067ee1259cbc.tar.gz
gentoo-ddfe3185ac61e64d4b9bad5ba246067ee1259cbc.tar.bz2
gentoo-ddfe3185ac61e64d4b9bad5ba246067ee1259cbc.zip
dev-util/cucumber-rails: add 2.6.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-util/cucumber-rails')
-rw-r--r--dev-util/cucumber-rails/Manifest1
-rw-r--r--dev-util/cucumber-rails/cucumber-rails-2.6.0.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-util/cucumber-rails/Manifest b/dev-util/cucumber-rails/Manifest
index e551d48b89ab..829b387e12d8 100644
--- a/dev-util/cucumber-rails/Manifest
+++ b/dev-util/cucumber-rails/Manifest
@@ -1,2 +1,3 @@
DIST cucumber-rails-2.5.0.tar.gz 42030 BLAKE2B 96279b72c597bcb40eebb2270ee996c08fd599f257b91beea50f84cb0cf221258bb5fec4f91ce6a2400d865763072bdd47c1b4c4a03b35b5e35e6384ab3f31fa SHA512 cb689beac565d0b193ebcfb0ce4d673cad2d50fe8db5718fda6779d08d5458e2234ccb5a1ff13eaf22b3048c9a10b4dd6148cfdedf841dd0b41366059acb0b67
DIST cucumber-rails-2.5.1.tar.gz 42456 BLAKE2B 91448ce88fdfed2e219a6c46b7915deeccb5678ceaaf57db06fc1348facff756b0c1dd67f6d8bcbc1b36ba555ca2d31167fa20c8b5f48138c018ef5d2f65bafc SHA512 2bb1748d9710998f974fc253ae03595d8e972593423d027840d2b437a0f13a60ec0df3cc2fb7d6e30c0003d414d093e4fd3c398e0fa27441ccb431f308f89405
+DIST cucumber-rails-2.6.0.tar.gz 42630 BLAKE2B 2fac80af5cc8d5cbe2ab445d56e58188e34fd86d05ec75893eaefb3d11e58d5f86e677f1349729d21b145912931620bd76ed4e9acbbd5cc124bdfbdae3f007ab SHA512 d691cdca0f4d8a5d7a0794f5a5a15102a244da476ebd8ccda0e1c2e3521f5553373ab4a3b9bcaca20d10fd4a8a836910a938ca09450eff6b39c4446dbc5be5c8
diff --git a/dev-util/cucumber-rails/cucumber-rails-2.6.0.ebuild b/dev-util/cucumber-rails/cucumber-rails-2.6.0.ebuild
new file mode 100644
index 000000000000..681ca08ad9f8
--- /dev/null
+++ b/dev-util/cucumber-rails/cucumber-rails-2.6.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby27 ruby30"
+
+# There are also cucumber features. They require a Rails project with
+# factory girl which we don't have packaged yet.
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="cucumber-rails.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios for Rails"
+HOMEPAGE="https://cucumber.io/"
+SRC_URI="https://github.com/cucumber/cucumber-rails/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64"
+SLOT="$(ver_cut 1)"
+IUSE=""
+
+# Restrict tests since Appraisal is now mandatory to manage different
+# rails versions, even for the specs.
+RESTRICT="test"
+#ruby_add_bdepend "
+# test? (
+# >=dev-ruby/ammeter-0.2.2
+# >=dev-ruby/rspec-rails-2.7.0:2
+# )"
+
+ruby_add_rdepend "
+ >=dev-ruby/capybara-2.18:* <dev-ruby/capybara-4:*
+ >=dev-util/cucumber-3.2 <dev-util/cucumber-9
+ >=dev-ruby/mime-types-3.3:3
+ >=dev-ruby/nokogiri-1.10
+ >=dev-ruby/rails-5.0:* <dev-ruby/rails-8:*
+ dev-ruby/rexml:3
+ >=dev-ruby/webrick-1.7:0
+"
+
+all_ruby_prepare() {
+ rm Gemfile || die
+ sed -i -e '/[Bb]undler/d' Rakefile || die
+ #sed -i -e 's/2.4.0/2.5.0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}