pubsubhub 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pubsubhub.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3593b95bdec65c16c1ffb96905f6ca3031d4cf4
4
- data.tar.gz: b5476d46c224486b036e4b89c7dd44077f34b4cc
3
+ metadata.gz: 76c1e8ce02087cc47915b03192cb52621982e970
4
+ data.tar.gz: 09b226f64dc21b691a3fab5f5c6c1ee9ed00f10a
5
5
  SHA512:
6
- metadata.gz: 8782b4ebddfd438745ab2dd5261b8365c4227fd9dad74ed7561dd8f1fc32ed1617a4fa79b1b59c6173e6ebcf3a61ed7f7d7d39f1d2c684bcd3c9279cdd819982
7
- data.tar.gz: 2cb5b9378f5341349642bd338927d5bec8fc45043fe07833b4339044834b9c87a74e7cdfc46ae8e9ba5ea6a500bc08fc85bf68351b6750e60950edf0667c3d9a
6
+ metadata.gz: 67ff2d59780c32516b9eba4c81ed9189ca97e4fd695b534664fdbc363aca1e17a140d3957a7bfe5e9c4fab8b2f8670eadcd6384244a374f6fc954001f60dc640
7
+ data.tar.gz: ac0e7bc41118f620729b45c425ab05a76979ac3afb52643e40bbcf2e8651205ef47fc464b7570a8ff2b58d3a84694928a28c3129edef25090e0271cd1f8064fc
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.1'
54
+ VERSION = '0.0.2'
55
55
 
56
56
  class << self
57
57
  extend Forwardable
@@ -95,7 +95,7 @@ class PubSubHub
95
95
  # end
96
96
  #
97
97
  def trigger(event_name, *args)
98
- @registry[event_name.to_sym].each do |registration|
98
+ @registry.fetch(event_name.to_sym, []).each do |registration|
99
99
  begin
100
100
  listener = registration[:listener]
101
101
  async = registration[:async]
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Causes Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-08 00:00:00.000000000 Z
11
+ date: 2014-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.0.2
98
+ rubygems_version: 2.0.14
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Simple event-based publish-subscribe library