config 5.6.0 → 5.6.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 +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/config/sources/yaml_source.rb +1 -1
- data/lib/config/version.rb +1 -1
- 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: d2cd615486e9e4f65f2c542ad5112f0bedbf744a6413f15d157a62c6b2b798a0
|
4
|
+
data.tar.gz: 492dc3f5194934a08586b3a3f2b24bf5c1d7572ea2a97aafc0a0bd882a806d43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16737e3afd9def484dc34d92661acef67452274841bb7ae74cb68992b8e857a5735b5d6692cdc31a42d460fb623385eef0aed5ff7c364d4f49226aa1ae5259f8
|
7
|
+
data.tar.gz: b6fa89e593d1997d29c56be704a148ea9591dbf11e723980966af4bfc109c9a3aa16e1c3192d865e43f5188bae815bab5e5012ee14e686e809ece99d2b358a6b
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 5.6.1
|
4
|
+
|
5
|
+
* fix(security): replace IO.read with File.read [#378](https://github.com/rubyconfig/config/pull/378)
|
6
|
+
|
3
7
|
## 5.6.0
|
4
8
|
|
5
|
-
* Added `extra_sources` in initializer
|
9
|
+
* Added `extra_sources` in initializer ([#366](https://github.com/rubyconfig/config/pull/366))
|
6
10
|
|
7
11
|
## 5.5.2
|
8
12
|
|
@@ -15,7 +15,7 @@ module Config
|
|
15
15
|
# returns a config hash from the YML file
|
16
16
|
def load
|
17
17
|
if @path and File.exist?(@path)
|
18
|
-
file_contents =
|
18
|
+
file_contents = File.read(@path)
|
19
19
|
file_contents = ERB.new(file_contents).result if evaluate_erb
|
20
20
|
result = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(file_contents) : YAML.load(file_contents)
|
21
21
|
end
|
data/lib/config/version.rb
CHANGED