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 +4 -4
- data/lib/rafka/producer.rb +2 -2
- 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: b010f769ef78d39b1749c830eee7fee2684d576f
|
4
|
+
data.tar.gz: 7f0abedd6f971268944ede4d5c5f747010b91978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 948fc1fd6968508bab177298d49f31c9059ac4ad8ac497c1140641508ae2c0f6468b861afc27188c0fe2e90c9d4af3dd009ed09848d552236811f6ab57e27db2
|
7
|
+
data.tar.gz: d7f940e306a3d75a42c5dda93ff627c1e73e93c6c90413db838c015b02acb294fdc9bdc30902ae1447852057518ad581cf102f6170c7d2d1370f62a9083aee4f
|
data/lib/rafka/producer.rb
CHANGED
@@ -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(
|
52
|
+
DEFAULTS.dup.merge(opts).merge(redis_opts)
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
data/lib/rafka/version.rb
CHANGED