mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-ruby/rspec-mocks: add 3.12.5
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST rspec-mocks-3.11.2-git.tgz 202347 BLAKE2B 7db89badf2cd3a9bdb590260dfced05cc72ccb7b2a8f600969f17c2df0523ee602f728aef257e88876f5c3b283645cf7f3243bd6de67c5bd26d3d74d0349593a SHA512 a1053cb9604b01de99f79b18fea2c4b3818d950e83da642a8b3aa9dbdb397429f51d95efa84a603770d4db94a25758c1cef15ce1ba77a4c952e9ef5f43a21e4d
|
||||
DIST rspec-mocks-3.12.2-git.tgz 204751 BLAKE2B bcbb8d6df6b1bf3b58e43e72c25b792f91f00467520cb1b366883e8ad54b7a380b287ae9e6f453de78603423f099ed0d4b3759338f5a4a91ea9c42c16439c4eb SHA512 ae1cdafe53d7c3258bce4cd0bec10a9b91886f2b71736e028350ea212999b88b9fb2e3554f1db040bf8e66cfb2d0139c305aa219e01c8db998b75283da327d3a
|
||||
DIST rspec-mocks-3.12.3-git.tgz 204925 BLAKE2B b72faa1e560b179a0bb9f2a59d53b2dd01142bfaaa60f66056848eb3f3c7181877be3d921c3eff5e023834fb256f2a7f49f96cf448040713e52560c8d4525ef9 SHA512 0ed50f0e9a38a23805a56c1ae3ffa94f27428755f6613053df0771440d0b5b9f3d6d1bbc8a3e310e0f66b57540dd8bc3e409336c96a78d178506b3ac2e849b67
|
||||
DIST rspec-mocks-3.12.5-git.tgz 207219 BLAKE2B 8cd6b706df056fbf896164f195338bc3e3f77393b0c8550a7e6e149a337de2efc0872ee50320d0c8e3d5d462ce3106b1cc34b1ea5854794e84876c32d8a6c4aa SHA512 14cdbc38e88fe6a9d25c833814074bf94ee529bc8c2f13b5bdf74e9078a264d09f6b38e35966c1005fd6fbbfb004276fe1cdc5d614cf9a15550898a40d0dd474
|
||||
|
||||
54
dev-ruby/rspec-mocks/rspec-mocks-3.12.5.ebuild
Normal file
54
dev-ruby/rspec-mocks/rspec-mocks-3.12.5.ebuild
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby30 ruby31 ruby32"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
#RUBY_FAKEGEM_RECIPE_DOC="none"
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="rspec-mocks.gemspec"
|
||||
|
||||
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 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(ver_cut 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.12.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
|
||||
|
||||
# And consequently avoid specs using bundler. This also avoids a
|
||||
# circular dependency on aruba.
|
||||
rm -f spec/integration/rails_support_spec.rb spec/support/aruba.rb || 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
|
||||
|
||||
sed -i -e 's/git ls-files --/find */' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
}
|
||||
Reference in New Issue
Block a user