config 4.0.0 → 4.2.0
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 +13 -0
- data/config.gemspec +2 -2
- data/lib/config/sources/yaml_source.rb +4 -4
- data/lib/config/version.rb +1 -1
- data/lib/config.rb +1 -1
- data/lib/generators/config/install_generator.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03a5310fb513c9cd3ac7ae0f8b12c532618c75f3a9416e0ce1b75652c97a2bba
|
4
|
+
data.tar.gz: 1537d127fbf2d149eac3d3ad8dadbfbe9928e8c2a74eaa1d53f1ab216459fae0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42de1f0fb9037304f8627a55d3168821816c12182a4ee688f45a5c9d5f948b74f37b8b381750e68569730b9bb93f735620e4f4015995d3787bcc3f7ed8a56cde
|
7
|
+
data.tar.gz: 22f79baf73d715844db059ac3cb6ca6b506d913305a5415fc7ecae206d159d7f84302821d863bab10b01c31d5b88ce95a321e6d6a54bd84ead1d2732b9c74336
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 4.2.0
|
4
|
+
|
5
|
+
### Bug fixes
|
6
|
+
|
7
|
+
* Remove use of method `File.exists?` to fix use in Ruby 3.0 ([#318](https://github.com/rubyconfig/config/pull/318))
|
8
|
+
|
9
|
+
## 4.1.0
|
10
|
+
|
11
|
+
### Bug fixes
|
12
|
+
|
13
|
+
* Only load `Railtie` integration if `Rails::Railtie` is defined ([#319](https://github.com/rubyconfig/config/pull/319))
|
14
|
+
* Fix indentation warning in Ruby 3.1 ([#322](https://github.com/rubyconfig/config/pull/322))
|
15
|
+
|
3
16
|
## 4.0.0
|
4
17
|
|
5
18
|
### BREAKING CHANGES
|
data/config.gemspec
CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.date = Time.now.strftime '%F'
|
9
9
|
s.authors = ['Piotr Kuczynski', 'Fred Wu', 'Jacques Crocker']
|
10
10
|
s.email = %w[piotr.kuczynski@gmail.com ifredwu@gmail.com railsjedi@gmail.com]
|
11
|
-
s.summary = 'Effortless multi-environment settings in Rails, Sinatra,
|
11
|
+
s.summary = 'Effortless multi-environment settings in Rails, Sinatra, Padrino and others'
|
12
12
|
s.description = 'Easiest way to manage multi-environment settings in any ruby project or framework: ' +
|
13
|
-
'Rails, Sinatra,
|
13
|
+
'Rails, Sinatra, Padrino and others'
|
14
14
|
s.homepage = 'https://github.com/rubyconfig/config'
|
15
15
|
s.license = 'MIT'
|
16
16
|
s.extra_rdoc_files = %w[README.md CHANGELOG.md CONTRIBUTING.md LICENSE.md]
|
@@ -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.2.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:
|
13
|
+
date: 2023-05-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: deep_merge
|
@@ -203,7 +203,7 @@ dependencies:
|
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
version: 0.85.0
|
205
205
|
description: 'Easiest way to manage multi-environment settings in any ruby project
|
206
|
-
or framework: Rails, Sinatra,
|
206
|
+
or framework: Rails, Sinatra, Padrino and others'
|
207
207
|
email:
|
208
208
|
- piotr.kuczynski@gmail.com
|
209
209
|
- ifredwu@gmail.com
|
@@ -265,8 +265,8 @@ 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
|
-
summary: Effortless multi-environment settings in Rails, Sinatra,
|
271
|
+
summary: Effortless multi-environment settings in Rails, Sinatra, Padrino and others
|
272
272
|
test_files: []
|