summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-06-30 08:00:46 +0200
committerHans de Graaff <graaff@gentoo.org>2023-06-30 08:03:12 +0200
commit25729d371c4eb6805962342bc2338e5138e6c0b5 (patch)
tree386bb6d073350f141601d6e85857ce3c8116bf6d /dev-ruby/rspec-mocks
parentdev-ruby/async: drop 1.30.3, 2.2.1, 2.5.0 (diff)
downloadgentoo-25729d371c4eb6805962342bc2338e5138e6c0b5.tar.gz
gentoo-25729d371c4eb6805962342bc2338e5138e6c0b5.tar.bz2
gentoo-25729d371c4eb6805962342bc2338e5138e6c0b5.zip
dev-ruby/rspec-mocks: add 3.12.5
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rspec-mocks')
-rw-r--r--dev-ruby/rspec-mocks/Manifest1
-rw-r--r--dev-ruby/rspec-mocks/rspec-mocks-3.12.5.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-ruby/rspec-mocks/Manifest b/dev-ruby/rspec-mocks/Manifest
index a1a4921e2b99..72ffd9b912c5 100644
--- a/dev-ruby/rspec-mocks/Manifest
+++ b/dev-ruby/rspec-mocks/Manifest
@@ -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
diff --git a/dev-ruby/rspec-mocks/rspec-mocks-3.12.5.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-3.12.5.ebuild
new file mode 100644
index 000000000000..ab18244b00f2
--- /dev/null
+++ b/dev-ruby/rspec-mocks/rspec-mocks-3.12.5.ebuild
@@ -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
+}