complex_config 0.21.1 → 0.21.2

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: 1be2d6a3e3fa81319f6455a9e4f158f45d096c322a3d224e8547fe81a4490b33
4
- data.tar.gz: fc4bfec9fac1f616f51818f3bcd1ebf0ca4db5102d7430b09207339746472293
3
+ metadata.gz: 6474060cd0f183904552779ab98ae7cb6fb9db5599fc482a903f3d392275179b
4
+ data.tar.gz: 035c81f9e729450c78768c37db1d4e59d22e3e2836e024bc673ade290bde3d78
5
5
  SHA512:
6
- metadata.gz: 65f0b0f8c29597bda6a31a2c80285e02caeccb7068e184f8385dfa8849233623382a6667407328fcc3b2c5a91f108885daba55f4b4eb70f7ea7f1b241e82833a
7
- data.tar.gz: 23fbb4f4bc736e10606cd001ec1af90bba397ad939720d148354e9fada7cbb4a0b6b849ffe7592d7692247a4d615d600f430ddbc39c11423d33e3ce360be902b
6
+ metadata.gz: 1354001406f48dd90e2cdefa85aace10f96bdcbaadc1f64fcd470bdbcd3cc8a7c82a9db56766b61cb37c944d4a465838c9157c369f6213c476797b8003647d91
7
+ data.tar.gz: 81cedae129b2079be7bd94b473d6d17ce53d292fc83493ee491bb73b86e5f7690849bf66f5d7a25c5ba36101210294a932b3857ac10512cf8c21a0f1311fcd70
data/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changes
2
2
 
3
+ ## 2024-09-09 v0.21.2
4
+
5
+ * **Settings List Method**:
6
+ + Renamed `list` to `attributes_list`.
7
+ + Updated tests in `settings_spec.rb` to use the new method name.
8
+
3
9
  ## 2024-09-09 v0.21.1
4
10
 
5
11
  * **API Changes**:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.21.1
1
+ 0.21.2
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: complex_config 0.21.1 ruby lib
2
+ # stub: complex_config 0.21.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "complex_config".freeze
6
- s.version = "0.21.1".freeze
6
+ s.version = "0.21.2".freeze
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
@@ -135,7 +135,7 @@ class ComplexConfig::Settings < BasicObject
135
135
  size == 0
136
136
  end
137
137
 
138
- def list(pair_sep: ' = ', path_sep: ?.)
138
+ def attributes_list(pair_sep: ' = ', path_sep: ?.)
139
139
  empty? and return self.class.name
140
140
  pathes(path_sep: path_sep).inject('') do |result, (path, value)|
141
141
  result + "#{path}#{pair_sep}#{value.inspect}\n"
@@ -1,6 +1,6 @@
1
1
  module ComplexConfig
2
2
  # ComplexConfig version
3
- VERSION = '0.21.1'
3
+ VERSION = '0.21.2'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -87,7 +87,7 @@ RSpec.describe ComplexConfig::Settings do
87
87
  end
88
88
 
89
89
  it 'can be listed as string' do
90
- expect(settings.list(pair_sep: ' → ', path_sep: ?/)).to eq <<~EOT
90
+ expect(settings.attributes_list(pair_sep: ' → ', path_sep: ?/)).to eq <<~EOT
91
91
  root/foo/bar/baz → true
92
92
  root/foo/qux → "quux"
93
93
  EOT
@@ -99,7 +99,7 @@ RSpec.describe ComplexConfig::Settings do
99
99
 
100
100
  it 'can be listesd as a string if it has arrays' do
101
101
  settings[:ary] = described_class[ [ 1, { nested: 2 }, 3 ] ]
102
- expect(settings.list).to eq <<~EOT
102
+ expect(settings.attributes_list).to eq <<~EOT
103
103
  root.foo.bar.baz = true
104
104
  root.foo.qux = "quux"
105
105
  root.ary[0] = 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: complex_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.1
4
+ version: 0.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank