summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-11-15 12:12:20 +0100
committerHans de Graaff <graaff@gentoo.org>2024-11-15 12:13:04 +0100
commit5bf7661edfab893379a3495436868844669aced1 (patch)
treeaf8f37e4effa80e1aeb2e429f0095c5d009dda72 /dev-ruby/rspec-rails
parentapp-misc/fdupes: drop 2.2.1, 2.3.0 (diff)
downloadgentoo-5bf7661edfab893379a3495436868844669aced1.tar.gz
gentoo-5bf7661edfab893379a3495436868844669aced1.tar.bz2
gentoo-5bf7661edfab893379a3495436868844669aced1.zip
dev-ruby/rspec-rails: add 6.1.5
Also add missing test dependency on dev-ruby/selenium-webdriver. Closes: https://bugs.gentoo.org/923592 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.1.5.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest
index 97c4397aa59f..e84d05d15f62 100644
--- a/dev-ruby/rspec-rails/Manifest
+++ b/dev-ruby/rspec-rails/Manifest
@@ -1,3 +1,4 @@
DIST rspec-rails-6.0.4.tar.gz 163654 BLAKE2B d8680bc410a63b746d568b3a71a1eb4cdac4b620740fe87e898187855e2340fb0fc0dd9e12d02ae738e2c4f68e085e75b58640c77dca0221901104ad8a6de40d SHA512 1090a76fcad4deeb2a9b8a4895dbe3a884887768f607e26e1b8903a2968c187dcf3361492cfa19a2638b1516948a94e5b0a6688a02041d94357ebe0f724f7039
DIST rspec-rails-6.1.2.tar.gz 165532 BLAKE2B ade1da3b3fa080d05b664aff2806e5f95ce873ca777676d4e4d761b541a5ab40308f2c0a12d1d29961e39029fb7918227fafc3d3a0f7d3d7438755462f2d623d SHA512 a25424fa2443c49ebec238d30a059a2ce3cc051a391179abd77aacd96ee532963f0804cf75c27fa233b97638d6a2022ebf678b2dc44451ce3a0b54425bf25d2d
DIST rspec-rails-6.1.3.tar.gz 167344 BLAKE2B 08f2b4c7127bf39d589c68ec0e8e75ffd98a2567b171a0b9cc84a092264d8c1e6f6579623e14a8211f21bd3eb7bd20c1182078308fd8bf2eca07a2b06d77f1f9 SHA512 dd2e5abc67970e27788a2a24cf24c78e59ffe0a4ff64e044055c329f340bfd8eac691782d2b8f642690df4a2ebaac2b33965ac7da3221ea4a833ae05697f983e
+DIST rspec-rails-6.1.5.tar.gz 167856 BLAKE2B 819d92f7810b36d6551ee9a316a04772fdc9f46910c1d941a1a550805a1be9f3758d6ede303302be5de1b9473444bd642ac90517092001a4634f6b81ef815241 SHA512 41eaa3df52d7421266254606a3b118542d38bf89f1261698e2ff2b5c1f5a7efef143d75438624ef04e7fa49c8c8820d07f224cc00a8bdd8287e9f4ab7b4714ff
diff --git a/dev-ruby/rspec-rails/rspec-rails-6.1.5.ebuild b/dev-ruby/rspec-rails/rspec-rails-6.1.5.ebuild
new file mode 100644
index 000000000000..2812eb84ff48
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-6.1.5.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+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.13: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/actionmailer:7.1 dev-ruby/actionmailer:7.0 dev-ruby/actionmailer:6.1 )
+ >=dev-ruby/capybara-2.2.0
+ >=dev-ruby/ammeter-1.1.5
+ ~dev-ruby/rspec-rails-${PV}
+ dev-ruby/selenium-webdriver
+)"
+
+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
+}