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 +4 -4
- data/README.md +1 -1
- data/lib/hey/pubsub/payload.rb +2 -1
- data/lib/hey/pubsub.rb +1 -4
- data/lib/hey/version.rb +1 -1
- data/lib/hey.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: 8a90b87fcd2aed7a00fdc98397f01d78702c961c
|
4
|
+
data.tar.gz: 55757f9e22e779afc8da33e088eaa0bba4adb0af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 463b59d8e71bf1c9dd7a7bdc04e342de0bae993e2b906693a6674969a35c2d6dca163052857d272856d3bc7dc08e5c637fa32dccd92c04c1e0a9efdd5ea8e5b8
|
7
|
+
data.tar.gz: 227b46d3ca1339b5714c7cb9172872d1050461b7f9cefac0e4ce11a3f4203cc4ca167164c5a1cef71cc7be72bb90a83d2536f30e388ba7702cfdec3053da2112
|
data/README.md
CHANGED
data/lib/hey/pubsub/payload.rb
CHANGED
@@ -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
|
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
data/lib/hey/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|