summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-06-12 08:20:46 +0200
committerHans de Graaff <graaff@gentoo.org>2023-06-12 08:20:46 +0200
commit4c0b797c9930e4e3ece5a6eff2da96b0b5b867d8 (patch)
tree4eb55111482f1de6dce720064ec0f4068c0c5d5d /dev-ruby/rspec-rails
parentdev-ruby/regexp_property_values: update upstream metadata (diff)
downloadgentoo-4c0b797c9930e4e3ece5a6eff2da96b0b5b867d8.tar.gz
gentoo-4c0b797c9930e4e3ece5a6eff2da96b0b5b867d8.tar.bz2
gentoo-4c0b797c9930e4e3ece5a6eff2da96b0b5b867d8.zip
dev-ruby/rspec-rails: add 6.0.3
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.3.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest
index 2d3cf85a9932..11cf9ff09b7a 100644
--- a/dev-ruby/rspec-rails/Manifest
+++ b/dev-ruby/rspec-rails/Manifest
@@ -2,3 +2,4 @@ DIST rspec-rails-5.1.2.tar.gz 157523 BLAKE2B b500aa53f8bd965f7b95e90403d46096073
DIST rspec-rails-6.0.0.tar.gz 161222 BLAKE2B feaff94148d8b33e17ae3de5b9636ba238381d46836bbeba8c6ddf03c1d7b84c0c9e78e13c6b5198342959433ca165c438007e45923a70cb23190d974b340506 SHA512 7b15a5f9313bb76e71a69f9158d64c662a4cef2f8aae7a20748281224a720d9f2555ec9eed3ebd3aa30ba21608d6492caf14fefdd14a84ea765a4e60439830f2
DIST rspec-rails-6.0.1.tar.gz 161289 BLAKE2B 80d91fe4c11848fa3625c1469dc14064dfdd93c54281c9dcaf71a845dc2b07ba8b290f045a59839d301278103d9e241c99781058886f1d792db3a7d8de80dd26 SHA512 a797dea121d902bb43add4d35e9a6d324cf52f28acea83ae4dd7a69e33e8fd531857f175a35869391c82900f55182ec4c2519667b04234fec54dc99b510a85e8
DIST rspec-rails-6.0.2.tar.gz 161156 BLAKE2B d76836190225337e619ff56679a1096eccdbb0490cc20954770fdeafa8ced0ed7dfe7e8e9cb7ae4915bda79ced6e3bfe3b4623b11b4d049e7a5011acec6e5510 SHA512 cc2aa476e0d14cdcb6de2e7a254a666161bc0a0b7bca54001329e09ed27c10b9ba12c30352ce37e73af3a32bcf7e17569699b35e90c7f753085c79c43f69d737
+DIST rspec-rails-6.0.3.tar.gz 161663 BLAKE2B 02fdd54524e469387264013e5da9035014533b01ba1164ffe8e3038679585af0943ad82c074f987230b98f837395e57817134466ad33e02c42650dd3ebafb707 SHA512 cf0e34fbc8f653713dd1ba184f01c9ad33ea8739b8c46d5e377387b7c6fc0ebc7999d1a7abbb0581735297ff8a3aa9c665d13616a1eefd6abd4a85cd657203d5
diff --git a/dev-ruby/rspec-rails/rspec-rails-6.0.3.ebuild b/dev-ruby/rspec-rails/rspec-rails-6.0.3.ebuild
new file mode 100644
index 000000000000..6199f3194344
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-6.0.3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31"
+
+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/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
+}