config 4.1.0 → 4.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3cac0bdae533f9149702c94c130eb5ff67615fe379cfa6327f5ca35cd70158d
4
- data.tar.gz: 8b6f02dc57a929b9b6f577b006b6fd93691ab2fe2ed03924b96ca4d68ec26d1e
3
+ metadata.gz: d8e3673269abb8919961385bf27374aac4125d46988f5f69114feb7b2d36ef30
4
+ data.tar.gz: 040fff3a658f33f09da8296079a0672b28fbce8e3e6333c8dfacdfb8a239e998
5
5
  SHA512:
6
- metadata.gz: d65e0cfebb1a8340128aaf3bd38e177aca37f9e45eca1e2c131a388570e5141b1ac7f6ec4acd266dbfc9ac8abaade6dc3385f4abe2bd8432b641927c2df0e9ee
7
- data.tar.gz: 6fca6f8a1bdfd9fd6f11253238a557ada04b37ec949a9f9433bc61c4732150f0397248ec236211dabbc71ea8cc1286f1f74d31e0f643363b7b020733cc94ae8a
6
+ metadata.gz: 859eda030f5b0ac224a367359f4fc8c1af2a45eab726c74691db3da79fd3f2cb8fa6f85011036be6fef7c07600a0f5687e96db2f3a09bb1430755bfb7322cd86
7
+ data.tar.gz: 0d233e69e12d0f92d6edd3d588e727905b8bff7d57b93027ec40290131ea3883208e4509db3fff946a30a326a6b34fe6fae340dacb12ea196cb07cd1eb68c850
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Bug fixes
6
+
7
+ * Address edge case with `table` config param ([#339](https://github.com/rubyconfig/config/pull/339))
8
+
9
+ ## 4.2.0
10
+
11
+ ### Bug fixes
12
+
13
+ * Remove use of method `File.exists?` to fix use in Ruby 3.0 ([#318](https://github.com/rubyconfig/config/pull/318))
14
+
3
15
  ## 4.1.0
4
16
 
5
17
  ### Bug fixes
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![Version](https://img.shields.io/gem/v/config)](https://rubygems.org/gems/config)
4
4
  [![Downloads Total](https://img.shields.io/gem/dt/config)](https://rubygems.org/gems/config)
5
- [![Build](https://img.shields.io/github/workflow/status/rubyconfig/config/tests)](https://rubygems.org/gems/config)
6
5
  [![Tests](https://github.com/rubyconfig/config/workflows/tests/badge.svg)](https://github.com/rubyconfig/config/actions?query=branch%3Amaster)
7
6
  [![Financial Contributors on Open Collective](https://opencollective.com/rubyconfig/all/badge.svg?label=backers)](https://opencollective.com/rubyconfig)
8
7
 
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]
@@ -112,7 +112,7 @@ module Config
112
112
  end
113
113
 
114
114
  # Some keywords that don't play nicely with OpenStruct
115
- SETTINGS_RESERVED_NAMES = %w[select collect test count zip min max exit!].freeze
115
+ SETTINGS_RESERVED_NAMES = %w[select collect test count zip min max exit! table].freeze
116
116
 
117
117
  # An alternative mechanism for property access.
118
118
  # This let's you do foo['bar'] along with foo.bar.
@@ -132,11 +132,11 @@ module Config
132
132
  end
133
133
 
134
134
  def key?(key)
135
- table.key?(key)
135
+ @table.key?(key)
136
136
  end
137
137
 
138
138
  def has_key?(key)
139
- table.has_key?(key)
139
+ @table.has_key?(key)
140
140
  end
141
141
 
142
142
  def method_missing(method_name, *args)
@@ -1,3 +1,3 @@
1
1
  module Config
2
- VERSION = '4.1.0'.freeze
2
+ VERSION = '4.2.1'.freeze
3
3
  end
@@ -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.1.0
4
+ version: 4.2.1
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-11-11 00:00:00.000000000 Z
13
+ date: 2023-06-14 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.2.26
268
+ rubygems_version: 3.4.13
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: []