redis_env_config 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis_env_config.rb +1 -0
- data/lib/redis_env_config/version.rb +1 -1
- 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: 24f11f185c93707cdb41a37a66dba88d5dda19586b39a3d680a1857b41c15766
|
4
|
+
data.tar.gz: 980bd45813949c7169bfbd519faa6b0b8fd6a60460eb00ec207b81d988b0b55e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d994d6ab30ad5c41cb51ff30c234fde0634de2465276378b6875d515aa946cabc89f85a4404bfa9b3a6e368b48a9c30c3a83a112b80959ca75016bff135215d
|
7
|
+
data.tar.gz: 294331e8c3d8680c4f9fc1b27d2be078d374e4227a3b5c13a02c1abbbf73ed10052f1981db56508c95eac252901cbd7c0acbf4770ccb05835216f5cf554eb828
|
data/lib/redis_env_config.rb
CHANGED
@@ -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"
|
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.
|
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-
|
11
|
+
date: 2021-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|