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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85332d4ed746064fee534937bdc24149fcedfcc311270527b098da57c42d6a70
4
- data.tar.gz: 704036655a9f40ddadbbc6fe8ca3854d2a74e613ee67a972e59adf4de78eaf95
3
+ metadata.gz: 03a5310fb513c9cd3ac7ae0f8b12c532618c75f3a9416e0ce1b75652c97a2bba
4
+ data.tar.gz: 1537d127fbf2d149eac3d3ad8dadbfbe9928e8c2a74eaa1d53f1ab216459fae0
5
5
  SHA512:
6
- metadata.gz: 10eb564da50890bc25b7286950c73d4f88e19ab226163379b07a9f63ce4dce245592bb427949970937025c54af611f6278906e4c658b7baae3ae21cbf16892b8
7
- data.tar.gz: 06a00c9ad9e3a5d7bd30664de4ab7821c3ae09f9edd9bc3d385a11ece34cdaf09c62bfac11fa6e14cf64596132d6c5481ed50d3f6bcf0849532adb3fd1abc855
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, Pandrino and others'
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, Pandrino and others'
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
- 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.2.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)
@@ -18,7 +18,7 @@ module Config
18
18
  end
19
19
 
20
20
  def modify_gitignore
21
- create_file '.gitignore' unless File.exists? '.gitignore'
21
+ create_file '.gitignore' unless File.exist? '.gitignore'
22
22
 
23
23
  append_to_file '.gitignore' do
24
24
  "\n" +
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.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: 2022-02-13 00:00:00.000000000 Z
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, Pandrino and others'
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.1.6
268
+ rubygems_version: 3.2.26
269
269
  signing_key:
270
270
  specification_version: 4
271
- summary: Effortless multi-environment settings in Rails, Sinatra, Pandrino and others
271
+ summary: Effortless multi-environment settings in Rails, Sinatra, Padrino and others
272
272
  test_files: []