bottled_decorators 0.1.1 → 0.1.2

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: 4c019da002c705ddd9c4ef5a691ea5e35fa17a48
4
- data.tar.gz: dbde8e72d6a77da7109eed111dfc88b37c88ae26
3
+ metadata.gz: b4e17ed35b1111fdf12e048f406bc52accc9b51e
4
+ data.tar.gz: eca1fb78fbc4d862b1aab7f68e2db2e89c5928b7
5
5
  SHA512:
6
- metadata.gz: 809ec4f8815b3da64e92297abaacbc62c29960c8be997a5eec41af865b56692b00b96f6ce44dce96c0f72f65976afcf9d041dac21dd91ded54b28457c5e62a96
7
- data.tar.gz: 7d8e2d4b0b32a6ae089077c005f5aa01a8c62b31b90ee29f16f509f187c8f475dc3c89ac0a8c9bc95318defddbe1f06bc6c759532caeed363fec74a0a0ab8cb7
6
+ metadata.gz: 8422e8087ae943e7f14d01f26fc399e27273dd823e924c004871be3a6438a55242a92ff635b70fea9351f17daf287945c29c224bfd4928f59a1cf3b6ed0fca3e
7
+ data.tar.gz: 4d04c1ec019e6d7c21a600ea636715a5ee047081b7684aa6bc752524132960b9c40a654f955753b6c92325ba4d28ed826230ade921384af6eeb219cc9e36248c
@@ -12,10 +12,7 @@ module BottledDecorator
12
12
  end
13
13
 
14
14
  def method_missing(method, *args)
15
- send :define_singleton_method, method do
16
- return @component.send(method)
17
- end
18
- self.send(method)
15
+ return @component.send(method)
19
16
  rescue NoMethodError => e
20
17
  raise NoMethodError.new("Method #{method} was not found in the decorator, or the decorated objects", 'NoMethodError')
21
18
  end
@@ -1,3 +1,3 @@
1
1
  module BottledDecorators
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bottled_decorators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John_Hayes-Reed