Diff shoulda-context-1.2.2-r1 with a shoulda-context-2.0.0

/usr/portage/dev-ruby/shoulda-context/shoulda-context-2.0.0.ebuild 2023-10-09 14:52:30.464368375 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
USE_RUBY="ruby27 ruby30 ruby31 ruby32"
6
USE_RUBY="ruby30 ruby31 ruby32"
7 7

  
8 8
RUBY_FAKEGEM_EXTRADOC="CONTRIBUTING.md README.md"
9 9

  
10
RUBY_FAKEGEM_EXTRAINSTALL="init.rb rails tasks"
10
RUBY_FAKEGEM_EXTRAINSTALL="tasks"
11 11

  
12 12
# Don't install the conversion script to avoid collisions with older
13 13
# shoulda.
......
19 19
HOMEPAGE="https://github.com/thoughtbot/shoulda-context"
20 20

  
21 21
LICENSE="MIT"
22
SLOT="0"
22
SLOT="$(ver_cut 1)"
23 23
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86"
24 24
IUSE="doc test"
25 25

  
26 26
ruby_add_bdepend "test? ( dev-ruby/test-unit:2
27
	<dev-ruby/mocha-1 )"
27
	>=dev-ruby/mocha-1.0 )"
28 28

  
29 29
all_ruby_prepare() {
30
	sed -i -e "1igem 'mocha', '~>0.10'\n" test/test_helper.rb || die
30
	sed -e '/\(current_bundle\|CurrentBundle\)/ s:^:#:' \
31
		-e '/pry-byebug/ s:^:#:' \
32
		-e '/warnings_logger/ s:^:#: ; /WarningsLogger/,/^)/ s:^:#:' \
33
		-e '/rails_application_with_shoulda_context/ s:^:#:' \
34
		-i test/test_helper.rb || die
35
	rm -f test/shoulda/{railtie,rerun_snippet,test_framework_detection}_test.rb || die
31 36
}
32 37

  
33 38
each_ruby_test() {
34
	BUNDLE_GEMFILE=x ruby-ng_testrb-2 -Itest test/shoulda/*_test.rb || die
39
	${RUBY} -Ilib:test:. -e 'Dir["test/shoulda/*_test.rb"].each { require _1 }' || die
35 40
}
Thank you!