commit: 6152da955a2edec34e423527dd170cc2f49a010f Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Fri Jan 12 08:26:57 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri Jan 12 08:32:37 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6152da95
dev-ruby/shoulda-matchers: add 6.0.0 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/shoulda-matchers/Manifest | 1 + .../shoulda-matchers/shoulda-matchers-6.0.0.ebuild | 48 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/dev-ruby/shoulda-matchers/Manifest b/dev-ruby/shoulda-matchers/Manifest index a8502f5541c6..1214f2d72134 100644 --- a/dev-ruby/shoulda-matchers/Manifest +++ b/dev-ruby/shoulda-matchers/Manifest @@ -1,3 +1,4 @@ DIST shoulda-matchers-3.1.3.gem 208384 BLAKE2B 0ce7cb91ec8a311ecd4872ca45b178686fedb126fd5a05d55cc8654f5a40d1ed7e0a1da2b2c47c34ce3e5ed13a302a1d309f4afa67bafb37d5ed8a724945e97f SHA512 c61397d20724f3048172a8a20ef8abaeafdba3a1d5d4b923b1b11480b25c70820fd372eb2851c6eb307894bc0b7e1aae515e23a3581a83db1b65a2c778b22d67 DIST shoulda-matchers-4.5.1.tar.gz 243634 BLAKE2B 32d846d0dc3c8725a9bd0d60e858eb9fe4106a20222503ac908d1a9c9c310d8e1477aa6264f06961812151b9bd1a1a33488707d9c96524cd3431ed7b3246e534 SHA512 8c240fe7699094a63db824145ca28c245526e95d489fac82e1a28a2418ae40524ba0a184a7f9b269b7c31ad7ae2cbc24b453547cab0845639fdea442bada483a DIST shoulda-matchers-5.3.0.tar.gz 244767 BLAKE2B 4a1a006702bb352acb338c71e0c3152bfce288c51d676c194ce3135d41057d119c02053c26e5e9079dee49514f3396f6f0155fd310063713a975d747221d8e34 SHA512 5794f1eafdb852732e35433b7ba06975a65ec25363b8c7dedf154644fbf65ecb8b929da538f1a49ad4e767b286f7e8910cd06fa6f41f5ccc6f0e8a62f498c56e +DIST shoulda-matchers-6.0.0.tar.gz 256754 BLAKE2B cf231b2f331d3b2f89a4db5e3146241c1274191b2a175bb98643b6bff2732ed0373214a9bcfca8201b3374038a385ea39725528af9479d9a0e5d3feb27cec07e SHA512 c3136f5b214416f5c8a47ddfeb7467255cdacd474480294ff0a19f6eded35f4db9431560fb6716a1a1dc23605f8ec4ede398682964b11a8c5181fab2665799c0 diff --git a/dev-ruby/shoulda-matchers/shoulda-matchers-6.0.0.ebuild b/dev-ruby/shoulda-matchers/shoulda-matchers-6.0.0.ebuild new file mode 100644 index 000000000000..2e226c418752 --- /dev/null +++ b/dev-ruby/shoulda-matchers/shoulda-matchers-6.0.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRAINSTALL="CHANGELOG.md README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Making tests easy on the fingers and eyes" +HOMEPAGE="https://github.com/thoughtbot/shoulda-matchers" +SRC_URI="https://github.com/thoughtbot/shoulda-matchers/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# Fedora manage to run the tests, but it's still pretty tricky. +# https://src.fedoraproject.org/rpms/rubygem-shoulda-matchers/blob/rawhide/f/rubygem-shoulda-matchers.spec +RESTRICT="test" + +ruby_add_rdepend ">=dev-ruby/activesupport-5.2.0:*" + +all_ruby_prepare() { + sed -i -e '/pry/ s:^:#:' spec/spec_helper.rb || die + + #rm Gemfile.lock || die + + # Avoid Appraisal and Bundler. + #sed -i "/current_bundle/ s/^/#/" \ + # spec/acceptance_spec_helper.rb \ + # spec/support/unit/load_environment.rb || die + #sed -i "/CurrentBundle/ s/^/#/" \ + # spec/acceptance_spec_helper.rb \ + # spec/support/unit/load_environment.rb || die + + # Avoid git and sprockets dependencies. + #sed -i '/def rails_new_command/,/^ end$/ { + # /rails new/ s/"$/ --skip-git --skip-asset-pipeline&/ + #}' spec/support/unit/rails_application.rb || die + #sed -i '/def rails_new_command/,/^ end$/ { + # /rails new/ s/"$/ --skip-git --skip-asset-pipeline&/ + #}' spec/support/acceptance/helpers/step_helpers.rb || die +}