diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-10-21 07:45:28 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-10-21 07:45:28 +0200 |
commit | 42dcbb0d598bda49ea7d3fc97e17f1cac343914a (patch) | |
tree | 8debab73e3ae55fcb1d9ad5ba36485db54771888 /dev-ruby/rspec-mocks | |
parent | dev-ruby/rspec-support: Add rspec 3.7 (diff) | |
download | gentoo-42dcbb0d598bda49ea7d3fc97e17f1cac343914a.tar.gz gentoo-42dcbb0d598bda49ea7d3fc97e17f1cac343914a.tar.bz2 gentoo-42dcbb0d598bda49ea7d3fc97e17f1cac343914a.zip |
dev-ruby/rspec-mocks: Add rspec 3.7
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/rspec-mocks')
-rw-r--r-- | dev-ruby/rspec-mocks/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rspec-mocks/rspec-mocks-3.7.0.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/rspec-mocks/Manifest b/dev-ruby/rspec-mocks/Manifest index 6602b836b3c0..e09fe9b8f71d 100644 --- a/dev-ruby/rspec-mocks/Manifest +++ b/dev-ruby/rspec-mocks/Manifest @@ -3,3 +3,4 @@ DIST rspec-mocks-2.99.2-git.tgz 101731 SHA256 fad961e30ef67e014625fb6b4bb62db0f6 DIST rspec-mocks-3.3.2-git.tgz 174849 SHA256 faec1a03eecdda1217238df7989c80f4201cf7613580af3824b2fa3af2c45ec0 SHA512 b03dd81232650d851db51dd62a11c6f34df7e3d47db9ec96168259f7d4045d2497098de903b5ef6865c29a5f4835ee1865ff64a8177f9212e8f699175ec7fe90 WHIRLPOOL 33936705596662c74c31b74b1bc5ac57bb76290b4fda1375edb18b9491c7b1ced0dd545c21ae6b67174275235ff767ddc322b73da97685a0dc6eeff13b9c9b61 DIST rspec-mocks-3.5.0-git.tgz 186806 SHA256 19340072723eb9b632fdc3e2636540d617d585d5ae1a0b67c7c07e93cc5a84e2 SHA512 b7dcb4ce0eac894d6652be45fea981cb7ade47a739ad926a87aa41d8a34fa9deffc45f5718d1634f03fbedaba82a77005466fa83155dc433fed6a19f8a897c4d WHIRLPOOL 6dd479a9efcfa149a4342f36f28a6350d16a222b78f1141996c3a38f77f7c7995bacd1cd67b4ebd97c46bf57a8a6eb684fba92ca2a12df4d9c14ea9eb99af2f2 DIST rspec-mocks-3.6.0-git.tgz 189000 SHA256 fdbb61f579d442eff8c7096143a701bcd834b7ce96a959fab663db6be2f262f7 SHA512 42cc4870fde8eba0a6da7df4ab07e4d59c6447bb8f52e0172e7f231d47304c20c6e2edfceee698d5d344bb78384acbe3df4bb67de784cc24a63fae02ed1d4a7b WHIRLPOOL 9939c4ced45b85c5d270079345851143466affa1a40458edf3dff6427861f03198fce6b55ef27ddd452338ad2411a45c88dd9fc1fe59a2dd5494da11e288976f +DIST rspec-mocks-3.7.0-git.tgz 189170 SHA256 293a5406099d6767d7ffbdb01c57022e6bb3050d650e972bfa8fe64b30115fc4 SHA512 8673726571ccf8a901281e44faeb25ffcb59579dc380138f0557cd9310192cd340081e5e8ad65ae281777727b502cca2f6877134b0fb48f2e0ea40b133002aff WHIRLPOOL 7991dd19cd62b0b0cea5b905bbc9b4e51a9a49cb56299fbf62d21e7fadeabdee4b28895f1b835327e89ad260b6e400e3d21290f744b1ab1bfb6548fcca1d17d3 diff --git a/dev-ruby/rspec-mocks/rspec-mocks-3.7.0.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-3.7.0.ebuild new file mode 100644 index 000000000000..d7c6b8dbc418 --- /dev/null +++ b/dev-ruby/rspec-mocks/rspec-mocks-3.7.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby" +HOMEPAGE="https://github.com/rspec/rspec-mocks" +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz" + +LICENSE="MIT" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +SUBVERSION="$(get_version_component_range 1-2)" + +ruby_add_rdepend "=dev-ruby/rspec-support-${SUBVERSION}* + >=dev-ruby/diff-lcs-1.2.0 =dev-ruby/diff-lcs-1*" + +ruby_add_bdepend " + test? ( + >=dev-ruby/rspec-core-3.3.0:3 + >=dev-ruby/rspec-expectations-2.99.0:3 + )" + +all_ruby_prepare() { + # Don't set up bundler: it doesn't understand our setup. + sed -i -e '/[Bb]undler/d' Rakefile || die + + # Remove the Gemfile to avoid running through 'bundle exec' + rm Gemfile || die + + # Remove .rspec options to avoid dependency on newer rspec when + # bootstrapping. + rm .rspec || die + + sed -i -e '1irequire "spec_helper"' spec/rspec/mocks/any_instance_spec.rb || die +} |