redis-sentinel-url 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 597faed5b262419e716b6f700b712ec5d67621607733c1956701c3a4a99215b5
4
- data.tar.gz: cd8c90e51356a06de9a4214040195df552d13c294097e96037b8b78901f10b83
3
+ metadata.gz: 33d3a87af660ff8b8ca8019cc09769a159771d59934cbc3b527dea8860226fab
4
+ data.tar.gz: 5a570339003bd8c548d25dcca6ad04787cc9bd20ad9266253683ccdc5f5d7eeb
5
5
  SHA512:
6
- metadata.gz: 578e543656da5d461a44d9f9f49b910574a8b5b72d2f613942e05ca307beb9ac9a5dd3900d64977f8b480ec2ab4757dc641ddec6f3398e1af27808d8ac7032c9
7
- data.tar.gz: ca7c9deb2c48ec97e448fb808a5f0f84cab83c09c91bf6f55768c1aa347f54695fabb894794d19cf5b6f5526f9ee767a46a38de5dc0c544624a5b37787b9a262
6
+ metadata.gz: 9dab05fc324512c1583b7a58d28dd2b8eaa95c3b78b9dba0da99dff676a47571032b4ab0bacb8c6d23ecc9e68f90e6a22279a797b9d2678199c2c36d533d8669
7
+ data.tar.gz: 24fdd4a9851bad8bcc69266f5bb161abbf5dbf85ef24c686b6e839635aef860e7f4b53a71f076388f802aa0edcb61c79f62291bcb9d5bb6ce6b39e32761992e5
@@ -48,12 +48,9 @@ class Redis
48
48
 
49
49
  module SentinelURLParser
50
50
  def initialize(options = {})
51
- return super unless options[:url]
51
+ url = options[:url] || ::Redis::Client::DEFAULTS[:url]
52
+ url = url.call if url.respond_to?(:call)
52
53
 
53
- default_url = ::Redis::Client::DEFAULTS[:url]
54
- default_url = default_url.call if default_url.respond_to?(:call)
55
-
56
- url = options[:url] || default_url
57
54
  if url.to_s.start_with?('redis+sentinel://')
58
55
  options = options.merge(Redis::Sentinel::URL.parse(url))
59
56
  end
@@ -1,7 +1,7 @@
1
1
  class Redis
2
2
  module Sentinel
3
3
  class Url
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-sentinel-url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Holland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-22 00:00:00.000000000 Z
11
+ date: 2018-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler