motion-kit-events 0.2.1 → 0.2.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: 228f808aafa79e6396ab259827264e2c7266218c
4
- data.tar.gz: 4ec68b8f70e53c1554a912865136b9931693611f
3
+ metadata.gz: 7d272150b20b160dfe25edeab5f893ef678a1a2a
4
+ data.tar.gz: 6d61019bd8534848a4eca225027ef697532678f8
5
5
  SHA512:
6
- metadata.gz: abe15012b9497f4331f2f57161dfd2c0fecf2f094d52fab2bfaaf42030fd70df83c07e95547b48252e5d5befb01602a505a1e948674fbb493fe8a64113a49fa7
7
- data.tar.gz: e1d9801828b3880650fae762a9f1ba6fabb0b414bca2e38ab2e48946136a0419cf447d85af3ad487407a5e9151d56e1b5ee73040a30b51bac69c2f493a4359e1
6
+ metadata.gz: b878d15fec70347b73b7590945db80ee9ba8a538f1c086dfcefee0aeafe6430241e005400779d06dce3671fb5509f72ac7205a60505723267f0146ceeb0a9bf6
7
+ data.tar.gz: c5880fa77766864905f33fcaf890bdbbd5e91041432576581ea115a3a49e98b2052ab93395b92df416df4ab10269ba2f9f65839a7a882dd73d49766d0ed094ca
data/README.md CHANGED
@@ -110,7 +110,7 @@ end
110
110
  The sample app (most of the code is in [app/ios/login/][login]) includes a working
111
111
  version of this example.
112
112
 
113
- [login]: https://github.com/rubymotion/motion-kit-events/tree/master/app/ios/login/
113
+ [login]: https://github.com/motion-kit/motion-kit-events/tree/master/app/ios/login/
114
114
 
115
115
  ###### Note
116
116
 
@@ -31,8 +31,10 @@ module MotionKit
31
31
  end
32
32
 
33
33
  if motion_kit_event_handlers[event]
34
+ params = args[1..-1]
35
+ params = params[0] if params.size == 1
34
36
  motion_kit_event_handlers[event].each do |handler|
35
- handler.call(args[1..-1])
37
+ handler.call(params)
36
38
  end
37
39
  end
38
40
 
@@ -1,5 +1,5 @@
1
1
  module MotionKit
2
2
  module Events
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
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.2.1
4
+ version: 0.2.2
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-05-18 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-kit
@@ -57,7 +57,7 @@ files:
57
57
  - README.md
58
58
  - spec/ios/events_spec.rb
59
59
  - spec/osx/events_spec.rb
60
- homepage: https://github.com/rubymotion/motion-kit-events
60
+ homepage: https://github.com/motion-kit/motion-kit-events
61
61
  licenses:
62
62
  - BSD
63
63
  metadata: {}