gitlab_support_readiness 1.0.105 → 1.0.106

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: 285979d526ebc6466de0a67ef6806bef72631628f7c8d097186bf0a23a673be9
4
- data.tar.gz: c42893330a7738b34bab0fbe66723b1ed2e8bfacffcc667cbbc65ce36cac7fa8
3
+ metadata.gz: 382bb3f8e93489bd0981ac1314b30102c707b91b5298766c81a3b874873e154a
4
+ data.tar.gz: b26189e604d605fa8e38a2c121e4c9df4187d5d7f97e6a31ad853b75693dd7cc
5
5
  SHA512:
6
- metadata.gz: 44e5d5c088e3feb883d75d322f60a391ba18de3c9ade4699faaa2415d1b4a1b0d7a8c25fe4b270638606f71b0743815199fe6e3d20b72f49f4af040d43956f1b
7
- data.tar.gz: cb2e2892c61438777545b9739eafc3a196300801b02e2cddb58eb981a80128ec5c2a493e5baf996e758a7f1b8cdde929df5f87b7a5c90e95e303bc5e08f28a9e
6
+ metadata.gz: 531ea2fd66a168979466a8aa574472db8f2931c321f1681f8d8ccf102a71dfc741a2422be260da41b18dc577013bd7b56e040b1fa78534ef932697098a3bbc52
7
+ data.tar.gz: b3c111629ae14987e2ec82a5f6e64f9cd0f275569e1331879f63e47b593c4ac13a683d0691bc2a2c87f1ed6bf2c5eee478af0938dc9f073656cae9aaead368ee
@@ -18,11 +18,13 @@ module Readiness
18
18
  # @param host [String] The hostname to use in Redis connections
19
19
  # @param port [Integer] The port number to use in Redis connections
20
20
  # @param password [String] The password to use in Redis connections
21
+ # @param username [String] The username to use in Redis connections
22
+ # @param ssl [Boolean] The SSL setting to use in Redis connections
21
23
  # @example
22
24
  # require 'support_readiness'
23
25
  # redis = Readiness::Redis.new('domain.com', 6379, 'p@assw0rd!')
24
- def initialize(host, port, password)
25
- @connection = generate_client(host, port, password)
26
+ def initialize(host, port, password, username = nil, ssl = true)
27
+ @connection = generate_client(host, port, password, username, ssl)
26
28
  end
27
29
 
28
30
  ##
@@ -33,11 +35,14 @@ module Readiness
33
35
  # @param host [String] The hostname to use in Redis connections
34
36
  # @param port [Integer] The port number to use in Redis connections
35
37
  # @param password [String] The password to use in Redis connections
36
- def generate_client(host, port, password)
38
+ # @param username [String] The username to use in Redis connections
39
+ # @param ssl [Boolean] The SSL setting to use in Redis connections
40
+ def generate_client(host, port, password, username, ssl)
37
41
  ::Redis.new(host: host,
42
+ username: username,
38
43
  port: port,
39
44
  password: password,
40
- ssl: true)
45
+ ssl: ssl)
41
46
  end
42
47
 
43
48
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_support_readiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.105
4
+ version: 1.0.106
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer