summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-04-25 07:22:26 +0200
committerHans de Graaff <graaff@gentoo.org>2022-04-25 07:22:26 +0200
commite6f43160ee037151fe789f1ca4b730dcbd329136 (patch)
tree087ea3d5ea1a214af1e75c17f9e3be4ee6ebd6a6 /dev-ruby/rspec-rails
parentdev-ruby/regexp_parser: add 2.3.1 (diff)
downloadgentoo-e6f43160ee037151fe789f1ca4b730dcbd329136.tar.gz
gentoo-e6f43160ee037151fe789f1ca4b730dcbd329136.tar.bz2
gentoo-e6f43160ee037151fe789f1ca4b730dcbd329136.zip
dev-ruby/rspec-rails: add 5.1.2
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-5.1.2.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest
index 97de31002333..3ec5d83eb04a 100644
--- a/dev-ruby/rspec-rails/Manifest
+++ b/dev-ruby/rspec-rails/Manifest
@@ -3,3 +3,4 @@ DIST rspec-rails-4.1.2.tar.gz 156296 BLAKE2B ca454065c8fb318148e745162514b9f21aa
DIST rspec-rails-5.0.2.tar.gz 156991 BLAKE2B a1700fad43ed2eb441d95307fd14fe8c0f96c51edaaddaa13a94b6c740711ddb96c9c7058051c1160746111e52c56a5685808532795aa0e32cab2f91b287b6fc SHA512 c2154f0cac634ead0109daf0e91782e9c770783104d3b2a4b0e097d46f8a9ebb49fe993733a7a3f6c4e3d037d5ab25f424cf8e3386a161172fb8c68e731b076e
DIST rspec-rails-5.0.3.tar.gz 156964 BLAKE2B 3f47428f887044acc2f4b374f6aaf135d44f2015b66ae5caa2a1f46923921ca2f96de47c7fc8faec951c15d8a18ee7efbf12fb80798e279784c70e3c31c09838 SHA512 3732c35603e5fe16deed1404c6ab0814cfaa6922da74befe31e3e2b23ba78f4de8316862894057f37b9d0aa79838d21d7028e1cbc592b8ef79de17f25bc81ea5
DIST rspec-rails-5.1.1.tar.gz 157454 BLAKE2B 580a3443cfe088d4056815e3fc344f9b91e5df9ff52099942f8e74c062e6ffb8ff528e5bcb17b33684be0e6b4ce7791a1df38a7fbead0ca348567cbbf3f6a863 SHA512 68ba2af02619bcf304237e744f728772e9de889d7aba5ab5fef236d40e1c047b03bf0c199bb28074f2d4cf47e1811f241e67b56d8c362dbc8ad69e066bd3d7f0
+DIST rspec-rails-5.1.2.tar.gz 157523 BLAKE2B b500aa53f8bd965f7b95e90403d46096073780fa4e318295bffba44211cfb9d5eab36549e6fc3afc144700a8224ebe808489959a172f1d9e76c43320b7022979 SHA512 f9ef3a3812590a7cd50bd34e9e6cd9669fab24736ac7693b3fffe3f8be9b8313e31b0c7b7571a735f20bc5d9194a94c2f447e69f6491190536b6534211e1b070
diff --git a/dev-ruby/rspec-rails/rspec-rails-5.1.2.ebuild b/dev-ruby/rspec-rails/rspec-rails-5.1.2.ebuild
new file mode 100644
index 000000000000..93617fc028c1
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-5.1.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27"
+
+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:6.1 dev-ruby/activesupport:6.0 dev-ruby/activesupport:5.2 )
+ || ( dev-ruby/actionpack:6.1 dev-ruby/actionpack:6.0 dev-ruby/actionpack:5.2 )
+ || ( dev-ruby/railties:6.1 dev-ruby/railties:6.0 dev-ruby/railties:5.2 )
+ >=dev-ruby/rspec-3.10: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
+}