1 |
commit: d1afcf8e637af8a0f661686926e014b6b5b84507 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 5 09:20:41 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 5 09:20:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1afcf8e |
7 |
|
8 |
dev-ruby/activerecord: remove vulnerable versions |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
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.3.ebuild | 83 ----------------------- |
15 |
dev-ruby/activerecord/activerecord-5.2.4.ebuild | 89 ------------------------- |
16 |
dev-ruby/activerecord/activerecord-6.0.0.ebuild | 84 ----------------------- |
17 |
dev-ruby/activerecord/activerecord-6.0.1.ebuild | 84 ----------------------- |
18 |
dev-ruby/activerecord/activerecord-6.0.2.ebuild | 84 ----------------------- |
19 |
6 files changed, 429 deletions(-) |
20 |
|
21 |
diff --git a/dev-ruby/activerecord/Manifest b/dev-ruby/activerecord/Manifest |
22 |
index 348dd3df36a..2306b26028e 100644 |
23 |
--- a/dev-ruby/activerecord/Manifest |
24 |
+++ b/dev-ruby/activerecord/Manifest |
25 |
@@ -1,8 +1,3 @@ |
26 |
DIST rails-4.2.11.1.tgz 4081006 BLAKE2B 7db84961963f529a9b6c06011bb6e32b56f4beb064de31c811a092d27e93156669ade4dcceb7d8abcdba4845d42258d904f8ecaf79198af1c0e2afcb33fe3fe3 SHA512 198fa072f3f09a9893377439ddd1803effdf04a33ae7b609234464e7de9ad960439d1b80ae62e1f9b223b3173839be7233c314a72057933b43672f390d96a8df |
27 |
-DIST rails-5.2.3.tgz 8802794 BLAKE2B 786f94bcd9528ffc664c39caef0e7d2d3c15da95497044504082999a435c2a877d73d40b68b5237dc07ae6cf9b8f6f99f12ae68527c5f4005b1a648038e507c0 SHA512 6a41f7564679263b4a16a245d13271b12e97a55cdd77b5ebe63bd86c3a80e4f447b4c0567a4a40ed8e97a2307522f6dad368b1beeb362136bdf1856f6dffeb60 |
28 |
DIST rails-5.2.4.1.tgz 8823310 BLAKE2B 33d863a66c0f5e0554c2beaf5fac235cfa3a5ba0c514aa30f53d9d036656d3710f7c486f3cd23e3b2986ee8621a11782a7a630f74131cce4c99a4ff7539e6b58 SHA512 5b59cd0ede76cedf1fdb50090c434c24fdcd30a2cf6ec4abc5437e62bb2aae410607e812d4e14acdd27b81a51365232f6e768156556ca67ae94b9e10d2eb7655 |
29 |
-DIST rails-5.2.4.tgz 8822605 BLAKE2B 541332dab5acd358ba3c3ad660b25cec77050b44fba00f46bb3a6e0846ebede36cf4dc7d13f9269ba14ce4174bb81a342f0407672dc6f9372b7cc0ddd0eb66bd SHA512 bee783a0c8e24441f0fbe011392774684fa1390df837c6f85a17975ae72b8c60bea90998f36742c413eecffe125b6a606b0d920855231f910e8073fe28d44a13 |
30 |
-DIST rails-6.0.0.tgz 18543484 BLAKE2B 614e71481a3a5ece629f49d0ef623b5352e165b5d46a736ccb747614d6c1fd56d4aaba2f2f32d48d81772cfd4db671d94a67cd3ffa395f29bf2de1f148fa57ed SHA512 3a2259fe2b3ffd0ddc9128e1aa58af57006b8410120a3629926b95fbe60b8658edab77929e26d9323c61a1855a4379e73f1ddbe875324b068a9e8bdde6ca55e6 |
31 |
-DIST rails-6.0.1.tgz 18551750 BLAKE2B 03349639ae114b82573e5e4063600b07b24274a0f5a81021bf347c650214e0f59fbb1676b9ad580de5a2d6e4dc85cc2702511c32d11a088ef663f26d8d55041e SHA512 ad6667a958663a8d260896c6b7fd589b657383f0d4f217c9bc0e993d6eac67c32fa41d54a9edf9b1f4e01ae78826f49a862b0069d59b3c1de2b950522b3ecf10 |
32 |
DIST rails-6.0.2.1.tgz 18556085 BLAKE2B 178e2d5319fa71ba9f3f7d7a00c207ed9c8d87973487a253c5f819132743f8cdf1428b1668c6e176c91d45986a2201e52f9016efe5ca28ab93301135e5392dd5 SHA512 b33e82ba9e898f7c467df26b7196c69564bcdd24a4732ae6912d06dd361044e769d87fc3e8872533c97fc8d034cab2fad33082925f98cf2096fb1dd4ff6789d7 |
33 |
-DIST rails-6.0.2.tgz 18555652 BLAKE2B 27b775a8e9285d9d8501fd2115b5a4a68ef0df1afe0f237c32158fc3c4fa950916b725ececda2e9cabd199a2cef4f7c0421b4fdd27e5b28952f738ab99d48097 SHA512 f394d272771ae8eeba2878c7d8eace93a7eefae95f12b34704939f3f91201633da8cb8721999eec0c9729dd72841ef026fbdb7d814d5a0f31cd1f0fd6310a872 |
34 |
|
35 |
diff --git a/dev-ruby/activerecord/activerecord-5.2.3.ebuild b/dev-ruby/activerecord/activerecord-5.2.3.ebuild |
36 |
deleted file mode 100644 |
37 |
index 033190770d8..00000000000 |
38 |
--- a/dev-ruby/activerecord/activerecord-5.2.3.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,83 +0,0 @@ |
41 |
-# Copyright 1999-2019 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=6 |
45 |
-USE_RUBY="ruby23 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 dev-ruby/mysql2:0.4 ) ) |
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"' ../Gemfile || die |
103 |
- |
104 |
- # Avoid test depending on mysql adapter which we don't support for |
105 |
- # this Rails version to simplify our dependencies. |
106 |
- rm test/cases/connection_specification/resolver_test.rb || die |
107 |
- |
108 |
- # Avoid single test using mysql dependencies. |
109 |
- rm test/cases/invalid_connection_test.rb || die |
110 |
- |
111 |
- # Avoid failing test that makes bad assumptions on database state. |
112 |
- sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \ |
113 |
- test/cases/associations/has_many_associations_test.rb |
114 |
- |
115 |
- # Avoid test failing to bind limit length in favor of security release |
116 |
- sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die |
117 |
-} |
118 |
- |
119 |
-each_ruby_test() { |
120 |
- if use sqlite; then |
121 |
- ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed" |
122 |
- fi |
123 |
-} |
124 |
|
125 |
diff --git a/dev-ruby/activerecord/activerecord-5.2.4.ebuild b/dev-ruby/activerecord/activerecord-5.2.4.ebuild |
126 |
deleted file mode 100644 |
127 |
index 959c3c03073..00000000000 |
128 |
--- a/dev-ruby/activerecord/activerecord-5.2.4.ebuild |
129 |
+++ /dev/null |
130 |
@@ -1,89 +0,0 @@ |
131 |
-# Copyright 1999-2019 Gentoo Authors |
132 |
-# Distributed under the terms of the GNU General Public License v2 |
133 |
- |
134 |
-EAPI=6 |
135 |
-USE_RUBY="ruby24 ruby25 ruby26" |
136 |
- |
137 |
-# this is not null so that the dependencies will actually be filled |
138 |
-RUBY_FAKEGEM_TASK_TEST="test" |
139 |
- |
140 |
-RUBY_FAKEGEM_TASK_DOC="" |
141 |
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" |
142 |
- |
143 |
-RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec" |
144 |
- |
145 |
-RUBY_FAKEGEM_BINWRAP="" |
146 |
- |
147 |
-inherit ruby-fakegem eapi7-ver |
148 |
- |
149 |
-DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM" |
150 |
-HOMEPAGE="https://github.com/rails/rails/" |
151 |
-SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz" |
152 |
- |
153 |
-LICENSE="MIT" |
154 |
-SLOT="$(ver_cut 1-2)" |
155 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux" |
156 |
-IUSE="mysql postgres sqlite" |
157 |
- |
158 |
-RUBY_S="rails-${PV}/${PN}" |
159 |
- |
160 |
-ruby_add_rdepend "~dev-ruby/activesupport-${PV} |
161 |
- ~dev-ruby/activemodel-${PV} |
162 |
- dev-ruby/arel:9.0 |
163 |
- sqlite? ( >=dev-ruby/sqlite3-1.3.6 ) |
164 |
- mysql? ( || ( dev-ruby/mysql2:0.5 dev-ruby/mysql2:0.4 ) ) |
165 |
- postgres? ( >=dev-ruby/pg-0.18.0:* )" |
166 |
- |
167 |
-ruby_add_bdepend " |
168 |
- test? ( |
169 |
- dev-ruby/bundler |
170 |
- ~dev-ruby/actionpack-${PV} |
171 |
- ~dev-ruby/actionmailer-${PV} |
172 |
- >=dev-ruby/sqlite3-1.3.6 |
173 |
- dev-ruby/mocha |
174 |
- dev-ruby/minitest:5 |
175 |
- )" |
176 |
- |
177 |
-DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )" |
178 |
- |
179 |
-all_ruby_prepare() { |
180 |
- # Remove items from the common Gemfile that we don't need for this |
181 |
- # test run. This also requires handling some gemspecs. |
182 |
- rm ../Gemfile.lock || die |
183 |
- 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:^:#:" \ |
184 |
- -e '/:job/,/end/ s:^:#:' \ |
185 |
- -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die |
186 |
- sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die |
187 |
- sed -e '/bcrypt/ s/3.0.0/3.0/' \ |
188 |
- -i ../Gemfile || die |
189 |
- |
190 |
- # Add back json in the Gemfile because we dropped some dependencies |
191 |
- # earlier that implicitly required it. |
192 |
- sed -i -e '$agem "json"' \ |
193 |
- ../Gemfile || die |
194 |
- |
195 |
- sed -e '3i gem "activesupport", "~> 5.2.0"' \ |
196 |
- -e '3i gem "activerecord", "~> 5.2.0"' \ |
197 |
- -e '3i gem "activemodel", "~> 5.2.0"' \ |
198 |
- -i test/cases/helper.rb || die |
199 |
- |
200 |
- # Avoid test depending on mysql adapter which we don't support for |
201 |
- # this Rails version to simplify our dependencies. |
202 |
- rm test/cases/connection_specification/resolver_test.rb || die |
203 |
- |
204 |
- # Avoid single test using mysql dependencies. |
205 |
- rm test/cases/invalid_connection_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 |
- |
215 |
-each_ruby_test() { |
216 |
- if use sqlite; then |
217 |
- MT_NO_PLUGINS=true ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed" |
218 |
- fi |
219 |
-} |
220 |
|
221 |
diff --git a/dev-ruby/activerecord/activerecord-6.0.0.ebuild b/dev-ruby/activerecord/activerecord-6.0.0.ebuild |
222 |
deleted file mode 100644 |
223 |
index f20b5f1cb91..00000000000 |
224 |
--- a/dev-ruby/activerecord/activerecord-6.0.0.ebuild |
225 |
+++ /dev/null |
226 |
@@ -1,84 +0,0 @@ |
227 |
-# Copyright 1999-2019 Gentoo Authors |
228 |
-# Distributed under the terms of the GNU General Public License v2 |
229 |
- |
230 |
-EAPI=7 |
231 |
-USE_RUBY="ruby25 ruby26" |
232 |
- |
233 |
-# this is not null so that the dependencies will actually be filled |
234 |
-RUBY_FAKEGEM_TASK_TEST="test" |
235 |
- |
236 |
-RUBY_FAKEGEM_RECIPE_DOC="none" |
237 |
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" |
238 |
- |
239 |
-RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec" |
240 |
- |
241 |
-RUBY_FAKEGEM_BINWRAP="" |
242 |
- |
243 |
-inherit ruby-fakegem |
244 |
- |
245 |
-DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM" |
246 |
-HOMEPAGE="https://github.com/rails/rails/" |
247 |
-SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz" |
248 |
- |
249 |
-LICENSE="MIT" |
250 |
-SLOT="$(ver_cut 1-2)" |
251 |
-KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
252 |
-IUSE="mysql postgres sqlite" |
253 |
- |
254 |
-RUBY_S="rails-${PV}/${PN}" |
255 |
- |
256 |
-ruby_add_rdepend "~dev-ruby/activesupport-${PV} |
257 |
- ~dev-ruby/activemodel-${PV} |
258 |
- dev-ruby/arel:9.0 |
259 |
- sqlite? ( >=dev-ruby/sqlite3-1.4 ) |
260 |
- mysql? ( || ( dev-ruby/mysql2:0.5 >=dev-ruby/mysql2-0.4.4:0.4 ) ) |
261 |
- postgres? ( || ( dev-ruby/pg:1 >=dev-ruby/pg-0.18.0:0 ) )" |
262 |
- |
263 |
-ruby_add_bdepend " |
264 |
- test? ( |
265 |
- dev-ruby/bundler |
266 |
- ~dev-ruby/actionpack-${PV} |
267 |
- >=dev-ruby/sqlite3-1.3.6 |
268 |
- dev-ruby/mocha |
269 |
- dev-ruby/minitest:5 |
270 |
- )" |
271 |
- |
272 |
-DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )" |
273 |
- |
274 |
-all_ruby_prepare() { |
275 |
- # Remove items from the common Gemfile that we don't need for this |
276 |
- # test run. This also requires handling some gemspecs. |
277 |
- rm ../Gemfile.lock || die |
278 |
- 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:^:#:" \ |
279 |
- -e '/:job/,/end/ s:^:#:' \ |
280 |
- -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die |
281 |
- sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die |
282 |
- sed -e '/bcrypt/ s/3.0.0/3.0/' \ |
283 |
- -i ../Gemfile || die |
284 |
- |
285 |
- # Add back json in the Gemfile because we dropped some dependencies |
286 |
- # earlier that implicitly required it. |
287 |
- sed -i -e '$agem "json"' ../Gemfile || die |
288 |
- |
289 |
- # Avoid test depending on mysql adapter which we don't support for |
290 |
- # this Rails version to simplify our dependencies. |
291 |
- rm test/cases/connection_specification/resolver_test.rb || die |
292 |
- |
293 |
- # Avoid single tests using mysql or postgres dependencies. |
294 |
- rm test/cases/invalid_connection_test.rb || die |
295 |
- sed -e '/test_switching_connections_with_database_url/askip "postgres"' \ |
296 |
- -i test/cases/connection_adapters/connection_handlers_multi_db_test.rb || die |
297 |
- |
298 |
- # Avoid failing test that makes bad assumptions on database state. |
299 |
- sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \ |
300 |
- test/cases/associations/has_many_associations_test.rb |
301 |
- |
302 |
- # Avoid test failing to bind limit length in favor of security release |
303 |
- sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die |
304 |
-} |
305 |
- |
306 |
-each_ruby_test() { |
307 |
- if use sqlite; then |
308 |
- ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed" |
309 |
- fi |
310 |
-} |
311 |
|
312 |
diff --git a/dev-ruby/activerecord/activerecord-6.0.1.ebuild b/dev-ruby/activerecord/activerecord-6.0.1.ebuild |
313 |
deleted file mode 100644 |
314 |
index f20b5f1cb91..00000000000 |
315 |
--- a/dev-ruby/activerecord/activerecord-6.0.1.ebuild |
316 |
+++ /dev/null |
317 |
@@ -1,84 +0,0 @@ |
318 |
-# Copyright 1999-2019 Gentoo Authors |
319 |
-# Distributed under the terms of the GNU General Public License v2 |
320 |
- |
321 |
-EAPI=7 |
322 |
-USE_RUBY="ruby25 ruby26" |
323 |
- |
324 |
-# this is not null so that the dependencies will actually be filled |
325 |
-RUBY_FAKEGEM_TASK_TEST="test" |
326 |
- |
327 |
-RUBY_FAKEGEM_RECIPE_DOC="none" |
328 |
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" |
329 |
- |
330 |
-RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec" |
331 |
- |
332 |
-RUBY_FAKEGEM_BINWRAP="" |
333 |
- |
334 |
-inherit ruby-fakegem |
335 |
- |
336 |
-DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM" |
337 |
-HOMEPAGE="https://github.com/rails/rails/" |
338 |
-SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz" |
339 |
- |
340 |
-LICENSE="MIT" |
341 |
-SLOT="$(ver_cut 1-2)" |
342 |
-KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
343 |
-IUSE="mysql postgres sqlite" |
344 |
- |
345 |
-RUBY_S="rails-${PV}/${PN}" |
346 |
- |
347 |
-ruby_add_rdepend "~dev-ruby/activesupport-${PV} |
348 |
- ~dev-ruby/activemodel-${PV} |
349 |
- dev-ruby/arel:9.0 |
350 |
- sqlite? ( >=dev-ruby/sqlite3-1.4 ) |
351 |
- mysql? ( || ( dev-ruby/mysql2:0.5 >=dev-ruby/mysql2-0.4.4:0.4 ) ) |
352 |
- postgres? ( || ( dev-ruby/pg:1 >=dev-ruby/pg-0.18.0:0 ) )" |
353 |
- |
354 |
-ruby_add_bdepend " |
355 |
- test? ( |
356 |
- dev-ruby/bundler |
357 |
- ~dev-ruby/actionpack-${PV} |
358 |
- >=dev-ruby/sqlite3-1.3.6 |
359 |
- dev-ruby/mocha |
360 |
- dev-ruby/minitest:5 |
361 |
- )" |
362 |
- |
363 |
-DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )" |
364 |
- |
365 |
-all_ruby_prepare() { |
366 |
- # Remove items from the common Gemfile that we don't need for this |
367 |
- # test run. This also requires handling some gemspecs. |
368 |
- rm ../Gemfile.lock || die |
369 |
- 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:^:#:" \ |
370 |
- -e '/:job/,/end/ s:^:#:' \ |
371 |
- -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die |
372 |
- sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die |
373 |
- sed -e '/bcrypt/ s/3.0.0/3.0/' \ |
374 |
- -i ../Gemfile || die |
375 |
- |
376 |
- # Add back json in the Gemfile because we dropped some dependencies |
377 |
- # earlier that implicitly required it. |
378 |
- sed -i -e '$agem "json"' ../Gemfile || die |
379 |
- |
380 |
- # Avoid test depending on mysql adapter which we don't support for |
381 |
- # this Rails version to simplify our dependencies. |
382 |
- rm test/cases/connection_specification/resolver_test.rb || die |
383 |
- |
384 |
- # Avoid single tests using mysql or postgres dependencies. |
385 |
- rm test/cases/invalid_connection_test.rb || die |
386 |
- sed -e '/test_switching_connections_with_database_url/askip "postgres"' \ |
387 |
- -i test/cases/connection_adapters/connection_handlers_multi_db_test.rb || die |
388 |
- |
389 |
- # Avoid failing test that makes bad assumptions on database state. |
390 |
- sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \ |
391 |
- test/cases/associations/has_many_associations_test.rb |
392 |
- |
393 |
- # Avoid test failing to bind limit length in favor of security release |
394 |
- sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die |
395 |
-} |
396 |
- |
397 |
-each_ruby_test() { |
398 |
- if use sqlite; then |
399 |
- ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed" |
400 |
- fi |
401 |
-} |
402 |
|
403 |
diff --git a/dev-ruby/activerecord/activerecord-6.0.2.ebuild b/dev-ruby/activerecord/activerecord-6.0.2.ebuild |
404 |
deleted file mode 100644 |
405 |
index f20b5f1cb91..00000000000 |
406 |
--- a/dev-ruby/activerecord/activerecord-6.0.2.ebuild |
407 |
+++ /dev/null |
408 |
@@ -1,84 +0,0 @@ |
409 |
-# Copyright 1999-2019 Gentoo Authors |
410 |
-# Distributed under the terms of the GNU General Public License v2 |
411 |
- |
412 |
-EAPI=7 |
413 |
-USE_RUBY="ruby25 ruby26" |
414 |
- |
415 |
-# this is not null so that the dependencies will actually be filled |
416 |
-RUBY_FAKEGEM_TASK_TEST="test" |
417 |
- |
418 |
-RUBY_FAKEGEM_RECIPE_DOC="none" |
419 |
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" |
420 |
- |
421 |
-RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec" |
422 |
- |
423 |
-RUBY_FAKEGEM_BINWRAP="" |
424 |
- |
425 |
-inherit ruby-fakegem |
426 |
- |
427 |
-DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM" |
428 |
-HOMEPAGE="https://github.com/rails/rails/" |
429 |
-SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz" |
430 |
- |
431 |
-LICENSE="MIT" |
432 |
-SLOT="$(ver_cut 1-2)" |
433 |
-KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
434 |
-IUSE="mysql postgres sqlite" |
435 |
- |
436 |
-RUBY_S="rails-${PV}/${PN}" |
437 |
- |
438 |
-ruby_add_rdepend "~dev-ruby/activesupport-${PV} |
439 |
- ~dev-ruby/activemodel-${PV} |
440 |
- dev-ruby/arel:9.0 |
441 |
- sqlite? ( >=dev-ruby/sqlite3-1.4 ) |
442 |
- mysql? ( || ( dev-ruby/mysql2:0.5 >=dev-ruby/mysql2-0.4.4:0.4 ) ) |
443 |
- postgres? ( || ( dev-ruby/pg:1 >=dev-ruby/pg-0.18.0:0 ) )" |
444 |
- |
445 |
-ruby_add_bdepend " |
446 |
- test? ( |
447 |
- dev-ruby/bundler |
448 |
- ~dev-ruby/actionpack-${PV} |
449 |
- >=dev-ruby/sqlite3-1.3.6 |
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 |
- |
467 |
- # Add back json in the Gemfile because we dropped some dependencies |
468 |
- # earlier that implicitly required it. |
469 |
- sed -i -e '$agem "json"' ../Gemfile || die |
470 |
- |
471 |
- # Avoid test depending on mysql adapter which we don't support for |
472 |
- # this Rails version to simplify our dependencies. |
473 |
- rm test/cases/connection_specification/resolver_test.rb || die |
474 |
- |
475 |
- # Avoid single tests using mysql or postgres dependencies. |
476 |
- rm test/cases/invalid_connection_test.rb || die |
477 |
- sed -e '/test_switching_connections_with_database_url/askip "postgres"' \ |
478 |
- -i test/cases/connection_adapters/connection_handlers_multi_db_test.rb || die |
479 |
- |
480 |
- # Avoid failing test that makes bad assumptions on database state. |
481 |
- sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \ |
482 |
- test/cases/associations/has_many_associations_test.rb |
483 |
- |
484 |
- # Avoid test failing to bind limit length in favor of security release |
485 |
- sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_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 |
-} |