diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-05-06 07:08:47 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-05-06 07:10:00 +0200 |
commit | b8bdb7c69170535d499fd65a7d79f48aa9fe919f (patch) | |
tree | 4f59e42ae10f30443e610cbadd81140e1d043036 /dev-ruby/rspec-rails | |
parent | dev-ruby/rspec-support: add 3.6.0 (diff) | |
download | gentoo-b8bdb7c69170535d499fd65a7d79f48aa9fe919f.tar.gz gentoo-b8bdb7c69170535d499fd65a7d79f48aa9fe919f.tar.bz2 gentoo-b8bdb7c69170535d499fd65a7d79f48aa9fe919f.zip |
dev-ruby/rspec-rails: add 3.6.0
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/rspec-rails')
-rw-r--r-- | dev-ruby/rspec-rails/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rspec-rails/rspec-rails-3.6.0.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest index 2794764f8100..3315cdc1f40c 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.3.3.tar.gz 102963 SHA256 b0edc645a25c929deb39a7334894922cdf67cf7cb895bb728751d0d3a459fac9 SHA512 72c8a027d3ac7c8487c4dec23c91c7014456e6d8ed10f80f72e71c90e7bde0a3c005dd6b57985b1f3e32b32cb6d4610f651f8aa4b81156536a667a266e816603 WHIRLPOOL 78b00968fe75cd632b94bd4b2f244dc6ac50e708b9023baf882bba6ef76b827b681f55dd88be0220988c49d308b9bde4e3344456980db0d9a5654e39f65edd93 DIST rspec-rails-3.4.2.tar.gz 114252 SHA256 ff54962e135baad173aa987ba08ea4d35b2479cc32beaa2d348e2dfb95bffc85 SHA512 922a666ac674d6e91083caf5b5526556add9ffc8783f3f5af8a7d60afb2353b99730e367d522b91bf487fcbe9282fbf51648487c9d0bed005882dc57d7fb57bc WHIRLPOOL 7004dec656c42d2c0ad1a930c4df04955acb0b936c75699f902cd42acb1e42fc9cab7340acf8da834b769d5740431d2ad6e83ea1b61d60939d7d523bb6462977 DIST rspec-rails-3.5.2.tar.gz 123642 SHA256 14acd233d4b8341231e04abc72c3f16a364fe3bf57efe59a9f40ca49a08535b0 SHA512 4f7f03c740d7215591f9ac4fc9fb77f8d747b6446a831580518db2974b07806eab8ed29ade78afbdd981236f3c64b0d933f04be7cccf72c5e57fb85795dc7df4 WHIRLPOOL 88135186904d1b52e91a6967fd272faca4920d2af2c293955cdf76d6b0ef27127369fe189729447757f5ab0dabc5fd285c73816fae5ff4f5503db9b0e4513167 +DIST rspec-rails-3.6.0.tar.gz 127171 SHA256 3c47e0c209584d2001fa6035af7ca75aea5c6d16343a71adf4a821690246a696 SHA512 f093c96d2d0c5b75ca055bfd1e7dfb990a66288a84293c6b3bd4622dfad52716b4b60553eb83878fb566c2e4d8b25b91da2071727ef54e6dd8aa11babeb80f81 WHIRLPOOL 4fd84be57be22090ae41a3e5c19d068ba1cbbf627b66ec97cd3774921dd3c4ff550337abd6955a9183841bd9b55270dfef4c928909288cd3c4aa72650fce7992 diff --git a/dev-ruby/rspec-rails/rspec-rails-3.6.0.ebuild b/dev-ruby/rspec-rails/rspec-rails-3.6.0.ebuild new file mode 100644 index 000000000000..3bd3af117184 --- /dev/null +++ b/dev-ruby/rspec-rails/rspec-rails-3.6.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby21 ruby22 ruby23" + +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/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 +} |