alakazam 0.1 → 0.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: 1652b38f86938a1de1195361d799813aaed014bb
4
- data.tar.gz: a7c3aa7a6c456820fa68a613b04cb3b0dc236c8e
3
+ metadata.gz: 436e1280e0c920d0918fc29f2451c4539e1ac459
4
+ data.tar.gz: b7750cfc3ad4054b3acc9b96bfae31d156dc08da
5
5
  SHA512:
6
- metadata.gz: 82ec4cd082b655986ee20e685f55c6e41e36b84bf1659084a113798b279dba0c6efc1d21333fa66b2d5ae97a878f735e6572dc1a5dcf938ea1ac44e80338c45c
7
- data.tar.gz: 17c4f35ea5299dddb41755828349eee3efca11356f08002cf72342be7ebd008893fb40bd287d492b0d84cc82cf1739b16be38a5b2f35490f84c9e650dc9389d1
6
+ metadata.gz: d85069fc95a598c8e36b70c59e325a8b55fe4f1284c049a881f298dedfde4ab805541838e82422aeb7b9241298ffeb60df0b616d346cef1e4d853c001b5a8da0
7
+ data.tar.gz: 2a47986e6d5b728d5d03c549198ca767bf9bfb0537cf58a0ac831d503edaa0e6486e67674ea9c3c4f7d9497a8d5d58282ee86900e29811c1faf5b2ce2fa3fc53
@@ -72,20 +72,20 @@ module Alakazam
72
72
  if options[:methods].any?
73
73
  options[:methods].each { |method|
74
74
  if observer.respond_to? method
75
- observer.send method, things
75
+ observer.send method, *things
76
76
  elsif observer.singleton_class.respond_to? method
77
- observer.singleton_class.send method, things
77
+ observer.singleton_class.send method, *things
78
78
  elsif observer.respond_to? :"#{method}="
79
- observer.send method, things
79
+ observer.send method, *things
80
80
  end
81
81
  }
82
82
  elsif observer.respond_to? :update
83
- observer.update things
83
+ observer.update *things
84
84
  elsif observer.is_a? Proc
85
- observer.call things
85
+ observer.call *things
86
86
  else
87
87
  options[:methods].each { |method|
88
- observer.send(method, things) if observer.respond_to? method
88
+ observer.send(method, *things) if observer.respond_to? method
89
89
  }
90
90
  end
91
91
  end
@@ -9,5 +9,5 @@
9
9
  #++
10
10
 
11
11
  module Alakazam
12
- VERSION = '0.1'
12
+ VERSION = '0.2'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alakazam
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano