diff options
author | Hans de Graaff <graaff@gentoo.org> | 2015-11-14 11:12:57 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2015-11-14 11:13:28 +0100 |
commit | a07aa1dc14f73576dec3a29ab389408d10c8b753 (patch) | |
tree | 75a180816b5988234b0cfeccf4410d0310324863 | |
parent | dev-ruby/rspec: add rspec 3.4.0 (diff) | |
download | gentoo-a07aa1dc14f73576dec3a29ab389408d10c8b753.tar.gz gentoo-a07aa1dc14f73576dec3a29ab389408d10c8b753.tar.bz2 gentoo-a07aa1dc14f73576dec3a29ab389408d10c8b753.zip |
dev-ruby/rspec-rails: add rspec 3.4.0
Drop arches for unkeyworded rspec-core version, bug 562452
Package-Manager: portage-2.2.20.1
-rw-r--r-- | dev-ruby/rspec-rails/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rspec-rails/rspec-rails-3.4.0.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest index 97bc746013ae..85968ed5470b 100644 --- a/dev-ruby/rspec-rails/Manifest +++ b/dev-ruby/rspec-rails/Manifest @@ -3,3 +3,4 @@ DIST rspec-rails-2.99.0.tar.gz 78448 SHA256 81ff54e638432c2b734ebefd5398f646960b DIST rspec-rails-3.2.3.tar.gz 97589 SHA256 d70416a471a6e83b10a3b2c18f2dcfcb22897306cc1b238bb47fb4b6ee824ecb SHA512 1efeea5b742c9ded10dfdf432439b05765773bc19bb127a68f5cabd16e35d6bbead79c51343a419de03b5fe36d3ccf3754916ec55e28d6d9bf095508f1233af8 WHIRLPOOL 502d944adc28e9ac5b78db924cc985213067af60d5d238675feacd6e5625c479a9d7870cd43c49c12aac928d11f9361e7f7e85211a25403794a73e6933af69c0 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 diff --git a/dev-ruby/rspec-rails/rspec-rails-3.4.0.ebuild b/dev-ruby/rspec-rails/rspec-rails-3.4.0.ebuild new file mode 100644 index 000000000000..d15ad70e3dc0 --- /dev/null +++ b/dev-ruby/rspec-rails/rspec-rails-3.4.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 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/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 +} |