summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-11-23 08:09:11 +0100
committerHans de Graaff <graaff@gentoo.org>2023-11-23 08:09:11 +0100
commita85f7b4d8857ca59eb9b79c5b1c4712523fab8d5 (patch)
tree12f67767f2eaf1e6ea0ee805a1acd9d179fba4cf /dev-ruby/rspec-rails
parentdev-ruby/autoprefixer-rails: add 10.4.16.0 (diff)
downloadgentoo-a85f7b4d8857ca59eb9b79c5b1c4712523fab8d5.tar.gz
gentoo-a85f7b4d8857ca59eb9b79c5b1c4712523fab8d5.tar.bz2
gentoo-a85f7b4d8857ca59eb9b79c5b1c4712523fab8d5.zip
dev-ruby/rspec-rails: add 6.0.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rspec-rails')
-rw-r--r--dev-ruby/rspec-rails/Manifest1
-rw-r--r--dev-ruby/rspec-rails/rspec-rails-6.0.4.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest
index 7a6e2cac5432..54251ac406f0 100644
--- a/dev-ruby/rspec-rails/Manifest
+++ b/dev-ruby/rspec-rails/Manifest
@@ -1,2 +1,3 @@
DIST rspec-rails-5.1.2.tar.gz 157523 BLAKE2B b500aa53f8bd965f7b95e90403d46096073780fa4e318295bffba44211cfb9d5eab36549e6fc3afc144700a8224ebe808489959a172f1d9e76c43320b7022979 SHA512 f9ef3a3812590a7cd50bd34e9e6cd9669fab24736ac7693b3fffe3f8be9b8313e31b0c7b7571a735f20bc5d9194a94c2f447e69f6491190536b6534211e1b070
DIST rspec-rails-6.0.3.tar.gz 161663 BLAKE2B 02fdd54524e469387264013e5da9035014533b01ba1164ffe8e3038679585af0943ad82c074f987230b98f837395e57817134466ad33e02c42650dd3ebafb707 SHA512 cf0e34fbc8f653713dd1ba184f01c9ad33ea8739b8c46d5e377387b7c6fc0ebc7999d1a7abbb0581735297ff8a3aa9c665d13616a1eefd6abd4a85cd657203d5
+DIST rspec-rails-6.0.4.tar.gz 163654 BLAKE2B d8680bc410a63b746d568b3a71a1eb4cdac4b620740fe87e898187855e2340fb0fc0dd9e12d02ae738e2c4f68e085e75b58640c77dca0221901104ad8a6de40d SHA512 1090a76fcad4deeb2a9b8a4895dbe3a884887768f607e26e1b8903a2968c187dcf3361492cfa19a2638b1516948a94e5b0a6688a02041d94357ebe0f724f7039
diff --git a/dev-ruby/rspec-rails/rspec-rails-6.0.4.ebuild b/dev-ruby/rspec-rails/rspec-rails-6.0.4.ebuild
new file mode 100644
index 000000000000..7daef9df667b
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-6.0.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+#RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="rspec-rails.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="RSpec's official Ruby on Rails plugin"
+HOMEPAGE="https://rspec.info/"
+SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+ || ( dev-ruby/activesupport:7.0 dev-ruby/activesupport:6.1 )
+ || ( dev-ruby/actionpack:7.0 dev-ruby/actionpack:6.1 )
+ || ( dev-ruby/railties:7.0 dev-ruby/railties:6.1 )
+ >=dev-ruby/rspec-3.12:3"
+
+# Depend on the package being already installed for tests, because
+# requiring ammeter will load it, and we need a consistent set of rspec
+# and rspec-rails for that to work.
+ruby_add_bdepend "test? (
+ || ( dev-ruby/activerecord:7.0[sqlite] dev-ruby/activerecord:6.1[sqlite] )
+ >=dev-ruby/capybara-2.2.0
+ >=dev-ruby/ammeter-1.1.5
+ ~dev-ruby/rspec-rails-${PV}
+)"
+
+all_ruby_prepare() {
+ # Remove .rspec options to avoid dependency on newer rspec when
+ # bootstrapping.
+ echo "--require spec_helper" > .rspec || die
+
+ # Avoid bundler-specific specs.
+ rm -f spec/sanity_check_spec.rb || die
+
+ # Avoid broken controller generator specs for now.
+ rm -fr spec/generators/rspec || die
+
+ # Test with a compatible rails version
+ #sed -i -e '1igem "rails", "<7.0"' spec/spec_helper.rb || die
+
+ # Fix gemspec.
+ sed -e 's/git ls-files --/find */' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}