container_config 0.1.0 → 0.1.1

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: a335fbf082edd704a0fad5393a1211ad20b0533611f688a174112533469c43e9
4
- data.tar.gz: 71cde1c1a6a7f539ff6d9359ea98b594d35a39d19d06148e32c0a2ad1fff25a9
3
+ metadata.gz: b47a5e9edfb447d7e7652e111f7b994462677a4fb11edf9f5c6f83dde7c57af7
4
+ data.tar.gz: d918565b96a016168735db0d4b35edf771ce765e463066a4978060c395c7e52b
5
5
  SHA512:
6
- metadata.gz: bbb9e521366c1f740a76d9d473c2eb95a6c9e9a5be2c09856523ec63112a03e6c509cd1820bd7886522de4286bc276b7b9508a4f6120225b2c7082945e37c09c
7
- data.tar.gz: ebd3318980dfe673eb1b4c526f7b5ffb9b7741709376a323a7d01ca521a7f9fbfb93f6b253213cfa1bf75372fed65d13a528a430aa4dbe6b3d14784e380d5802
6
+ metadata.gz: 703c86f3417c034b947694b1e3be3507e6e09e25b56f2d9e964f313448ec256e74ca1daf383abdbe87313cd983b286e1bd80f166b8d91037fc7e98fd909fe0d9
7
+ data.tar.gz: f384315f88a9494765a32141d7da410637eaf6887edecaea17b7a462cbde739d87f5239365113482498d16f46a14d3d97bed4552eb4c895b1f16e4a5b6567212
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2021-03-15
4
+
5
+ - Handle `nil` `Rails.application`
6
+
3
7
  ## [0.1.0] - 2021-03-05
4
8
 
5
9
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- container_config (0.1.0)
4
+ container_config (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -22,13 +22,13 @@ Or install it yourself as:
22
22
 
23
23
  ```ruby
24
24
  # Retrieve the value of the POSTGRES_USER environment variable, secret mount, or Rails credential
25
- ConfigLoader.load("POSTGRES_USER")
25
+ ContainerConfig.load("POSTGRES_USER")
26
26
 
27
27
  # Retrieve the value of the POSTGRES_PORT environment variable, secret mount, or Rails credential as an integer with a default value of 5432
28
- ConfigLoader.load("POSTGRES_PORT", type: :integer, default: 5432)
28
+ ContainerConfig.load("POSTGRES_PORT", type: :integer, default: 5432)
29
29
 
30
30
  # Retrieve the value of the POSTGRES_PASSWORD environment variable, secret mount, or Rails credential and raise an exception if it cannot be found
31
- ConfigLoader.load("POSTGRES_PASSWORD", required: true)
31
+ ContainerConfig.load("POSTGRES_PASSWORD", required: true)
32
32
  ```
33
33
 
34
34
  Full documentation is available in the [ContainerConfig GitHub Pages](https://wheatevo.github.io/container_config/).
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = "https://github.com/wheatevo/container_config"
19
+ spec.metadata["documentation_uri"] = "https://wheatevo.github.io/container_config/"
19
20
  spec.metadata["changelog_uri"] = "https://github.com/wheatevo/container_config/blob/master/CHANGELOG.md"
20
21
 
21
22
  # Specify which files should be added to the gem when it is released.
@@ -24,7 +24,7 @@ module ContainerConfig
24
24
  #
25
25
  def load(key, *dig_keys, **options)
26
26
  super
27
- ::Rails.application.credentials.config.dig(*dig_keys.map(&:to_sym))
27
+ ::Rails.application&.credentials&.config&.dig(*dig_keys.map(&:to_sym))
28
28
  end
29
29
  end
30
30
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ContainerConfig
4
4
  # ContainerConfig version
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: container_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Newell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -143,6 +143,7 @@ licenses:
143
143
  metadata:
144
144
  homepage_uri: https://github.com/wheatevo/container_config
145
145
  source_code_uri: https://github.com/wheatevo/container_config
146
+ documentation_uri: https://wheatevo.github.io/container_config/
146
147
  changelog_uri: https://github.com/wheatevo/container_config/blob/master/CHANGELOG.md
147
148
  post_install_message:
148
149
  rdoc_options: []