encrypt_env 1.3.2 → 1.3.3
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 +4 -4
- data/lib/encrypt_env/version.rb +1 -1
- data/lib/encrypt_env.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da8b5db8cc944d9f2ec3f293efa316cb67dc54e56695ffef220303f9ceb566d5
|
4
|
+
data.tar.gz: 5baa2602d7d3e8b780d45c4c080b4ca49177f10d205072e72e859c15bb795f21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc119a9d8343930f9ba286d88542084692cb6f4d3f820fc7c82e64f61b6d80a5fbf8216604635e14104118c58b23d0e7ad1ef49e20f15fb0732339010ca0e3d9
|
7
|
+
data.tar.gz: 48eee986594c2327f0cb38ebaf52c8362c881213bbe91e5fc9b6ae247d7a677c81f608ff3b9d4f0bec34430a4438369f22415e1956aabf8308a8a0e87f1c4d6b
|
data/lib/encrypt_env/version.rb
CHANGED
data/lib/encrypt_env.rb
CHANGED
@@ -288,11 +288,15 @@ class EncryptEnv
|
|
288
288
|
f.flush
|
289
289
|
f.rewind
|
290
290
|
system("vim #{f.path}")
|
291
|
-
new_value = File.read(f.path)
|
292
|
-
|
291
|
+
# new_value = File.read(f.path)
|
292
|
+
new_value = YAML.load_file(f.path)
|
293
|
+
# value[key] = new_value.strip
|
294
|
+
value[key] = new_value
|
293
295
|
encrypt(value.to_hash.to_yaml, env || current_env)
|
294
296
|
@decrypted = nil
|
295
297
|
end
|
298
|
+
|
299
|
+
puts "#{key}\t=>\t#{value[key]}"
|
296
300
|
end
|
297
301
|
end
|
298
302
|
# rubocop:enable Metrics/ClassLength
|