percy-common 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/percy/common/version.rb +1 -1
- data/lib/percy/redis_client.rb +10 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a36d99fd5b06fe4959e00e8f13b9bbf1f7d356832c2a56f42e1f177f285b11d
|
4
|
+
data.tar.gz: a9ce522b6a66d1d96527cbdb774b1fd5dc92738d0c9953cb29ea4371de0bbc04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e18a43f607a28a9b6f450470bf7e0bb9c2acaf266cd134ecd499f8da3a9d37fc4f52b6fd8f550d08c8fea2cef83497948935d8025b23756c1cfba2b2dcac08d
|
7
|
+
data.tar.gz: '0062099d255d3cc75ddf646a939c72b7a82dd77c2da97289134e6d9240e9628603c5d0dd14dfde8d461f76d5dcf389b67295e91bb1d6588325de0f3de9d4331a'
|
data/lib/percy/common/version.rb
CHANGED
data/lib/percy/redis_client.rb
CHANGED
@@ -8,13 +8,8 @@ module Percy
|
|
8
8
|
attr_reader :client
|
9
9
|
|
10
10
|
def initialize(options = {})
|
11
|
-
@options = options
|
12
|
-
@client = ::Redis.new(
|
13
|
-
options.merge(
|
14
|
-
ssl: ssl_enabled?,
|
15
|
-
ssl_params: ssl_params,
|
16
|
-
),
|
17
|
-
)
|
11
|
+
@options = ssl_options.merge(options)
|
12
|
+
@client = ::Redis.new(options)
|
18
13
|
end
|
19
14
|
|
20
15
|
private def ssl_enabled?
|
@@ -22,7 +17,14 @@ module Percy
|
|
22
17
|
end
|
23
18
|
|
24
19
|
private def provided_url
|
25
|
-
options
|
20
|
+
options&.dig(:url)
|
21
|
+
end
|
22
|
+
|
23
|
+
private def ssl_options
|
24
|
+
{
|
25
|
+
ssl: ssl_enabled?,
|
26
|
+
ssl_params: ssl_params,
|
27
|
+
}
|
26
28
|
end
|
27
29
|
|
28
30
|
private def ssl_params
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dogstatsd-ruby
|