method_decorator 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be0a9514d16986f1226824039aae623898876f14
4
- data.tar.gz: bfa76543251a5212967d7b524a4800b468857239
3
+ metadata.gz: 0fcdf1d4b59e01c87c59636931c71bfce8c6a41b
4
+ data.tar.gz: 93b5ebb80f54dcf5567d28176fae0cbba72c5e5a
5
5
  SHA512:
6
- metadata.gz: a0d4e40c492f07d3ded55ba928723c5568b17e6cc8498bcb962e7e69a96d135a95f8876e33a11f1ad461bc5ccfa1a145d3d897664cb2a847de4ce6baa817e64e
7
- data.tar.gz: ff8757256465330b96ae9c29bb7b079f3c86c02c5f1162cccee13f08d5d94a89c3bdd976b1dd11b77b892d0e4268b12164a56c0c49dd69b874a3944af1b35b24
6
+ metadata.gz: 669cebd955590a633211a8a45e394ad42d7c1f12fc439586de5dcd513160feb2d6beef2d669071d0d938c179380da0bb8f96904d39089642f4b9e5839a23bcc4
7
+ data.tar.gz: 452e1139c1991f8d4d443f39fa68376cfd2d0b686676e584a1694dbadf498011d73c59b84d382579a6530abc729a84197069951c067a68002970620b9b2731f6
@@ -4,6 +4,8 @@ module MethodDecorator extend ActiveSupport::Concern
4
4
 
5
5
  class << self
6
6
 
7
+ private
8
+
7
9
  def decorate_method(target, &block)
8
10
  original_method_name = original_method_name_for target
9
11
  complex_method_name = decorated_method_name_for target
@@ -23,8 +25,10 @@ module MethodDecorator extend ActiveSupport::Concern
23
25
 
24
26
  end
25
27
 
28
+ private
29
+
26
30
  def call_original_method(target, *args, &block)
27
- original_method_name = self.singleton_class.original_method_name_for target
31
+ original_method_name = self.singleton_class.send :original_method_name_for, target
28
32
  send original_method_name, *args, &block
29
33
  end
30
34
 
@@ -1,3 +1,3 @@
1
1
  module MethodDecorator
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: method_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - r4z3c