secret_config 0.4.3 → 0.4.4

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: 864c83c4f27c524de0a650aa7f36a81007b6273473e7545275801d47259d48c3
4
- data.tar.gz: 1cc3f90c077032d03abf7a495b91f9b3f035068616120530c4f6abe76f970d8b
3
+ metadata.gz: ea3a4777a5adf17f3ce9ffa247993218c40ceded3100327aae35578dbdb107f7
4
+ data.tar.gz: 79259be9bdb507cb7bf6b3058df6c786644b9b4feee0d5e9cb0157617eeba53e
5
5
  SHA512:
6
- metadata.gz: ca5ab9fc5a2354a98664fad6ccf7b7788a3eb9f0ee5f1e139fd7ddea1d8bae891daf0eb4d4b2571292fa7d1261d7a9893b4e84fa5e1dcdbd79a78a1a787225a7
7
- data.tar.gz: f61ae5cafac54d35069110b2fbbdfbc0bb405dc98ea57a40444e85106062f1e566ffc8f4e072bf762d5adb9d6e9f7f1e5edc68acaf19c352cc3ea33af6dc63b2
6
+ metadata.gz: a5883154f322fbcae08ba19ee47efbd31fbb6c9785a492b0f00e022f2a621b56c62278d7def133139210f1f7215c55839d3836e52743cbd7cd3842ee9d19c298
7
+ data.tar.gz: fd1e3b4d91edbe3e00f8b5343534fc065a1168c8f07b4743bc6f28f639024992893a6a4413180c1b7adcecae6137ca519a58e3b81fae3127529028ef7bde2591
data/bin/secret_config CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
4
+
3
5
  require 'secret_config'
4
6
 
5
7
  SecretConfig::CLI.run!(ARGV)
@@ -177,7 +177,9 @@ module SecretConfig
177
177
  def set_config(config, path)
178
178
  # TODO: prune, replace
179
179
  Utils.flatten_each(config, path) do |key, value|
180
- value = random_password if value.strip == '$random'
180
+ next if value.nil?
181
+
182
+ value = random_password if value.to_s.strip == '$random'
181
183
  puts "Setting: #{key}"
182
184
  provider_instance.set(key, value)
183
185
  end
@@ -1,3 +1,3 @@
1
1
  module SecretConfig
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secret_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reid Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-25 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby