rafka 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rafka/consumer.rb +8 -0
- data/lib/rafka/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f961cb189ee48a2613c3265d690928fba04bb855
|
4
|
+
data.tar.gz: e8e59b4f25df06d35f0f19d90f3f719ee31e7134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be4b103e6a5436d48ace4734339e39939aecb0747a5572b8cbfde841a6eac28c9d5a0a853770037652cf937f017539124b71d3968e4235a3e583c00a3df93570
|
7
|
+
data.tar.gz: 241ece58c6d52ed8ec2a1979b9cedeb73945e498ca6c05fbb1695b64e6139b62c7059c611035b2add97c160c88cb8aa487c8d521c7861202530951b80412df87
|
data/lib/rafka/consumer.rb
CHANGED
@@ -21,6 +21,14 @@ module Rafka
|
|
21
21
|
# underlying Redis client
|
22
22
|
def initialize(opts={})
|
23
23
|
@redis = Redis.new(parse_opts(opts))
|
24
|
+
|
25
|
+
# in 3.2.2 and later this is done automatically
|
26
|
+
#
|
27
|
+
# @see https://github.com/redis/redis-rb/issues/510
|
28
|
+
if Gem::Version.new(Redis::VERSION) < Gem::Version.new("3.2.2")
|
29
|
+
@redis.client.call([:client, :setname, @redis.id])
|
30
|
+
end
|
31
|
+
|
24
32
|
@topic = "topics:#{opts[:topic]}"
|
25
33
|
end
|
26
34
|
|
data/lib/rafka/version.rb
CHANGED