pubsubhub 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pubsubhub.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5dd7d4bb33d83f6db7f92c3d090607fab3c874e
|
4
|
+
data.tar.gz: 3186c913454f0f2b03cc6c79efa74a9245e454f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21a39aff592b86d5d898333ec15493ae943f4d865e214886d35b461a531acdb1fa61e22360c9b04241fd278e12dd6f59bfb7a7fe422c799acf410ec290679ec5
|
7
|
+
data.tar.gz: 244a6ffa0635f749dc62426d6dd3af31b9b73f23c486b8fefbc53bb457cf41d148b6462fb3eee886d80cb51e05499e039defd5bcba4036d2a7b34d9a0c5f137d
|
data/lib/pubsubhub.rb
CHANGED
@@ -51,7 +51,7 @@ require 'singleton'
|
|
51
51
|
class PubSubHub
|
52
52
|
include Singleton
|
53
53
|
|
54
|
-
VERSION = '0.0.
|
54
|
+
VERSION = '0.0.3'
|
55
55
|
|
56
56
|
class << self
|
57
57
|
extend Forwardable
|
@@ -97,7 +97,7 @@ class PubSubHub
|
|
97
97
|
def trigger(event_name, *args)
|
98
98
|
@registry.fetch(event_name.to_sym, []).each do |registration|
|
99
99
|
begin
|
100
|
-
listener = registration[:listener]
|
100
|
+
listener = Object.const_get(registration[:listener])
|
101
101
|
async = registration[:async]
|
102
102
|
handler = :"handle_#{event_name}"
|
103
103
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pubsubhub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Causes Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|