attention 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/attention/publisher.rb +1 -1
- data/lib/attention/version.rb +1 -1
- 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: a8af4c7faf9eb54ba645edb877ff536a7fafa8bf
|
|
4
|
+
data.tar.gz: f86a41e076ea6fe24b75fb77f97c34f811c482ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85d5fd4a5226c7c07ee4ce21446a0e4b27a66dacd8b4a81f919f3b60130e13ea112fd925592d3be79b3a0cf9b54ea8ac20c5fd2814635b1e8ebe4a46abf672d1
|
|
7
|
+
data.tar.gz: b2df4bd64a4d23abed0c155f7c3bc6592b39e56be535bb1263f11fba10b84619e5f448b42a4b4df06f3aed2a4cc2d87b40661092eebf556e0e562a733fd06549
|
data/lib/attention/publisher.rb
CHANGED
|
@@ -8,8 +8,8 @@ module Attention
|
|
|
8
8
|
# @yieldparam redis [Redis] The Redis connection
|
|
9
9
|
def publish(channel, value)
|
|
10
10
|
redis = Attention.redis.call
|
|
11
|
-
redis.publish channel, payload_for(value)
|
|
12
11
|
yield redis if block_given?
|
|
12
|
+
redis.publish channel, payload_for(value)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
# Converts published values to JSON if possible
|
data/lib/attention/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: attention
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Parrish
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redis
|