Skip to content

Commit

Permalink
dev-ruby/rspec-rails: add 3.4.2
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
graaff committed Feb 4, 2016
1 parent 2b3957b commit d23dda2
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-ruby/rspec-rails/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ DIST rspec-rails-3.2.3.tar.gz 97589 SHA256 d70416a471a6e83b10a3b2c18f2dcfcb22897
DIST rspec-rails-3.3.2.tar.gz 102934 SHA256 efdfadb375e0a64b6a306482ab705bdd9f147ff8c6b1acebb1981e50d5043b1c SHA512 59d8c516e3b7b5138c08d6cc2d68e21078dec0b340f9c0f709c9fa9cb7c318718454a8e11737a3ff1f2e940fc7d8db425b36bffda6966ad5f270923ffb9345bc WHIRLPOOL 6501d7b3467dcbec069472e6510a8c48a0a50b5f02ad6be5336b8c0bd2f841e72d865a3a8260bc4ef47744f6fd39eb4554c0c14d47153b2c1dce829d446b3672
DIST rspec-rails-3.3.3.tar.gz 102963 SHA256 b0edc645a25c929deb39a7334894922cdf67cf7cb895bb728751d0d3a459fac9 SHA512 72c8a027d3ac7c8487c4dec23c91c7014456e6d8ed10f80f72e71c90e7bde0a3c005dd6b57985b1f3e32b32cb6d4610f651f8aa4b81156536a667a266e816603 WHIRLPOOL 78b00968fe75cd632b94bd4b2f244dc6ac50e708b9023baf882bba6ef76b827b681f55dd88be0220988c49d308b9bde4e3344456980db0d9a5654e39f65edd93
DIST rspec-rails-3.4.0.tar.gz 113846 SHA256 8cbe0b54e1000e3b5f9810c22b8387f95d34c482eea00177c4895b6a5d38673e SHA512 d9bc98a2af31dba2149c678025b2e9ffc7120daec2a0326fd50f1dd3e47efd8cb636fda10728d637792a4a9bdeeed54650892af11aafa4ec4baaa7577329985e WHIRLPOOL b8e0934ba838acbab96123d6327e1910c86117b5f3b16206ec782d4e12c4cf2e59f2fce481a29d6cb3b80804407859523a9bbc38c6e58b8d35f2d7ef0e09fb2f
DIST rspec-rails-3.4.2.tar.gz 114252 SHA256 ff54962e135baad173aa987ba08ea4d35b2479cc32beaa2d348e2dfb95bffc85 SHA512 922a666ac674d6e91083caf5b5526556add9ffc8783f3f5af8a7d60afb2353b99730e367d522b91bf487fcbe9282fbf51648487c9d0bed005882dc57d7fb57bc WHIRLPOOL 7004dec656c42d2c0ad1a930c4df04955acb0b936c75699f902cd42acb1e42fc9cab7340acf8da834b769d5740431d2ad6e83ea1b61d60939d7d523bb6462977
56 changes: 56 additions & 0 deletions dev-ruby/rspec-rails/rspec-rails-3.4.2.ebuild
Original file line number Diff line number Diff line change
@@ -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"

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/activesupport-4.3:*
>=dev-ruby/actionpack-3.0:* <dev-ruby/actionpack-4.3:*
>=dev-ruby/railties-3.0:* <dev-ruby/railties-4.3:*
=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
}

0 comments on commit d23dda2

Please sign in to comment.