hey-pubsub 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa72c6999f3e93ebfedc88e986232e19ed57f7e9
4
- data.tar.gz: 6aeb907f52f835c8fd1e0c3959a4277fed3ad9b3
3
+ metadata.gz: 8a90b87fcd2aed7a00fdc98397f01d78702c961c
4
+ data.tar.gz: 55757f9e22e779afc8da33e088eaa0bba4adb0af
5
5
  SHA512:
6
- metadata.gz: 645f44d835f54e2079d87dc25d334cc2c3a5f2f9a71e18ebbf01895ada548f16cc05a0f56c169b364818da5e3413cdd5322eec9cc8e64beaebaac00bf222001d
7
- data.tar.gz: d4153697dcc6d5ac658059bb174be33b4d938dd30c9aaf8a13492a87dc9860d875840be3e985cb45f32621df10ad24bf0d2ac0e263dbcaa8882281ece46a3802
6
+ metadata.gz: 463b59d8e71bf1c9dd7a7bdc04e342de0bae993e2b906693a6674969a35c2d6dca163052857d272856d3bc7dc08e5c637fa32dccd92c04c1e0a9efdd5ea8e5b8
7
+ data.tar.gz: 227b46d3ca1339b5714c7cb9172872d1050461b7f9cefac0e4ce11a3f4203cc4ca167164c5a1cef71cc7be72bb90a83d2536f30e388ba7702cfdec3053da2112
data/README.md CHANGED
@@ -13,7 +13,7 @@ some convenience utilities to:
13
13
  Add this line to your application's Gemfile:
14
14
 
15
15
  ```ruby
16
- gem 'hey-pubsub'
16
+ gem 'hey-pubsub', require: 'hey'
17
17
  ```
18
18
 
19
19
  And then execute:
@@ -26,8 +26,9 @@ class Hey::Pubsub::Payload
26
26
 
27
27
  def sanitize_value!(value)
28
28
  Hey::ThreadCargo.sanitizable_values.each do |sanitizable_value|
29
- value.gsub!(sanitizable_value, "")
29
+ value = value.gsub(sanitizable_value, "")
30
30
  end
31
+ value
31
32
  end
32
33
 
33
34
  def traverse_hash(h, &block)
data/lib/hey/pubsub.rb CHANGED
@@ -1,4 +1 @@
1
- module Hey
2
- module Pubsub
3
- end
4
- end
1
+ module Hey::Pubsub; end
data/lib/hey/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hey
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/hey.rb CHANGED
@@ -13,9 +13,9 @@ module Hey
13
13
  configuration.pubsub_adapter
14
14
  end
15
15
 
16
- def self.publish!(event_name, payload = {})
16
+ def self.publish!(event_name, payload = {}, &block)
17
17
  payload = Hey::Pubsub::Payload.new(payload)
18
- pubsub_adapter.publish!(event_name, payload.to_h)
18
+ pubsub_adapter.publish!(event_name, payload.to_h, &block)
19
19
  end
20
20
 
21
21
  def self.subscribe!(event_name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hey-pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShippingEasy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-17 00:00:00.000000000 Z
11
+ date: 2015-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler