redis_env_config 0.1.0 → 0.2.0

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: 9207ea50f1e51550994fbce131e0e8d2b23a34e67777e9797200fbc9cbe9c5fe
4
- data.tar.gz: c9140f9073d744f0750613a7c2788975de8cca13f3e0fdcf8e56349826b94186
3
+ metadata.gz: 24f11f185c93707cdb41a37a66dba88d5dda19586b39a3d680a1857b41c15766
4
+ data.tar.gz: 980bd45813949c7169bfbd519faa6b0b8fd6a60460eb00ec207b81d988b0b55e
5
5
  SHA512:
6
- metadata.gz: 6e73270db120ed2b5baf4d13bbdd9409ca9bb3339245661959ad1465a3f662f987ab370569a2b1b3c269d51b55e62763b8f34356b4dcc3d3f0ae5306b871b0f5
7
- data.tar.gz: ee41787321de137d97a323a7f5deae525e3fe0bddd69429be618fc6acbb675b065d773e218e1b05945e44bccbf85627345840ad4ea2c8c6bc76471be09952389
6
+ metadata.gz: 0d994d6ab30ad5c41cb51ff30c234fde0634de2465276378b6875d515aa946cabc89f85a4404bfa9b3a6e368b48a9c30c3a83a112b80959ca75016bff135215d
7
+ data.tar.gz: 294331e8c3d8680c4f9fc1b27d2be078d374e4227a3b5c13a02c1abbbf73ed10052f1981db56508c95eac252901cbd7c0acbf4770ccb05835216f5cf554eb828
@@ -7,6 +7,7 @@ class RedisEnvConfig
7
7
  def initialize(env: ENV)
8
8
  @config = {}
9
9
  @config[:url] = env["REDIS_URL"] if env["REDIS_URL"]
10
+ @config[:password] = env["REDIS_PASSWORD"] if env["REDIS_PASSWORD"]
10
11
  if !@config[:url].nil? and @config[:url].start_with?("rediss:")
11
12
  @config[:ssl_params] = Hash.new.tap do |x|
12
13
  cert = env["REDIS_CERT"] or raise Error, "missing environment variable REDIS_CERT"
@@ -1,3 +1,3 @@
1
1
  class RedisEnvConfig
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_env_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sheldon Hearn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-15 00:00:00.000000000 Z
11
+ date: 2021-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler