2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
|
USE_RUBY="ruby31 ruby32"
|
|
5 |
USE_RUBY="ruby30 ruby31 ruby32"
|
6 |
6 |
|
7 |
7 |
# this is not null so that the dependencies will actually be filled
|
8 |
8 |
RUBY_FAKEGEM_TASK_TEST="test"
|
... | ... | |
27 |
27 |
|
28 |
28 |
RUBY_S="rails-${PV}/${PN}"
|
29 |
29 |
|
30 |
|
PATCHES=(
|
31 |
|
"${FILESDIR}"/${PN}-6.1.7.4-ruby32-keywords.patch
|
32 |
|
)
|
33 |
|
|
34 |
30 |
ruby_add_rdepend "~dev-ruby/activesupport-${PV}
|
35 |
31 |
~dev-ruby/activemodel-${PV}
|
36 |
32 |
sqlite? ( >=dev-ruby/sqlite3-1.4 )
|
... | ... | |
39 |
35 |
|
40 |
36 |
ruby_add_bdepend "
|
41 |
37 |
test? (
|
|
38 |
dev-ruby/benchmark-ips
|
42 |
39 |
dev-ruby/bundler
|
43 |
40 |
~dev-ruby/actionpack-${PV}
|
44 |
41 |
~dev-ruby/railties-${PV}
|
... | ... | |
65 |
62 |
# earlier that implicitly required it.
|
66 |
63 |
sed -i -e '$agem "json"' ../Gemfile || die
|
67 |
64 |
|
68 |
|
# Load correct rails version
|
69 |
|
sed -i -e '2igem "activemodel", "~> 6.1.0"; gem "activejob", "~> 6.1.0"; gem "railties", "~> 6.1.0"; gem "minitest", "<5.16"' test/cases/helper.rb || die
|
|
65 |
sed -i -e '3igem "rack", "<3"; gem "minitest", "<5.16"' test/cases/helper.rb || die
|
70 |
66 |
|
71 |
67 |
# Avoid single tests using mysql or postgres dependencies.
|
72 |
68 |
rm test/cases/invalid_connection_test.rb || die
|
... | ... | |
77 |
73 |
sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \
|
78 |
74 |
test/cases/associations/has_many_associations_test.rb
|
79 |
75 |
|
80 |
|
# Avoid tests that no longer work with newer sqlite versions
|
81 |
|
rm -f test/cases/adapters/sqlite3/explain_test.rb || die
|
82 |
|
sed -i -e '/test_references_stays_as_integer_column/askip "Fails on case difference"' test/cases/migration/compatibility_test.rb || die
|
83 |
|
|
84 |
76 |
# Avoid test failing to bind limit length in favor of security release
|
85 |
77 |
sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die
|
86 |
78 |
|
87 |
79 |
# Avoid test failing related to rubygems
|
88 |
|
sed -i -e '/test_generates_absolute_path_with_given_root/askip "rubygems actiovation monitor"' test/cases/tasks/sqlite_rake_test.rb || die
|
|
80 |
sed -e '/test_generates_absolute_path_with_given_root/askip "rubygems actiovation monitor"' \
|
|
81 |
-i test/cases/tasks/sqlite_rake_test.rb || die
|
|
82 |
|
|
83 |
# Avoid test requiring specific locales
|
|
84 |
sed -i -e '/test_unicode_input_casting/askip "Requires specific locales"' test/cases/binary_test.rb || die
|
89 |
85 |
}
|
90 |
86 |
|
91 |
87 |
each_ruby_test() {
|