summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-03-25 06:52:03 +0100
committerHans de Graaff <graaff@gentoo.org>2020-03-25 06:52:19 +0100
commit770e47ab20b6bf4d69165ea3229fce551402fe02 (patch)
tree6d08b6c46fabac07a257e277678a305877d369f1 /dev-ruby/rspec-rails
parentdev-python/twisted: Keyword ~x86, bug #661320 (diff)
downloadgentoo-770e47ab20b6bf4d69165ea3229fce551402fe02.tar.gz
gentoo-770e47ab20b6bf4d69165ea3229fce551402fe02.tar.bz2
gentoo-770e47ab20b6bf4d69165ea3229fce551402fe02.zip
dev-ruby/rspec-rails: add 4.0.0
Package-Manager: Portage-2.3.89, Repoman-2.3.20 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-4.0.0.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest
index c0cfdc6e4101..db3a1a9f4182 100644
--- a/dev-ruby/rspec-rails/Manifest
+++ b/dev-ruby/rspec-rails/Manifest
@@ -2,3 +2,4 @@ DIST rspec-rails-3.8.2.tar.gz 135513 BLAKE2B deae49ce0ce97c78fafe910cb73a196a404
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
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..4f9119ce03e5
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-4.0.0.ebuild
@@ -0,0 +1,53 @@
+# 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.9: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
+ sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}