resugan 0.1.6 → 0.1.7

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: 6563e6a62f4d332a2eb91f9d4e4ede8c28b8574d
4
- data.tar.gz: 6c81185cae886ae517c9652f40f65b9816e80d8e
3
+ metadata.gz: 125a46c660b15e707e2e9c7ff8566b1f396748ae
4
+ data.tar.gz: 9902cfe5e810f491fed9580e48b539bf99c5048e
5
5
  SHA512:
6
- metadata.gz: 9da960aafb85dd7465c31808dfabba5ea2b97dc5464456ba2cadb4e5d536a45f06d78156fd6a7383b76a2120c4e895049e50e0a90b098945f996fd7e62cae348
7
- data.tar.gz: 447fed95ad9057653bb6e80d15043b2cb3a542a3a7aff6c433588b3586b78540b5fa3a6f480bf027c11726d8fe9a0c87387aadf547cc120ee95de0f1026160e6
6
+ metadata.gz: 058d79aec3ee6752265d00687f6bd4644ddb3f2c27f6016b764cbad4e8a84a1fbe7a5e4ef10c113c10c68d028118f2eb3eec395049a8731c7ceba5ebfccc6478
7
+ data.tar.gz: 2e9fd51c681d1bc04323037c6a41ea1fb8e76d0dac678adba2b0dbc4c89a01fbf18ccb5d9e28aeddf20b1492942964b3d0c804bf72765dd02e26166141d357f8
data/README.md CHANGED
@@ -42,6 +42,8 @@ resugan {
42
42
  _fire :event2
43
43
 
44
44
  _fire :hay
45
+
46
+ _fire :bam, { some_param: 'param' } # you can pass hashes to add meta to the event
45
47
  }
46
48
  ```
47
49
 
@@ -43,7 +43,7 @@ module Resugan
43
43
 
44
44
  def self.invoke(namespace, event, payload = [])
45
45
  event = "#{namespace}_#{event}".to_sym
46
- if @_listener[event]
46
+ if @_listener && @_listener[event]
47
47
  @_listener[event].each do |_listener|
48
48
  _listener.call(payload.map { |p| p[:params] })
49
49
  end
@@ -1,3 +1,3 @@
1
1
  module Resugan
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resugan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Emmanuel Dayo