rafka 0.0.3 → 0.0.4

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: 99ead695e270579988fd23cf24916e200cd2b1ef
4
- data.tar.gz: 81c104c0bb873885639a859769524376e9d8227f
3
+ metadata.gz: b010f769ef78d39b1749c830eee7fee2684d576f
4
+ data.tar.gz: 7f0abedd6f971268944ede4d5c5f747010b91978
5
5
  SHA512:
6
- metadata.gz: d51fc45275b94bd15380da3ac7206cf5712be5721503ff7a2057f193f26ad0c3ab7ccd795ffa48933b204cc51c8359f7cb50dd2084e70a8332c70c9f93fb5042
7
- data.tar.gz: 640b09f1ec736eb9388370452181a7d32567673d4ce668684a3ea9a0f3b4d883284cd54e864910f3aeb572af1d35af187058c522219a931ffa4f2cf475442b33
6
+ metadata.gz: 948fc1fd6968508bab177298d49f31c9059ac4ad8ac497c1140641508ae2c0f6468b861afc27188c0fe2e90c9d4af3dd009ed09848d552236811f6ab57e27db2
7
+ data.tar.gz: d7f940e306a3d75a42c5dda93ff627c1e73e93c6c90413db838c015b02acb294fdc9bdc30902ae1447852057518ad581cf102f6170c7d2d1370f62a9083aee4f
@@ -14,7 +14,7 @@ module Rafka
14
14
  # Redis client
15
15
  #
16
16
  # @return [Producer]
17
- def initialize(opts = {})
17
+ def initialize(opts={})
18
18
  @redis = Redis.new(parse_opts(opts))
19
19
  end
20
20
 
@@ -49,7 +49,7 @@ module Rafka
49
49
  def parse_opts(opts)
50
50
  rafka_opts = opts.reject { |k| k == :redis }
51
51
  redis_opts = opts[:redis] || {}
52
- DEFAULTS.dup.merge(opts).merge(opts[:redis])
52
+ DEFAULTS.dup.merge(opts).merge(redis_opts)
53
53
  end
54
54
  end
55
55
  end
data/lib/rafka/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rafka
2
- VERSION = "0.0.3".freeze
2
+ VERSION = "0.0.4".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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agis Anastasopoulos