summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-08-26 07:03:27 +0200
committerHans de Graaff <graaff@gentoo.org>2016-08-26 07:03:27 +0200
commit543a7fcf9aaebef3f455fcd14962a83875f03eda (patch)
treee941187c2886c50d2584a4c5db8396dc87a8e45b /dev-ruby
parentdev-ruby/rex-powershell: add 0.1.64 (diff)
downloadgentoo-543a7fcf9aaebef3f455fcd14962a83875f03eda.tar.gz
gentoo-543a7fcf9aaebef3f455fcd14962a83875f03eda.tar.bz2
gentoo-543a7fcf9aaebef3f455fcd14962a83875f03eda.zip
dev-ruby/rspec-rails: add 3.5.2
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rspec-rails/Manifest1
-rw-r--r--dev-ruby/rspec-rails/rspec-rails-3.5.2.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest
index cd77bdbed518..2d07ec34e4b2 100644
--- a/dev-ruby/rspec-rails/Manifest
+++ b/dev-ruby/rspec-rails/Manifest
@@ -4,3 +4,4 @@ DIST rspec-rails-3.3.3.tar.gz 102963 SHA256 b0edc645a25c929deb39a7334894922cdf67
DIST rspec-rails-3.4.2.tar.gz 114252 SHA256 ff54962e135baad173aa987ba08ea4d35b2479cc32beaa2d348e2dfb95bffc85 SHA512 922a666ac674d6e91083caf5b5526556add9ffc8783f3f5af8a7d60afb2353b99730e367d522b91bf487fcbe9282fbf51648487c9d0bed005882dc57d7fb57bc WHIRLPOOL 7004dec656c42d2c0ad1a930c4df04955acb0b936c75699f902cd42acb1e42fc9cab7340acf8da834b769d5740431d2ad6e83ea1b61d60939d7d523bb6462977
DIST rspec-rails-3.5.0.tar.gz 123486 SHA256 ab64b15b4eae1d3eb62876eaf1a4496d7881a97e70f840a76dbde6fd361da92e SHA512 b49d8dc463a528a1591f2558b8c55c3208e4e9012b8e8a12592577a1236bb30afbbabdf4e5f784ef3fc65068b4efbf73e7d0287019239ff7ddcc13c9ab9f6d81 WHIRLPOOL 69a970d20f675db679ee9cf0478b7877548fe709fd8dc045257290fa24036a8eb5329a090890a9592987cb24ed426db3ef0fe4082cd1c46a1ba26ebac3660c91
DIST rspec-rails-3.5.1.tar.gz 123546 SHA256 7ce1a682bbf64bd9e48e7de118f7bc121dab212a4c0ff3b6a043cda026d6b14a SHA512 e3e7a9f3334d235cffc2c98f6b447d242dab7390f0244bd814524175e93b1746fc3f069e4e8af7b2ca4a409170543f786ddf1dcc241950fc2b928c42c60bb467 WHIRLPOOL e49575e29412d79f3986ad593c588072d387d305733ec04c3ce5a856b8775a80e50b8993db9c52ff49073668c188609350f67da388c6f4fde054372e7965f739
+DIST rspec-rails-3.5.2.tar.gz 123642 SHA256 14acd233d4b8341231e04abc72c3f16a364fe3bf57efe59a9f40ca49a08535b0 SHA512 4f7f03c740d7215591f9ac4fc9fb77f8d747b6446a831580518db2974b07806eab8ed29ade78afbdd981236f3c64b0d933f04be7cccf72c5e57fb85795dc7df4 WHIRLPOOL 88135186904d1b52e91a6967fd272faca4920d2af2c293955cdf76d6b0ef27127369fe189729447757f5ab0dabc5fd285c73816fae5ff4f5503db9b0e4513167
diff --git a/dev-ruby/rspec-rails/rspec-rails-3.5.2.ebuild b/dev-ruby/rspec-rails/rspec-rails-3.5.2.ebuild
new file mode 100644
index 000000000000..357b351cf49e
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-3.5.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
+
+inherit ruby-fakegem versionator
+
+DESCRIPTION="RSpec's official Ruby on Rails plugin"
+HOMEPAGE="http://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="$(get_version_component_range 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/mocha-0.10*
+ >=dev-ruby/capybara-2.0.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
+}