summaryrefslogtreecommitdiff
path: root/dev-ruby/rspec-rails
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/rspec-rails')
-rw-r--r--dev-ruby/rspec-rails/Manifest4
-rw-r--r--dev-ruby/rspec-rails/rspec-rails-3.9.1.ebuild59
-rw-r--r--dev-ruby/rspec-rails/rspec-rails-4.0.0.ebuild56
3 files changed, 119 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest
index 7952d52747ca..8036613f85c7 100644
--- a/dev-ruby/rspec-rails/Manifest
+++ b/dev-ruby/rspec-rails/Manifest
@@ -1,7 +1,11 @@
DIST rspec-rails-3.8.2.tar.gz 135513 BLAKE2B deae49ce0ce97c78fafe910cb73a196a404711adadb896a13bb40c82ecd6f2fd28129c0267057ce739d648ffe19bdf61799512bac97e9da3be03e0f8dd43d130 SHA512 02d60a0135b4f4b52e2721f9a79363310b60acb8252d4bb44220d37dd346605a6cd3db6525d2d8d77b9471dd91888c9a3dd02e541012f39d0d47c33f38c98bbe
DIST rspec-rails-3.8.3.tar.gz 138053 BLAKE2B dab5764d65d484a8a808a2104a3ab093c2ef2e822cacd136996eddb767a972f89df9a459509e701e5541f6b9c42a3b700a4daa816c0391474e004b4558feb2a7 SHA512 210a278cf82c20c4f5ef7faa5e253b9e18609d34467e91cb8728e6116c7cfb15d17fe8941fc15b776bb169e0275df623535b86fc160afe3e49432948f246a165
DIST rspec-rails-3.9.0.tar.gz 142966 BLAKE2B 2f75b1a2e666c8b790be4aeb3add3814558718049a818bdcbd8ff07b5f837727d34628fbba68fd9ff832b864261cac2e545991daa5ad3f3b72304b411801295c SHA512 f0130bbfcc8367a1ef6d8f259ab04a623720068f205c2454117f988c8405885fd19056692b46d0a04d7ba2d0d24692acf8283a77bb5292054f990002fae10af0
+DIST rspec-rails-3.9.1.tar.gz 143459 BLAKE2B 87a691df63a438b15b5726a802632c16373c784cc66216c1b099ed7e36e0916fdfe7ca1fb964904678b779b8fa90f0659971c4af00f9ca3a1071adf2216466bd SHA512 247acda67672ea3fa0641ea36d6209c8876597c63180979713db257e02cb4282b122af4cc0aa540dae984acdb16afdc4359012360b951f0599710fe422cdccac
+DIST rspec-rails-4.0.0.tar.gz 153413 BLAKE2B 8362d971a1df19313a393754fc34f3ac7680794c2684e68710476a72749a26919aeec919cf4962217c834aef5533fa6849f7493e8a0e642071d2b3c03e0aebf3 SHA512 09c79418250086f8ea15649173edb17bb3ccceb77c899c323a46fa52b8515e739906c9ec30eb8f06f2c0c55c45f24cdfd0906a9c2f926fb6aae4dcb60fe2d899
EBUILD rspec-rails-3.8.2.ebuild 1431 BLAKE2B 7fc7098a39752a8243aa74197abbe1248c57764ef6a6d781eca82d10e1f6de42c83fc8da11d439f9525a6cb59ba63f0dc0ea5451ce46c9879eb76543ac5ec90d SHA512 45cb8ce308d0fa2d90e9b3b34d443bd60591f64e27a0f4f6a4a82c8489eb317fbc7774a0d39af318d10e8ca60949e1808b540c853c59307016359fc6110ce9a2
EBUILD rspec-rails-3.8.3.ebuild 1459 BLAKE2B c31f9b9bba3e58b1a3e5cda4a7ca79ef70e4f3e22ae2b4058e1472cab069ab8f82c106959182e9d54dd1ad31b225ca3123fae7df87e0a7469dbcf995ddc2a068 SHA512 52ead09f8510a2cd7295df49c378d91d7171dfaec0a1f7335b1255128c8437c21e4815367f57dcebe0d47c43aa4bb88a6c0d37f1a7242c03472c6fabccf32a82
EBUILD rspec-rails-3.9.0.ebuild 1459 BLAKE2B c31f9b9bba3e58b1a3e5cda4a7ca79ef70e4f3e22ae2b4058e1472cab069ab8f82c106959182e9d54dd1ad31b225ca3123fae7df87e0a7469dbcf995ddc2a068 SHA512 52ead09f8510a2cd7295df49c378d91d7171dfaec0a1f7335b1255128c8437c21e4815367f57dcebe0d47c43aa4bb88a6c0d37f1a7242c03472c6fabccf32a82
+EBUILD rspec-rails-3.9.1.ebuild 1511 BLAKE2B c7b77b6d1e9ec550b58e829db92d7746a45709c07a39c5af021188f0ac39ecfdcdd4425125f4f41b2da4d93622beaaaad2133e49a5457a4b46f9d287e4de4d97 SHA512 1a8f965898cf9a073b18d456834dd4c02bb25f68b53f7d818a354be2ae531b1b5d1f3c5cff1a044fa9b6953648d6907014f0ba5b2fcd81082c36a4dbe78d8421
+EBUILD rspec-rails-4.0.0.ebuild 1545 BLAKE2B 14fddb4cbe2447b8d569bbd6e0c0dd5e66abe05eb1c10eb31bc4aa5adcc15cb12bb51a54c6aaf316edafff675642ce5c9c636a0d20ed562c7d496750e9a9440c SHA512 48a8f19e71419fd966acfa794c6752c00aca0d201a73bcafa32a128f46d36f05a972f3891fcd78d8236ef2f6c83dd0b13c674974f56d524fbd77f87d8af01126
MISC metadata.xml 343 BLAKE2B 3c1684a27906b05d1f72b32ec225db0fcd6e051bf9d6a3b4f83e3cc1ff63201410594a6b2a2664ca008b7756b6e98cbbcc3981136075dcc41a622f3ad3566b36 SHA512 bc9d8d9978e4bd845b10fabf5256e53a1a0c3835305f7e72502d1074e2692fdeaca15b2ecade251be8dbbae544167072a920db14a964644b70782f37b9d91369
diff --git a/dev-ruby/rspec-rails/rspec-rails-3.9.1.ebuild b/dev-ruby/rspec-rails/rspec-rails-3.9.1.ebuild
new file mode 100644
index 000000000000..186d3b997e1d
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-3.9.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby24 ruby25 ruby26"
+
+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="3"
+KEYWORDS="~amd64"
+IUSE=""
+
+SUBVERSION="$(ver_cut 1-2)"
+
+ruby_add_rdepend ">=dev-ruby/activesupport-3.0:*
+ >=dev-ruby/actionpack-3.0:*
+ >=dev-ruby/railties-3.0:*
+ =dev-ruby/rspec-${SUBVERSION}*"
+
+# 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.2
+ <dev-ruby/rails-6
+ ~dev-ruby/rspec-rails-${PV}
+)"
+
+all_ruby_prepare() {
+ # Remove .rspec options to avoid dependency on newer rspec when
+ # bootstrapping.
+ rm -f .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
+
+ # Avoid loading rspec/rails explicitly since ammeter/init will also
+ # do this and loading it twice causes an error
+ sed -e '/rspec\/rails/ s:^:#:' \
+ -e '1igem "rails", "<6"' \
+ -i spec/spec_helper.rb || die
+}
diff --git a/dev-ruby/rspec-rails/rspec-rails-4.0.0.ebuild b/dev-ruby/rspec-rails/rspec-rails-4.0.0.ebuild
new file mode 100644
index 000000000000..0fafb0c55d7c
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-4.0.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby24 ruby25 ruby26"
+
+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-4.2:*
+ >=dev-ruby/actionpack-4.2:*
+ >=dev-ruby/railties-4.2:*
+ >=dev-ruby/rspec-3.8: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.2
+ ~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
+
+ # Fix gemspec and allow rspec 3.8 as well. This allows parallel installation
+ # of rspec-rails:3 given our Gentoo constraints. All tests pass.
+ sed -e 's/git ls-files --/find/' \
+ -e '/expected_rspec_version/ s/3.9.0/3.8.0/' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}