Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/activerecord/
Date: Sun, 06 Jun 2021 07:45:12
Message-Id: 1622965333.ba90323e46f4ce2f2a6985322f5d3725d0d622ba.graaff@gentoo
1 commit: ba90323e46f4ce2f2a6985322f5d3725d0d622ba
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 6 07:42:13 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 6 07:42:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba90323e
7
8 dev-ruby/activerecord: cleanup
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/activerecord/Manifest | 5 --
14 dev-ruby/activerecord/activerecord-5.2.4.5.ebuild | 89 -----------------------
15 dev-ruby/activerecord/activerecord-6.0.3.5.ebuild | 86 ----------------------
16 dev-ruby/activerecord/activerecord-6.1.2.1.ebuild | 83 ---------------------
17 dev-ruby/activerecord/activerecord-6.1.3.1.ebuild | 83 ---------------------
18 dev-ruby/activerecord/activerecord-6.1.3.ebuild | 83 ---------------------
19 6 files changed, 429 deletions(-)
20
21 diff --git a/dev-ruby/activerecord/Manifest b/dev-ruby/activerecord/Manifest
22 index 5a7d7a6d38e..b6a42c6bee9 100644
23 --- a/dev-ruby/activerecord/Manifest
24 +++ b/dev-ruby/activerecord/Manifest
25 @@ -1,8 +1,3 @@
26 -DIST rails-5.2.4.5.tgz 8826076 BLAKE2B 41a13708f72f0c281af7b6c97828d873b9431913315e155bec2f798b83a9fd214a0176a93ba74d96b48718dc900b6737a62f5d6593ef7f5bb0b8430c96e5e234 SHA512 452e0649638daf57e8f7c6131bb048c0d960e875fbc3596678404965fd1438a5151858b22c2441a927509337b6a256671b53c24ee35ff477e18153af358b08af
27 DIST rails-5.2.6.tgz 8841270 BLAKE2B 8e813f376446ef249aa3b48934d3cb5ae125c09c54353cc93557c3bee4f23e47ae7ceffab75d5cbfb691daed85149d9054337b468a0010bc5c7ebb879502396b SHA512 465e017591a9962a2e0dec2eac9669d5f507d0904e9eec50fbc8848d804ba5f1eb3220fd5acc949845f048f59cfc5e43f099707650edf301d6595e70e33888c7
28 -DIST rails-6.0.3.5.tgz 18566999 BLAKE2B b07d1d6c1e2ebaaf3c337350bb08fe339e324818543dcd7163fe3c7ff56f50c5556f369badeb4fd48afa6d95449e18e57fa1b05db6ce544d38ee2f58bd3aa513 SHA512 c9d6bf689aeb40fb728fb681b65c48ebd51de893060ddac37a1fdefbb0d420cee3a456f148d96d577c651c9d7b994efdb3319fa865cb012af8712052a20a0bf3
29 DIST rails-6.0.3.7.tgz 18570545 BLAKE2B 6433705f18075e286d14d25dd87def61a3ac9c7a8fc5160f37b9a6f6ab0d7f36a7235602713888df45e55cf4afb56f922c476989304397d422016dc34f147353 SHA512 91612223c9461731741c056a700879ce274a177737fd19ed6341ce07acfa4e4862728ef12bfa1a70cdb3e5c8492ad0da6aae2e7d0ed5ad32d680d8bd8c3ab102
30 -DIST rails-6.1.2.1.tgz 10990239 BLAKE2B ff1c9781eab32fda320cb2b9efc92e52ed155b659a43385781bfa422d03653879367bedc7ef4e3accb0a51b7962054eecd5202fd1e1a49ff7946c2f9388a69df SHA512 61e8bf0568c0b06a2c8f6c5e4ae6becc521646a5cdd3d6832c3b52998326a4bd437ad2bd284c010d445a3dc54bf519f7fbd2e9d4368c91b7d2a9abe46e3a276d
31 -DIST rails-6.1.3.1.tgz 10991507 BLAKE2B 6798364c4d8c6339269950b5b583cbaa4c6d86b7880e7fa181bb6e52bb0d18b051eec233b2819af1668dcee8c4f40765fa9c46c6bb36329d0eda19f559a7472b SHA512 8c40d739b8300eec5d054bb0481133995875fa0bf854c1f5febceba7c0d156c9f249952687f0132bbc36ac59606013625b395faa301173ecdd247b4de0bc168b
32 DIST rails-6.1.3.2.tgz 10992572 BLAKE2B ec4b7c33180ecc6b9dc9bd0270c9c03e48a774a7c0fc1d79638bd6b52a4c9831f59c5d8714e24c9611ac9e8ad03dddc664c2969da8be568eade76464c04d5697 SHA512 3b30facfe0555c3161b5fc50efb7dc1f3df0eeadbfa19f16df3ebdb4877d6fb9a978ae7a6713a502d79e6d8f1be20157bd5ef64919fdd558cad89492cc2d9672
33 -DIST rails-6.1.3.tgz 10991190 BLAKE2B d7a01ad39d4caaee1eaeed9909255fe16c3bd224c61408aca8e319e21ea36566a5be4bbaff37d4d19ee88ec2914e08f85e4e71c970ba39ade8b86f8ba4603b25 SHA512 ec6e871e3226c3efa5dc7f59cbd1819b45ab0d1a21b39b8c2d76022fff761fb268f79c7b560b987af245d9e305ecc4517379de3769d468b5a548005f8533044a
34
35 diff --git a/dev-ruby/activerecord/activerecord-5.2.4.5.ebuild b/dev-ruby/activerecord/activerecord-5.2.4.5.ebuild
36 deleted file mode 100644
37 index fad213fecb9..00000000000
38 --- a/dev-ruby/activerecord/activerecord-5.2.4.5.ebuild
39 +++ /dev/null
40 @@ -1,89 +0,0 @@
41 -# Copyright 1999-2021 Gentoo Authors
42 -# Distributed under the terms of the GNU General Public License v2
43 -
44 -EAPI=6
45 -USE_RUBY="ruby24 ruby25 ruby26"
46 -
47 -# this is not null so that the dependencies will actually be filled
48 -RUBY_FAKEGEM_TASK_TEST="test"
49 -
50 -RUBY_FAKEGEM_TASK_DOC=""
51 -RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
52 -
53 -RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec"
54 -
55 -RUBY_FAKEGEM_BINWRAP=""
56 -
57 -inherit ruby-fakegem eapi7-ver
58 -
59 -DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM"
60 -HOMEPAGE="https://github.com/rails/rails/"
61 -SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
62 -
63 -LICENSE="MIT"
64 -SLOT="$(ver_cut 1-2)"
65 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux"
66 -IUSE="mysql postgres sqlite"
67 -
68 -RUBY_S="rails-${PV}/${PN}"
69 -
70 -ruby_add_rdepend "~dev-ruby/activesupport-${PV}
71 - ~dev-ruby/activemodel-${PV}
72 - dev-ruby/arel:9.0
73 - sqlite? ( >=dev-ruby/sqlite3-1.3.6 )
74 - mysql? ( dev-ruby/mysql2:0.5 )
75 - postgres? ( >=dev-ruby/pg-0.18.0:* )"
76 -
77 -ruby_add_bdepend "
78 - test? (
79 - dev-ruby/bundler
80 - ~dev-ruby/actionpack-${PV}
81 - ~dev-ruby/actionmailer-${PV}
82 - >=dev-ruby/sqlite3-1.3.6
83 - dev-ruby/mocha
84 - dev-ruby/minitest:5
85 - )"
86 -
87 -DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )"
88 -
89 -all_ruby_prepare() {
90 - # Remove items from the common Gemfile that we don't need for this
91 - # test run. This also requires handling some gemspecs.
92 - rm ../Gemfile.lock || die
93 - sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|execjs\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\|minitest\|sprockets\|stackprof\)/ s:^:#:" \
94 - -e '/:job/,/end/ s:^:#:' \
95 - -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
96 - sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
97 - sed -e '/bcrypt/ s/3.0.0/3.0/' \
98 - -i ../Gemfile || die
99 -
100 - # Add back json in the Gemfile because we dropped some dependencies
101 - # earlier that implicitly required it.
102 - sed -i -e '$agem "json"' \
103 - ../Gemfile || die
104 -
105 - sed -e '3i gem "activesupport", "~> 5.2.0"' \
106 - -e '3i gem "activerecord", "~> 5.2.0"' \
107 - -e '3i gem "activemodel", "~> 5.2.0"' \
108 - -i test/cases/helper.rb || die
109 -
110 - # Avoid test depending on mysql adapter which we don't support for
111 - # this Rails version to simplify our dependencies.
112 - rm test/cases/connection_specification/resolver_test.rb || die
113 -
114 - # Avoid single test using mysql dependencies.
115 - rm test/cases/invalid_connection_test.rb || die
116 -
117 - # Avoid failing test that makes bad assumptions on database state.
118 - sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \
119 - test/cases/associations/has_many_associations_test.rb
120 -
121 - # Avoid test failing to bind limit length in favor of security release
122 - sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die
123 -}
124 -
125 -each_ruby_test() {
126 - if use sqlite; then
127 - MT_NO_PLUGINS=true ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed"
128 - fi
129 -}
130
131 diff --git a/dev-ruby/activerecord/activerecord-6.0.3.5.ebuild b/dev-ruby/activerecord/activerecord-6.0.3.5.ebuild
132 deleted file mode 100644
133 index 58c3bf61a99..00000000000
134 --- a/dev-ruby/activerecord/activerecord-6.0.3.5.ebuild
135 +++ /dev/null
136 @@ -1,86 +0,0 @@
137 -# Copyright 1999-2021 Gentoo Authors
138 -# Distributed under the terms of the GNU General Public License v2
139 -
140 -EAPI=7
141 -USE_RUBY="ruby25 ruby26 ruby27"
142 -
143 -# this is not null so that the dependencies will actually be filled
144 -RUBY_FAKEGEM_TASK_TEST="test"
145 -
146 -RUBY_FAKEGEM_RECIPE_DOC="none"
147 -RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
148 -
149 -RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec"
150 -
151 -RUBY_FAKEGEM_BINWRAP=""
152 -
153 -inherit ruby-fakegem
154 -
155 -DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM"
156 -HOMEPAGE="https://github.com/rails/rails/"
157 -SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
158 -
159 -LICENSE="MIT"
160 -SLOT="$(ver_cut 1-2)"
161 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
162 -IUSE="mysql postgres sqlite"
163 -
164 -RUBY_S="rails-${PV}/${PN}"
165 -
166 -ruby_add_rdepend "~dev-ruby/activesupport-${PV}
167 - ~dev-ruby/activemodel-${PV}
168 - sqlite? ( >=dev-ruby/sqlite3-1.4 )
169 - mysql? ( dev-ruby/mysql2:0.5 )
170 - postgres? ( dev-ruby/pg:1 )"
171 -
172 -ruby_add_bdepend "
173 - test? (
174 - dev-ruby/bundler
175 - ~dev-ruby/actionpack-${PV}
176 - >=dev-ruby/sqlite3-1.4.0
177 - dev-ruby/mocha
178 - dev-ruby/minitest:5
179 - )"
180 -
181 -DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )"
182 -
183 -all_ruby_prepare() {
184 - # Remove items from the common Gemfile that we don't need for this
185 - # test run. This also requires handling some gemspecs.
186 - rm ../Gemfile.lock || die
187 - sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|execjs\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\|minitest\|sprockets\|stackprof\)/ s:^:#:" \
188 - -e '/:job/,/end/ s:^:#:' \
189 - -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
190 - sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
191 - sed -e '/bcrypt/ s/3.0.0/3.0/' \
192 - -i ../Gemfile || die
193 -
194 - # Add back json in the Gemfile because we dropped some dependencies
195 - # earlier that implicitly required it.
196 - sed -i -e '$agem "json"' ../Gemfile || die
197 -
198 - # Avoid test depending on mysql adapter which we don't support for
199 - # this Rails version to simplify our dependencies.
200 - rm test/cases/connection_specification/resolver_test.rb || die
201 -
202 - # Avoid single tests using mysql or postgres dependencies.
203 - rm test/cases/invalid_connection_test.rb || die
204 - sed -e '/test_switching_connections_with_database_url/askip "postgres"' \
205 - -i test/cases/connection_adapters/connection_handlers_multi_db_test.rb || die
206 -
207 - # Avoid failing test that makes bad assumptions on database state.
208 - sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \
209 - test/cases/associations/has_many_associations_test.rb
210 -
211 - # Avoid test failing to bind limit length in favor of security release
212 - sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die
213 -
214 - # Avoid test failing related to rubygems
215 - sed -i -e '/test_generates_absolute_path_with_given_root/askip "rubygems actiovation monitor"' test/cases/tasks/sqlite_rake_test.rb || die
216 -}
217 -
218 -each_ruby_test() {
219 - if use sqlite; then
220 - ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed"
221 - fi
222 -}
223
224 diff --git a/dev-ruby/activerecord/activerecord-6.1.2.1.ebuild b/dev-ruby/activerecord/activerecord-6.1.2.1.ebuild
225 deleted file mode 100644
226 index 3ae472c4221..00000000000
227 --- a/dev-ruby/activerecord/activerecord-6.1.2.1.ebuild
228 +++ /dev/null
229 @@ -1,83 +0,0 @@
230 -# Copyright 1999-2021 Gentoo Authors
231 -# Distributed under the terms of the GNU General Public License v2
232 -
233 -EAPI=7
234 -USE_RUBY="ruby25 ruby26 ruby27"
235 -
236 -# this is not null so that the dependencies will actually be filled
237 -RUBY_FAKEGEM_TASK_TEST="test"
238 -
239 -RUBY_FAKEGEM_RECIPE_DOC="none"
240 -RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
241 -
242 -RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec"
243 -
244 -RUBY_FAKEGEM_BINWRAP=""
245 -
246 -inherit ruby-fakegem
247 -
248 -DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM"
249 -HOMEPAGE="https://github.com/rails/rails/"
250 -SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
251 -
252 -LICENSE="MIT"
253 -SLOT="$(ver_cut 1-2)"
254 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
255 -IUSE="mysql postgres sqlite"
256 -
257 -RUBY_S="rails-${PV}/${PN}"
258 -
259 -ruby_add_rdepend "~dev-ruby/activesupport-${PV}
260 - ~dev-ruby/activemodel-${PV}
261 - sqlite? ( >=dev-ruby/sqlite3-1.4 )
262 - mysql? ( dev-ruby/mysql2:0.5 )
263 - postgres? ( dev-ruby/pg:1 )"
264 -
265 -ruby_add_bdepend "
266 - test? (
267 - dev-ruby/bundler
268 - ~dev-ruby/actionpack-${PV}
269 - >=dev-ruby/sqlite3-1.4.0
270 - dev-ruby/mocha
271 - dev-ruby/minitest:5
272 - )"
273 -
274 -DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )"
275 -
276 -all_ruby_prepare() {
277 - # Remove items from the common Gemfile that we don't need for this
278 - # test run. This also requires handling some gemspecs.
279 - rm ../Gemfile.lock || die
280 - sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|execjs\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\|minitest\|sprockets\|stackprof\)/ s:^:#:" \
281 - -e '/:job/,/end/ s:^:#:' \
282 - -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
283 - sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
284 - sed -e '/bcrypt/ s/3.0.0/3.0/' \
285 - -i ../Gemfile || die
286 - sed -i -e '/byebug/ s:^:#:' test/cases/base_prevent_writes_test.rb || die
287 -
288 - # Add back json in the Gemfile because we dropped some dependencies
289 - # earlier that implicitly required it.
290 - sed -i -e '$agem "json"' ../Gemfile || die
291 -
292 - # Avoid single tests using mysql or postgres dependencies.
293 - rm test/cases/invalid_connection_test.rb || die
294 - sed -e '/test_switching_connections_with_database_url/askip "postgres"' \
295 - -i test/cases/connection_adapters/{,legacy_}connection_handlers_multi_db_test.rb || die
296 -
297 - # Avoid failing test that makes bad assumptions on database state.
298 - sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \
299 - test/cases/associations/has_many_associations_test.rb
300 -
301 - # Avoid test failing to bind limit length in favor of security release
302 - sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die
303 -
304 - # Avoid test failing related to rubygems
305 - sed -i -e '/test_generates_absolute_path_with_given_root/askip "rubygems actiovation monitor"' test/cases/tasks/sqlite_rake_test.rb || die
306 -}
307 -
308 -each_ruby_test() {
309 - if use sqlite; then
310 - ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed"
311 - fi
312 -}
313
314 diff --git a/dev-ruby/activerecord/activerecord-6.1.3.1.ebuild b/dev-ruby/activerecord/activerecord-6.1.3.1.ebuild
315 deleted file mode 100644
316 index a1ef4420692..00000000000
317 --- a/dev-ruby/activerecord/activerecord-6.1.3.1.ebuild
318 +++ /dev/null
319 @@ -1,83 +0,0 @@
320 -# Copyright 1999-2021 Gentoo Authors
321 -# Distributed under the terms of the GNU General Public License v2
322 -
323 -EAPI=7
324 -USE_RUBY="ruby25 ruby26 ruby27"
325 -
326 -# this is not null so that the dependencies will actually be filled
327 -RUBY_FAKEGEM_TASK_TEST="test"
328 -
329 -RUBY_FAKEGEM_RECIPE_DOC="none"
330 -RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
331 -
332 -RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec"
333 -
334 -RUBY_FAKEGEM_BINWRAP=""
335 -
336 -inherit ruby-fakegem
337 -
338 -DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM"
339 -HOMEPAGE="https://github.com/rails/rails/"
340 -SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
341 -
342 -LICENSE="MIT"
343 -SLOT="$(ver_cut 1-2)"
344 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
345 -IUSE="mysql postgres sqlite"
346 -
347 -RUBY_S="rails-${PV}/${PN}"
348 -
349 -ruby_add_rdepend "~dev-ruby/activesupport-${PV}
350 - ~dev-ruby/activemodel-${PV}
351 - sqlite? ( >=dev-ruby/sqlite3-1.4 )
352 - mysql? ( dev-ruby/mysql2:0.5 )
353 - postgres? ( >=dev-ruby/pg-1.1:1 )"
354 -
355 -ruby_add_bdepend "
356 - test? (
357 - dev-ruby/bundler
358 - ~dev-ruby/actionpack-${PV}
359 - >=dev-ruby/sqlite3-1.4.0
360 - dev-ruby/mocha
361 - dev-ruby/minitest:5
362 - )"
363 -
364 -DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )"
365 -
366 -all_ruby_prepare() {
367 - # Remove items from the common Gemfile that we don't need for this
368 - # test run. This also requires handling some gemspecs.
369 - rm ../Gemfile.lock || die
370 - sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|execjs\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\|minitest\|sprockets\|stackprof\)/ s:^:#:" \
371 - -e '/:job/,/end/ s:^:#:' \
372 - -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
373 - sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
374 - sed -e '/bcrypt/ s/3.0.0/3.0/' \
375 - -i ../Gemfile || die
376 - sed -i -e '/byebug/ s:^:#:' test/cases/base_prevent_writes_test.rb || die
377 -
378 - # Add back json in the Gemfile because we dropped some dependencies
379 - # earlier that implicitly required it.
380 - sed -i -e '$agem "json"' ../Gemfile || die
381 -
382 - # Avoid single tests using mysql or postgres dependencies.
383 - rm test/cases/invalid_connection_test.rb || die
384 - sed -e '/test_switching_connections_with_database_url/askip "postgres"' \
385 - -i test/cases/connection_adapters/{,legacy_}connection_handlers_multi_db_test.rb || die
386 -
387 - # Avoid failing test that makes bad assumptions on database state.
388 - sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \
389 - test/cases/associations/has_many_associations_test.rb
390 -
391 - # Avoid test failing to bind limit length in favor of security release
392 - sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die
393 -
394 - # Avoid test failing related to rubygems
395 - sed -i -e '/test_generates_absolute_path_with_given_root/askip "rubygems actiovation monitor"' test/cases/tasks/sqlite_rake_test.rb || die
396 -}
397 -
398 -each_ruby_test() {
399 - if use sqlite; then
400 - ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed"
401 - fi
402 -}
403
404 diff --git a/dev-ruby/activerecord/activerecord-6.1.3.ebuild b/dev-ruby/activerecord/activerecord-6.1.3.ebuild
405 deleted file mode 100644
406 index a1ef4420692..00000000000
407 --- a/dev-ruby/activerecord/activerecord-6.1.3.ebuild
408 +++ /dev/null
409 @@ -1,83 +0,0 @@
410 -# Copyright 1999-2021 Gentoo Authors
411 -# Distributed under the terms of the GNU General Public License v2
412 -
413 -EAPI=7
414 -USE_RUBY="ruby25 ruby26 ruby27"
415 -
416 -# this is not null so that the dependencies will actually be filled
417 -RUBY_FAKEGEM_TASK_TEST="test"
418 -
419 -RUBY_FAKEGEM_RECIPE_DOC="none"
420 -RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
421 -
422 -RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec"
423 -
424 -RUBY_FAKEGEM_BINWRAP=""
425 -
426 -inherit ruby-fakegem
427 -
428 -DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM"
429 -HOMEPAGE="https://github.com/rails/rails/"
430 -SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
431 -
432 -LICENSE="MIT"
433 -SLOT="$(ver_cut 1-2)"
434 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
435 -IUSE="mysql postgres sqlite"
436 -
437 -RUBY_S="rails-${PV}/${PN}"
438 -
439 -ruby_add_rdepend "~dev-ruby/activesupport-${PV}
440 - ~dev-ruby/activemodel-${PV}
441 - sqlite? ( >=dev-ruby/sqlite3-1.4 )
442 - mysql? ( dev-ruby/mysql2:0.5 )
443 - postgres? ( >=dev-ruby/pg-1.1:1 )"
444 -
445 -ruby_add_bdepend "
446 - test? (
447 - dev-ruby/bundler
448 - ~dev-ruby/actionpack-${PV}
449 - >=dev-ruby/sqlite3-1.4.0
450 - dev-ruby/mocha
451 - dev-ruby/minitest:5
452 - )"
453 -
454 -DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )"
455 -
456 -all_ruby_prepare() {
457 - # Remove items from the common Gemfile that we don't need for this
458 - # test run. This also requires handling some gemspecs.
459 - rm ../Gemfile.lock || die
460 - sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|execjs\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\|minitest\|sprockets\|stackprof\)/ s:^:#:" \
461 - -e '/:job/,/end/ s:^:#:' \
462 - -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
463 - sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
464 - sed -e '/bcrypt/ s/3.0.0/3.0/' \
465 - -i ../Gemfile || die
466 - sed -i -e '/byebug/ s:^:#:' test/cases/base_prevent_writes_test.rb || die
467 -
468 - # Add back json in the Gemfile because we dropped some dependencies
469 - # earlier that implicitly required it.
470 - sed -i -e '$agem "json"' ../Gemfile || die
471 -
472 - # Avoid single tests using mysql or postgres dependencies.
473 - rm test/cases/invalid_connection_test.rb || die
474 - sed -e '/test_switching_connections_with_database_url/askip "postgres"' \
475 - -i test/cases/connection_adapters/{,legacy_}connection_handlers_multi_db_test.rb || die
476 -
477 - # Avoid failing test that makes bad assumptions on database state.
478 - sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \
479 - test/cases/associations/has_many_associations_test.rb
480 -
481 - # Avoid test failing to bind limit length in favor of security release
482 - sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die
483 -
484 - # Avoid test failing related to rubygems
485 - sed -i -e '/test_generates_absolute_path_with_given_root/askip "rubygems actiovation monitor"' test/cases/tasks/sqlite_rake_test.rb || die
486 -}
487 -
488 -each_ruby_test() {
489 - if use sqlite; then
490 - ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed"
491 - fi
492 -}