diff options
Diffstat (limited to 'dev-ruby/celluloid/files/celluloid-0.16.0-call-private-methods.patch')
-rw-r--r-- | dev-ruby/celluloid/files/celluloid-0.16.0-call-private-methods.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-ruby/celluloid/files/celluloid-0.16.0-call-private-methods.patch b/dev-ruby/celluloid/files/celluloid-0.16.0-call-private-methods.patch new file mode 100644 index 000000000000..f503a2334c84 --- /dev/null +++ b/dev-ruby/celluloid/files/celluloid-0.16.0-call-private-methods.patch @@ -0,0 +1,19 @@ +commit 092ce58aa8713f387ae3d0467b6d8029cf2765cd +Author: Jonathan <chapmajs@gmail.com> +Date: Sun Oct 19 22:05:26 2014 -0400 + + Allowing calls to private_methods + +diff --git a/lib/celluloid/proxies/abstract_proxy.rb b/lib/celluloid/proxies/abstract_proxy.rb +index 6a79acb..2db7a8e 100644 +--- a/lib/celluloid/proxies/abstract_proxy.rb ++++ b/lib/celluloid/proxies/abstract_proxy.rb +@@ -5,7 +5,7 @@ module Celluloid + def __class__; AbstractProxy; end + + # Needed for storing proxies in data structures +- needed = [:object_id, :__id__, :hash] - instance_methods ++ needed = [:object_id, :__id__, :hash, :private_methods] - instance_methods + if needed.any? + include ::Kernel.dup.module_eval { + undef_method(*(instance_methods - needed)) |