motion-kit-events 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13f62c76304cbae64f1916709ac22a1ce3555c8b
4
- data.tar.gz: 0b8af2a3e3749e6f0186f2d3aef818d785e9ce4a
3
+ metadata.gz: cea6c5a02c689de48690b53e918cf32663782aa2
4
+ data.tar.gz: e373a5c53070f8fda76a8216174d7f9d582e60a0
5
5
  SHA512:
6
- metadata.gz: 5dcc6e70e96079247e440665f2dd565a9789d75dc93adbb7569e21177d160ac577db7aaf4e9558a4964ddcf143865aebd1eb9fd7ac70a68bf2677a1e3a961f6f
7
- data.tar.gz: 4ef2b080304f6258bde9f764bec5a145d105870a1fbe3ea71c7a26962e271c8e72080f81d135d221418fc20816950cf8cadcf2f38ed72c6864e8d194105249dd
6
+ metadata.gz: 118f402015d3c99470d53ce4a906d7e84ec5edf3ef1ae653759093817c6c06e7066ad7cb2de4d9cbd574473abc3bb19a31aa55e9638204e943a1c978d43a227b
7
+ data.tar.gz: 6468967f686b944e005f7ecef612b21ff396adffb3a72b11d74800cc89f2b256d18cf0ae16fd0b7fe56283850df3d36a5139fcd8e055cc486364c130aa9eef6c
@@ -47,7 +47,11 @@ module MotionKit
47
47
  params = args[1..-1]
48
48
  params = params[0] if params.size == 1
49
49
  motion_kit_event_handlers[event].each do |handler|
50
- handler.call(params)
50
+ if handler.arity == 0
51
+ handler.call
52
+ else
53
+ handler.call(params)
54
+ end
51
55
  end
52
56
  end
53
57
 
@@ -1,5 +1,5 @@
1
1
  module MotionKit
2
2
  module Events
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-kit-events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin T.A. Gray
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-16 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-kit