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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b010f769ef78d39b1749c830eee7fee2684d576f
4
- data.tar.gz: 7f0abedd6f971268944ede4d5c5f747010b91978
3
+ metadata.gz: f961cb189ee48a2613c3265d690928fba04bb855
4
+ data.tar.gz: e8e59b4f25df06d35f0f19d90f3f719ee31e7134
5
5
  SHA512:
6
- metadata.gz: 948fc1fd6968508bab177298d49f31c9059ac4ad8ac497c1140641508ae2c0f6468b861afc27188c0fe2e90c9d4af3dd009ed09848d552236811f6ab57e27db2
7
- data.tar.gz: d7f940e306a3d75a42c5dda93ff627c1e73e93c6c90413db838c015b02acb294fdc9bdc30902ae1447852057518ad581cf102f6170c7d2d1370f62a9083aee4f
6
+ metadata.gz: be4b103e6a5436d48ace4734339e39939aecb0747a5572b8cbfde841a6eac28c9d5a0a853770037652cf937f017539124b71d3968e4235a3e583c00a3df93570
7
+ data.tar.gz: 241ece58c6d52ed8ec2a1979b9cedeb73945e498ca6c05fbb1695b64e6139b62c7059c611035b2add97c160c88cb8aa487c8d521c7861202530951b80412df87
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Rafka
2
- VERSION = "0.0.4".freeze
2
+ VERSION = "0.0.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agis Anastasopoulos