config 4.0.0 → 4.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85332d4ed746064fee534937bdc24149fcedfcc311270527b098da57c42d6a70
4
- data.tar.gz: 704036655a9f40ddadbbc6fe8ca3854d2a74e613ee67a972e59adf4de78eaf95
3
+ metadata.gz: b3cac0bdae533f9149702c94c130eb5ff67615fe379cfa6327f5ca35cd70158d
4
+ data.tar.gz: 8b6f02dc57a929b9b6f577b006b6fd93691ab2fe2ed03924b96ca4d68ec26d1e
5
5
  SHA512:
6
- metadata.gz: 10eb564da50890bc25b7286950c73d4f88e19ab226163379b07a9f63ce4dce245592bb427949970937025c54af611f6278906e4c658b7baae3ae21cbf16892b8
7
- data.tar.gz: 06a00c9ad9e3a5d7bd30664de4ab7821c3ae09f9edd9bc3d385a11ece34cdaf09c62bfac11fa6e14cf64596132d6c5481ed50d3f6bcf0849532adb3fd1abc855
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
- 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}"
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
@@ -1,3 +1,3 @@
1
1
  module Config
2
- VERSION = '4.0.0'.freeze
2
+ VERSION = '4.1.0'.freeze
3
3
  end
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.0.0
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-02-13 00:00:00.000000000 Z
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.1.6
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