commit:     2d78b038db41235e09bfa46350b35f4f14c0ef4f
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  9 07:49:20 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Feb  9 07:49:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d78b038

dev-ruby/rspec-rails: add 6.1.1

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/rspec-rails/Manifest                 |  1 +
 dev-ruby/rspec-rails/rspec-rails-6.1.1.ebuild | 59 +++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest
index 54251ac406f0..ecc3360f94da 100644
--- a/dev-ruby/rspec-rails/Manifest
+++ b/dev-ruby/rspec-rails/Manifest
@@ -1,3 +1,4 @@
 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
+DIST rspec-rails-6.1.1.tar.gz 165310 BLAKE2B 
a8c40c203a756a23344c480afd59a9fbd626a6ba4de3716510797269d51d2060d3a719182a174d6225ceb18581f74cde2ad3cc5b71553e71634dbb0894500c55
 SHA512 
063de268b98aede351437829ecf27151b6015943bc27aa32b01968713a365f75036f357b0516c33a452c2ba5f35c7629de602774054e455eb642a7c67bd57441

diff --git a/dev-ruby/rspec-rails/rspec-rails-6.1.1.ebuild 
b/dev-ruby/rspec-rails/rspec-rails-6.1.1.ebuild
new file mode 100644
index 000000000000..97a54c4cf41b
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-6.1.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2024 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="test"
+
+ruby_add_rdepend "
+       || ( dev-ruby/activesupport:7.1 dev-ruby/activesupport:7.0 
dev-ruby/activesupport:6.1 )
+       || ( dev-ruby/actionpack:7.1 dev-ruby/actionpack:7.0 
dev-ruby/actionpack:6.1 )
+       || ( dev-ruby/railties:7.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.1[sqlite] 
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
+}

Reply via email to