summaryrefslogtreecommitdiff
path: root/dev-ruby/activemodel
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/activemodel')
-rw-r--r--dev-ruby/activemodel/Manifest3
-rw-r--r--dev-ruby/activemodel/activemodel-6.1.7.4.ebuild47
-rw-r--r--dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch27
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-ruby/activemodel/Manifest b/dev-ruby/activemodel/Manifest
index adb22b28ec20..920fc18e44ac 100644
--- a/dev-ruby/activemodel/Manifest
+++ b/dev-ruby/activemodel/Manifest
@@ -1,12 +1,15 @@
+AUX activemodel-6.1.7.4-ruby32-keywords.patch 1368 BLAKE2B 8de8356b2175e0dcc00f55003eedc88b4568fba760d4d5b41104a6accb5b00daf76e44f5fec0be57240c3dd81ada4246dc6e85410b5b5143f3d8b1b33db1ab84 SHA512 470169e66ed224d97ff7edbd3409cc9ba6aa6a84fca439bf48de04a2f69a454d27fc0014f9f8fbe3c0874387ed8d9d613508579269317ffe95c1ffa799df6994
DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27
DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de
DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e
+DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f
DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16
DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7
DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448
EBUILD activemodel-6.0.6.1.ebuild 1007 BLAKE2B e17b5d71979a6314d6adc678209239af9a2564eb069ba1245abd68e9aaf25bd546e76ed9151ab6a878f829b3795e6fd109f4d9556ff33af7c7d28ccd8fe3c206 SHA512 0d1c10aceaf56ea06e23087ec4c9ef9b827fd2ab993e3b67129744d1895c5a8e2571e816eea77ecae39c43d9f28cd97aca31c335ef5cc18e960a6f2e34db0f5b
EBUILD activemodel-6.1.7.2.ebuild 1004 BLAKE2B 0e925d620f82a771da6752d2fb9097fe56df03fc9c8d625f602149ca4201dee116479c4213782bdb835fb933d326cbb91558c32ae699c830e240c12d1ab993a8 SHA512 c3b13dad0bf4b348ce5ba45eeb1b531cee146df0f4af37db4b73f35f9e874e88a453f8165378c452deb38ccc76321e6e7cdcd54e003596f75db3e517b35818bb
EBUILD activemodel-6.1.7.3.ebuild 1005 BLAKE2B 50f0c80c62e14af5eecabcfbefdc539d55a9988df8f34bbf582e4bf704f8a06e50f6df6fc7b55a2298b581248146da814e41868181d8d9ced5890e97a3ed2554 SHA512 f9c31189226b0f5a92dc180af339a9b480eb2d2244ea2f33398858b35cb0566ee344de2733b4ca00dad740f01291682afdfa513f89f9e1ed7060900e215ace16
+EBUILD activemodel-6.1.7.4.ebuild 1060 BLAKE2B 5d64acaec06fff80e6adb9c9e898387a5d11e4c5b0b706adcaaeaba88caf64bc13c476176823589f7414f35f78879c444fd9da5f1eb2a0b5dd947f153c737442 SHA512 fa9252fb318b32a9c5aee5ac826e76fc65239e2668e279b460c3c294ca63ee7ff421333789b25aeaa377973d954a816d85357c1f67ac6fee11ca364c0f938e21
EBUILD activemodel-7.0.4.3-r1.ebuild 1012 BLAKE2B ece3c1adddbac4e9d3815f68e65878865150623c1e1c08265edcb79988327a3f255f9d6b99886572518f9e6c28b7e5ff7ac7da04e1d6f5c9815b35a2a37edc8b SHA512 cb35509d2d1a590d96752263a4bd001453b7416c2f0f17618b5c42c97a47cb7d42d9d8f52834788ce805737478940eab5ecd618cd4845c846865cba863cd8cb4
EBUILD activemodel-7.0.4.3.ebuild 1005 BLAKE2B 50f0c80c62e14af5eecabcfbefdc539d55a9988df8f34bbf582e4bf704f8a06e50f6df6fc7b55a2298b581248146da814e41868181d8d9ced5890e97a3ed2554 SHA512 f9c31189226b0f5a92dc180af339a9b480eb2d2244ea2f33398858b35cb0566ee344de2733b4ca00dad740f01291682afdfa513f89f9e1ed7060900e215ace16
EBUILD activemodel-7.0.5.1.ebuild 1005 BLAKE2B 52c9e2c6e7f0f33abd14222fee10ec404d37cef23606046294d90c548dac8a782a5a438d977e6a3da152f1a44d555c2595e8e07f6f5e4f9381e3048ffc5f75f4 SHA512 8deaf541d23c08b66d96eac80b4bea2e87ff65c040b4eacf6e1d4e8d3958f40044d742c998000d8f192ccffaca7fa052f507a62454396dcd73a2a673bb90226e
diff --git a/dev-ruby/activemodel/activemodel-6.1.7.4.ebuild b/dev-ruby/activemodel/activemodel-6.1.7.4.ebuild
new file mode 100644
index 000000000000..128c0f8f1f18
--- /dev/null
+++ b/dev-ruby/activemodel/activemodel-6.1.7.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
+
+RUBY_FAKEGEM_GEMSPEC="activemodel.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="Toolkit for building modeling frameworks like Active Record and Active Resource"
+HOMEPAGE="https://github.com/rails/rails"
+SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE=""
+
+RUBY_S="rails-${PV}/${PN}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-ruby32-keywords.patch
+)
+
+ruby_add_rdepend "
+ ~dev-ruby/activesupport-${PV}:*
+"
+
+ruby_add_bdepend "
+ test? (
+ ~dev-ruby/railties-${PV}
+ dev-ruby/test-unit:2
+ dev-ruby/mocha
+ >=dev-ruby/bcrypt-ruby-3.1.7
+ <dev-ruby/minitest-5.16:*
+ )"
+
+all_ruby_prepare() {
+ # Set test environment to our hand.
+ sed -i -e '/load_paths/d' test/cases/helper.rb || die "Unable to remove load paths"
+}
diff --git a/dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch b/dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch
new file mode 100644
index 000000000000..a44820c51a1f
--- /dev/null
+++ b/dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch
@@ -0,0 +1,27 @@
+From 67bdba4e63cad218c02dbb3171ddd53353cc0b48 Mon Sep 17 00:00:00 2001
+From: Javier Jimenez <javiyu7@gmail.com>
+Date: Thu, 5 Jan 2023 21:34:37 +0100
+Subject: [PATCH] Backports ruby 3.2 compatibility fixes for rails 6.1
+
+---
+ actionmailer/lib/action_mailer/base.rb | 2 +-
+ actionmailer/lib/action_mailer/rescuable.rb | 12 ++++++++----
+ actionpack/lib/abstract_controller/base.rb | 10 +++++++---
+ actionpack/lib/abstract_controller/callbacks.rb | 6 +++++-
+ actionview/lib/action_view/rendering.rb | 6 +++++-
+ activemodel/lib/active_model/attribute_methods.rb | 2 +-
+ activerecord/lib/active_record/relation.rb | 8 ++++++--
+ 7 files changed, 33 insertions(+), 13 deletions(-)
+
+diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb
+index 365b338d17af3..0c401f7aeb4d9 100644
+--- a/lib/active_model/attribute_methods.rb
++++ b/lib/active_model/attribute_methods.rb
+@@ -478,6 +478,7 @@ def method_missing(method, *args, &block)
+ def attribute_missing(match, *args, &block)
+ __send__(match.target, match.attr_name, *args, &block)
+ end
++ ruby2_keywords(:attribute_missing) if respond_to?(:ruby2_keywords, true)
+
+ # A +Person+ instance with a +name+ attribute can ask
+ # <tt>person.respond_to?(:name)</tt>, <tt>person.respond_to?(:name=)</tt>,