From 3b8e58576bb4e5a24f44480f6d70f0abe71d3069 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Wed, 28 Jun 2023 18:14:40 +0000 Subject: Adding metadata --- .../activemodel-6.1.7.4-ruby32-keywords.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch (limited to 'dev-ruby/activemodel/files') 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 +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 + # person.respond_to?(:name), person.respond_to?(:name=), -- cgit v1.3