[rubygem-activemodel] Add missing patch.

Vít Ondruch vondruch at fedoraproject.org
Mon Mar 4 10:58:20 UTC 2013


commit bc3ff0b8e3c71012b4a0cef07a7f9409396e2365
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Mar 4 11:58:15 2013 +0100

    Add missing patch.

 ...el-3.2.13-respond_to-with-private-methods.patch |   39 ++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/rubygem-activemodel-3.2.13-respond_to-with-private-methods.patch b/rubygem-activemodel-3.2.13-respond_to-with-private-methods.patch
new file mode 100644
index 0000000..a6527ae
--- /dev/null
+++ b/rubygem-activemodel-3.2.13-respond_to-with-private-methods.patch
@@ -0,0 +1,39 @@
+From 127411fdf3a3470e8830abf0c7876db67c0c344a Mon Sep 17 00:00:00 2001
+From: SHIBATA Hiroshi <shibata.hiroshi at gmail.com>
+Date: Mon, 3 Dec 2012 22:07:14 +0900
+Subject: [PATCH] handled respond_to? with private methods
+
+---
+ activemodel/lib/active_model/errors.rb      | 2 +-
+ activemodel/lib/active_model/validations.rb | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
+index 00bd685..7eaee05 100644
+--- a/activemodel/lib/active_model/errors.rb
++++ b/activemodel/lib/active_model/errors.rb
+@@ -84,7 +84,7 @@ module ActiveModel
+     end
+ 
+     # Backport dup from 1.9 so that #initialize_dup gets called
+-    unless Object.respond_to?(:initialize_dup)
++    unless Object.respond_to?(:initialize_dup, true)
+       def dup # :nodoc:
+         copy = super
+         copy.initialize_dup(self)
+diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb
+index 45d8677..c7e5089 100644
+--- a/activemodel/lib/active_model/validations.rb
++++ b/activemodel/lib/active_model/validations.rb
+@@ -173,7 +173,7 @@ module ActiveModel
+     end
+ 
+     # Backport dup from 1.9 so that #initialize_dup gets called
+-    unless Object.respond_to?(:initialize_dup)
++    unless Object.respond_to?(:initialize_dup, true)
+       def dup # :nodoc:
+         copy = super
+         copy.initialize_dup(self)
+-- 
+1.8.1.4
+


More information about the scm-commits mailing list