summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-01-21 07:49:23 +0100
committerHans de Graaff <graaff@gentoo.org>2019-01-21 07:49:23 +0100
commit6c71d2f97820046103e64b630ceca88253467478 (patch)
treeacc5faa67d12dfd68c8b46ae420abc017d7cfd5f
parentdev-ruby/mini_mime: add ruby26 (diff)
downloadgentoo-6c71d2f97820046103e64b630ceca88253467478.tar.gz
gentoo-6c71d2f97820046103e64b630ceca88253467478.tar.bz2
gentoo-6c71d2f97820046103e64b630ceca88253467478.zip
dev-ruby/rspec-rails: add 3.8.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r--dev-ruby/rspec-rails/Manifest1
-rw-r--r--dev-ruby/rspec-rails/rspec-rails-3.8.2.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest
index c02059aa434..2d213f1c9ac 100644
--- a/dev-ruby/rspec-rails/Manifest
+++ b/dev-ruby/rspec-rails/Manifest
@@ -1,3 +1,4 @@
DIST rspec-rails-3.7.2.tar.gz 129851 BLAKE2B b37619b4a953fa44ef402a0dea1531837932dc7bc147c08b29bf85dcad61c7ca72b30f28edc391ae05d5040dcc902d6571342bb51559de84ed0c93244deffbec SHA512 a1dbbde3539b09c33d85c9307126df09c508fcf39abc25a6438fb0582ec19049ee1888d7d17d256d33bba08c29792a0ec30dabc37d870a369580a58cb7ef03df
DIST rspec-rails-3.8.0.tar.gz 134290 BLAKE2B 2d148a62fb92bf73728da5a18d5d8263bbd38e2036d1c47a2bdc2823ff72cc2c4a1fafee1c66d89665b21ce9b9a907a9bdaf726cafa7345b84ab49d0d3053426 SHA512 810dd372d6889847fd5d47a29d359a72fcbc4fdca5d1b35bfbe75fefc293b208ff062d88e2159783eda152a5ab1657d3a55619a9a11dd8bde5993cd807ca37da
DIST rspec-rails-3.8.1.tar.gz 134824 BLAKE2B 3531f4dcbe143df2b15b3ba6dda42f4b41236d184a9697fe604522cd01f3e2bb4d5ba9de94ddb4f9fc71cfdbe485f3bbf11478a5d635b69e94c10c855935faae SHA512 7628ed24e3ef7c34aa047100bd956dca9b1443219332d020af65ca7f3ccb5618ec2377535e981cef23b76ed279145e1bab39f17dfed9df8b66083e4fe3e35f37
+DIST rspec-rails-3.8.2.tar.gz 135513 BLAKE2B deae49ce0ce97c78fafe910cb73a196a404711adadb896a13bb40c82ecd6f2fd28129c0267057ce739d648ffe19bdf61799512bac97e9da3be03e0f8dd43d130 SHA512 02d60a0135b4f4b52e2721f9a79363310b60acb8252d4bb44220d37dd346605a6cd3db6525d2d8d77b9471dd91888c9a3dd02e541012f39d0d47c33f38c98bbe
diff --git a/dev-ruby/rspec-rails/rspec-rails-3.8.2.ebuild b/dev-ruby/rspec-rails/rspec-rails-3.8.2.ebuild
new file mode 100644
index 00000000000..0a4a89cc99e
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-3.8.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
+
+inherit ruby-fakegem eapi7-ver
+
+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/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 -i -e '/rspec\/rails/ s:^:#:' spec/spec_helper.rb || die
+}