config 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/config/sources/yaml_source.rb +4 -4
- data/lib/config/version.rb +1 -1
- data/lib/config.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3cac0bdae533f9149702c94c130eb5ff67615fe379cfa6327f5ca35cd70158d
|
4
|
+
data.tar.gz: 8b6f02dc57a929b9b6f577b006b6fd93691ab2fe2ed03924b96ca4d68ec26d1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d65e0cfebb1a8340128aaf3bd38e177aca37f9e45eca1e2c131a388570e5141b1ac7f6ec4acd266dbfc9ac8abaade6dc3385f4abe2bd8432b641927c2df0e9ee
|
7
|
+
data.tar.gz: 6fca6f8a1bdfd9fd6f11253238a557ada04b37ec949a9f9433bc61c4732150f0397248ec236211dabbc71ea8cc1286f1f74d31e0f643363b7b020733cc94ae8a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 4.1.0
|
4
|
+
|
5
|
+
### Bug fixes
|
6
|
+
|
7
|
+
* Only load `Railtie` integration if `Rails::Railtie` is defined ([#319](https://github.com/rubyconfig/config/pull/319))
|
8
|
+
* Fix indentation warning in Ruby 3.1 ([#322](https://github.com/rubyconfig/config/pull/322))
|
9
|
+
|
3
10
|
## 4.0.0
|
4
11
|
|
5
12
|
### BREAKING CHANGES
|
@@ -22,10 +22,10 @@ module Config
|
|
22
22
|
|
23
23
|
result || {}
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
rescue Psych::SyntaxError => e
|
26
|
+
raise "YAML syntax error occurred while parsing #{@path}. " \
|
27
|
+
"Please note that YAML must be consistently indented using spaces. Tabs are not allowed. " \
|
28
|
+
"Error: #{e.message}"
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
data/lib/config/version.rb
CHANGED
data/lib/config.rb
CHANGED
@@ -79,7 +79,7 @@ module Config
|
|
79
79
|
end
|
80
80
|
|
81
81
|
# Rails integration
|
82
|
-
require('config/integrations/rails/railtie') if defined?(::Rails)
|
82
|
+
require('config/integrations/rails/railtie') if defined?(::Rails::Railtie)
|
83
83
|
|
84
84
|
# Sinatra integration
|
85
85
|
require('config/integrations/sinatra') if defined?(::Sinatra)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Kuczynski
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-11-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: deep_merge
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.
|
268
|
+
rubygems_version: 3.2.26
|
269
269
|
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: Effortless multi-environment settings in Rails, Sinatra, Pandrino and others
|