qonfig 0.27.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f1dc9656c82767633db2cd0560ec5e556596db39cb24ebedb7e57e77953fe4f
4
- data.tar.gz: e2cb31c582204c47346c3161974e7c0ae1c74f08ec25bcce33ab795dd2a920f0
3
+ metadata.gz: 218eb4aa48a675227a5548f404040988e28e900d8099789ad3569adf10bdf11a
4
+ data.tar.gz: b008b73ceede53055f136c686ada92be85d309ead704f1328785e5f2ae4d12f8
5
5
  SHA512:
6
- metadata.gz: 9af958e6b471e7df6b66bea682622a02a1063d76b820aff9f4663b0a81b2a8ca8048aff94e4035d6d9376542da3b28e38cb4578d3f8d3e3f1f4a38c3eae220a2
7
- data.tar.gz: fb8c4348721326fb48875506e20c48c924a6abd0d6317557849454a804a697801a71583c8b7cccc3b1b2441b3cac482872adbac9d59255357c65fd765aa05ff8
6
+ metadata.gz: 15da249e905655b1a749fabc6b4b62cdaeb63f0ad04be8ad4e7ae1dc6ff7a949ef34c2900aa9f423abd6be1e381940c4539cc2d89a2a1ce3e4c358afc013a49c
7
+ data.tar.gz: '00949bf3bb13ed5cf32d47ed6a608627828284217b6549fb4eb239562274336b99a7469ca6bc613eaebe0865d7a8c9f7a2dbe3cb90922cd8dcf19b0c5893d54d'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.28.0]
5
+ ### Changed
6
+ - Support for the new `toml-rb` release (`2.1`);
7
+ - Updated dev-dependencies;
8
+ - Adopt the code to the new rubocop cops;
9
+
4
10
  ## [0.27.0] - 2022-01-12
5
11
  ### Changed
6
12
  - Drop Ruby 2.5 support.
data/Gemfile.lock CHANGED
@@ -6,124 +6,137 @@ PATH
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activesupport (6.1.4.4)
9
+ activesupport (6.1.6)
10
10
  concurrent-ruby (~> 1.0, >= 1.0.2)
11
11
  i18n (>= 1.6, < 2)
12
12
  minitest (>= 5.1)
13
13
  tzinfo (~> 2.0)
14
14
  zeitwerk (~> 2.3)
15
- armitage-rubocop (1.23.0.1)
16
- rubocop (= 1.23.0)
17
- rubocop-performance (= 1.12.0)
18
- rubocop-rails (= 2.12.4)
15
+ armitage-rubocop (1.30.1.1)
16
+ rubocop (= 1.30.1)
17
+ rubocop-performance (= 1.14.2)
18
+ rubocop-rails (= 2.15.0)
19
19
  rubocop-rake (= 0.6.0)
20
- rubocop-rspec (= 2.6.0)
20
+ rubocop-rspec (= 2.11.1)
21
21
  ast (2.4.2)
22
- bundler-audit (0.9.0.1)
22
+ bundler-audit (0.9.1)
23
23
  bundler (>= 1.2.0, < 3)
24
24
  thor (~> 1.0)
25
- ci-helper (0.4.2)
25
+ ci-helper (0.5.0)
26
26
  colorize (~> 0.8)
27
27
  dry-inflector (~> 0.2)
28
28
  umbrellio-sequel-plugins (~> 0.4)
29
29
  coderay (1.1.3)
30
30
  colorize (0.8.1)
31
- concurrent-ruby (1.1.9)
31
+ concurrent-ruby (1.1.10)
32
32
  diff-lcs (1.5.0)
33
33
  docile (1.4.0)
34
34
  dry-inflector (0.2.1)
35
- ffi (1.15.5-java)
36
- i18n (1.8.11)
35
+ ffi (1.15.5)
36
+ i18n (1.10.0)
37
37
  concurrent-ruby (~> 1.0)
38
+ language_server-protocol (3.16.0.3)
39
+ listen (3.7.1)
40
+ rb-fsevent (~> 0.10, >= 0.10.3)
41
+ rb-inotify (~> 0.9, >= 0.9.10)
38
42
  method_source (1.0.0)
39
- minitest (5.15.0)
40
- parallel (1.21.0)
41
- parser (3.1.0.0)
43
+ minitest (5.16.0)
44
+ parallel (1.22.1)
45
+ parser (3.1.2.0)
42
46
  ast (~> 2.4.1)
43
47
  pry (0.14.1)
44
48
  coderay (~> 1.1)
45
49
  method_source (~> 1.0)
46
- pry (0.14.1-java)
47
- coderay (~> 1.1)
48
- method_source (~> 1.0)
49
- spoon (~> 0.0)
50
- rack (2.2.3)
50
+ rack (2.2.3.1)
51
51
  rainbow (3.1.1)
52
52
  rake (13.0.6)
53
- regexp_parser (2.2.0)
53
+ rb-fsevent (0.11.1)
54
+ rb-inotify (0.10.1)
55
+ ffi (~> 1.0)
56
+ rbs (2.5.0)
57
+ regexp_parser (2.5.0)
54
58
  rexml (3.2.5)
55
- rspec (3.10.0)
56
- rspec-core (~> 3.10.0)
57
- rspec-expectations (~> 3.10.0)
58
- rspec-mocks (~> 3.10.0)
59
- rspec-core (3.10.1)
60
- rspec-support (~> 3.10.0)
61
- rspec-expectations (3.10.1)
59
+ rspec (3.11.0)
60
+ rspec-core (~> 3.11.0)
61
+ rspec-expectations (~> 3.11.0)
62
+ rspec-mocks (~> 3.11.0)
63
+ rspec-core (3.11.0)
64
+ rspec-support (~> 3.11.0)
65
+ rspec-expectations (3.11.0)
62
66
  diff-lcs (>= 1.2.0, < 2.0)
63
- rspec-support (~> 3.10.0)
64
- rspec-mocks (3.10.2)
67
+ rspec-support (~> 3.11.0)
68
+ rspec-mocks (3.11.1)
65
69
  diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.10.0)
67
- rspec-support (3.10.3)
68
- rubocop (1.23.0)
70
+ rspec-support (~> 3.11.0)
71
+ rspec-support (3.11.0)
72
+ rubocop (1.30.1)
69
73
  parallel (~> 1.10)
70
- parser (>= 3.0.0.0)
74
+ parser (>= 3.1.0.0)
71
75
  rainbow (>= 2.2.2, < 4.0)
72
76
  regexp_parser (>= 1.8, < 3.0)
73
- rexml
74
- rubocop-ast (>= 1.12.0, < 2.0)
77
+ rexml (>= 3.2.5, < 4.0)
78
+ rubocop-ast (>= 1.18.0, < 2.0)
75
79
  ruby-progressbar (~> 1.7)
76
80
  unicode-display_width (>= 1.4.0, < 3.0)
77
- rubocop-ast (1.15.1)
78
- parser (>= 3.0.1.1)
79
- rubocop-performance (1.12.0)
81
+ rubocop-ast (1.18.0)
82
+ parser (>= 3.1.1.0)
83
+ rubocop-performance (1.14.2)
80
84
  rubocop (>= 1.7.0, < 2.0)
81
85
  rubocop-ast (>= 0.4.0)
82
- rubocop-rails (2.12.4)
86
+ rubocop-rails (2.15.0)
83
87
  activesupport (>= 4.2.0)
84
88
  rack (>= 1.1)
85
89
  rubocop (>= 1.7.0, < 2.0)
86
90
  rubocop-rake (0.6.0)
87
91
  rubocop (~> 1.0)
88
- rubocop-rspec (2.6.0)
92
+ rubocop-rspec (2.11.1)
89
93
  rubocop (~> 1.19)
90
94
  ruby-progressbar (1.11.0)
91
- sequel (5.52.0)
95
+ sequel (5.57.0)
92
96
  simplecov (0.21.2)
93
97
  docile (~> 1.1)
94
98
  simplecov-html (~> 0.11)
95
99
  simplecov_json_formatter (~> 0.1)
96
100
  simplecov-html (0.12.3)
97
101
  simplecov-lcov (0.8.0)
98
- simplecov_json_formatter (0.1.3)
99
- spoon (0.0.6)
100
- ffi
102
+ simplecov_json_formatter (0.1.4)
103
+ steep (1.0.0)
104
+ activesupport (>= 5.1)
105
+ language_server-protocol (>= 3.15, < 4.0)
106
+ listen (~> 3.0)
107
+ parallel (>= 1.0.0)
108
+ parser (>= 3.0)
109
+ rainbow (>= 2.2.2, < 4.0)
110
+ rbs (>= 2.3.2)
111
+ terminal-table (>= 2, < 4)
101
112
  symbiont-ruby (0.7.0)
113
+ terminal-table (3.0.2)
114
+ unicode-display_width (>= 1.1.1, < 3)
102
115
  thor (1.2.1)
103
116
  tzinfo (2.0.4)
104
117
  concurrent-ruby (~> 1.0)
105
- umbrellio-sequel-plugins (0.5.1.27)
118
+ umbrellio-sequel-plugins (0.6.0.36)
106
119
  sequel
107
120
  symbiont-ruby
108
121
  unicode-display_width (2.1.0)
109
- zeitwerk (2.5.3)
122
+ zeitwerk (2.6.0)
110
123
 
111
124
  PLATFORMS
112
- ruby
113
- universal-java-1.8
125
+ arm64-darwin-21
114
126
 
115
127
  DEPENDENCIES
116
128
  activesupport (~> 6.0)
117
- armitage-rubocop (~> 1.7)
118
- bundler
119
- bundler-audit
120
- ci-helper
121
- pry
129
+ armitage-rubocop (~> 1.30)
130
+ bundler (>= 1)
131
+ bundler-audit (~> 0.9)
132
+ ci-helper (~> 0.5)
133
+ pry (~> 0.14)
122
134
  qonfig!
123
135
  rake (>= 13)
124
- rspec (~> 3.10)
125
- simplecov (~> 0.20)
126
- simplecov-lcov
136
+ rspec (~> 3.11)
137
+ simplecov (~> 0.21)
138
+ simplecov-lcov (~> 0.8)
139
+ steep (~> 1.0)
127
140
 
128
141
  BUNDLED WITH
129
- 2.3.3
142
+ 2.3.15
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Qonfig &middot; [![Gem Version](https://badge.fury.io/rb/qonfig.svg)](https://badge.fury.io/rb/qonfig) [![Build Status](https://travis-ci.org/0exp/qonfig.svg?branch=master)](https://travis-ci.org/0exp/qonfig) [![Coverage Status](https://coveralls.io/repos/github/0exp/qonfig/badge.svg?branch=master)](https://coveralls.io/github/0exp/qonfig?branch=master)
2
2
 
3
3
  Config. Defined as a class. Used as an instance. Support for inheritance and composition.
4
- Lazy instantiation. Thread-safe. Command-style DSL. Validation layer. **DOT-NOTATION**! And pretty-print :) Support for **YAML**, **TOML**, **JSON**, **\_\_END\_\_**, **ENV**.
5
- Extremely simple to define. Extremely simple to use. That's all? **NOT** :)
4
+ Lazy instantiation. Thread-safe. Command-style DSL. Validation layer. **Dot-notation**) And pretty-print :) Support for **YAML**, **TOML**, **JSON**, **\_\_END\_\_**, **ENV**.
5
+ Extremely simple to define. Extremely simple to use. That's all? **Not** :)
6
6
 
7
7
  ## Installation
8
8
 
@@ -3310,6 +3310,8 @@ Qonfig.plugin(:vault)
3310
3310
 
3311
3311
  ## Roadmap
3312
3312
 
3313
+ - **General**:
3314
+ - documentation rework;
3313
3315
  - **Major**:
3314
3316
  - support for Rails-like secrets;
3315
3317
  - support for persistent data storages (we want to store configs in multiple databases and files);
@@ -3323,6 +3325,7 @@ Qonfig.plugin(:vault)
3323
3325
  - External validation class with an importing api for better custom validations;
3324
3326
  - Setting value changement trace (in `anyway_config` manner);
3325
3327
  - Instantiation and reloading callbacks;
3328
+ - File geneartors (.rb-files with a pre-filled code (and (maybe) with a pre-generated yaml/json/etc files));
3326
3329
 
3327
3330
  ## Build
3328
3331
 
@@ -1,123 +1,149 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- qonfig (0.25.0)
4
+ qonfig (0.27.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activesupport (6.1.0)
9
+ activesupport (7.0.3)
10
10
  concurrent-ruby (~> 1.0, >= 1.0.2)
11
11
  i18n (>= 1.6, < 2)
12
12
  minitest (>= 5.1)
13
13
  tzinfo (~> 2.0)
14
- zeitwerk (~> 2.3)
15
- armitage-rubocop (1.7.0.1)
16
- rubocop (= 1.7.0)
17
- rubocop-performance (= 1.9.1)
18
- rubocop-rails (= 2.9.1)
19
- rubocop-rake (= 0.5.1)
20
- rubocop-rspec (= 2.1.0)
21
- ast (2.4.1)
22
- aws-eventstream (1.1.0)
23
- aws-sigv4 (1.2.2)
14
+ armitage-rubocop (1.30.1.1)
15
+ rubocop (= 1.30.1)
16
+ rubocop-performance (= 1.14.2)
17
+ rubocop-rails (= 2.15.0)
18
+ rubocop-rake (= 0.6.0)
19
+ rubocop-rspec (= 2.11.1)
20
+ ast (2.4.2)
21
+ aws-eventstream (1.2.0)
22
+ aws-sigv4 (1.5.0)
24
23
  aws-eventstream (~> 1, >= 1.0.2)
24
+ bundler-audit (0.9.1)
25
+ bundler (>= 1.2.0, < 3)
26
+ thor (~> 1.0)
27
+ ci-helper (0.5.0)
28
+ colorize (~> 0.8)
29
+ dry-inflector (~> 0.2)
30
+ umbrellio-sequel-plugins (~> 0.4)
25
31
  citrus (3.0.2)
26
32
  coderay (1.1.3)
27
- concurrent-ruby (1.1.7)
28
- diff-lcs (1.4.4)
29
- docile (1.3.5)
30
- ffi (1.14.2-java)
31
- i18n (1.8.5)
33
+ colorize (0.8.1)
34
+ concurrent-ruby (1.1.10)
35
+ diff-lcs (1.5.0)
36
+ docile (1.4.0)
37
+ dry-inflector (0.2.1)
38
+ ffi (1.15.5)
39
+ i18n (1.10.0)
32
40
  concurrent-ruby (~> 1.0)
41
+ language_server-protocol (3.16.0.3)
42
+ listen (3.7.1)
43
+ rb-fsevent (~> 0.10, >= 0.10.3)
44
+ rb-inotify (~> 0.9, >= 0.9.10)
33
45
  method_source (1.0.0)
34
- minitest (5.14.2)
35
- parallel (1.20.1)
36
- parser (3.0.0.0)
46
+ minitest (5.16.0)
47
+ parallel (1.22.1)
48
+ parser (3.1.2.0)
37
49
  ast (~> 2.4.1)
38
- pry (0.13.1)
50
+ pry (0.14.1)
39
51
  coderay (~> 1.1)
40
52
  method_source (~> 1.0)
41
- pry (0.13.1-java)
42
- coderay (~> 1.1)
43
- method_source (~> 1.0)
44
- spoon (~> 0.0)
45
- rack (2.2.3)
46
- rainbow (3.0.0)
47
- rake (13.0.3)
48
- regexp_parser (2.0.2)
49
- rexml (3.2.4)
50
- rspec (3.10.0)
51
- rspec-core (~> 3.10.0)
52
- rspec-expectations (~> 3.10.0)
53
- rspec-mocks (~> 3.10.0)
54
- rspec-core (3.10.0)
55
- rspec-support (~> 3.10.0)
56
- rspec-expectations (3.10.0)
53
+ rack (2.2.3.1)
54
+ rainbow (3.1.1)
55
+ rake (13.0.6)
56
+ rb-fsevent (0.11.1)
57
+ rb-inotify (0.10.1)
58
+ ffi (~> 1.0)
59
+ rbs (2.5.0)
60
+ regexp_parser (2.5.0)
61
+ rexml (3.2.5)
62
+ rspec (3.11.0)
63
+ rspec-core (~> 3.11.0)
64
+ rspec-expectations (~> 3.11.0)
65
+ rspec-mocks (~> 3.11.0)
66
+ rspec-core (3.11.0)
67
+ rspec-support (~> 3.11.0)
68
+ rspec-expectations (3.11.0)
57
69
  diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.10.0)
59
- rspec-mocks (3.10.0)
70
+ rspec-support (~> 3.11.0)
71
+ rspec-mocks (3.11.1)
60
72
  diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.10.0)
62
- rspec-support (3.10.0)
63
- rubocop (1.7.0)
73
+ rspec-support (~> 3.11.0)
74
+ rspec-support (3.11.0)
75
+ rubocop (1.30.1)
64
76
  parallel (~> 1.10)
65
- parser (>= 2.7.1.5)
77
+ parser (>= 3.1.0.0)
66
78
  rainbow (>= 2.2.2, < 4.0)
67
79
  regexp_parser (>= 1.8, < 3.0)
68
- rexml
69
- rubocop-ast (>= 1.2.0, < 2.0)
80
+ rexml (>= 3.2.5, < 4.0)
81
+ rubocop-ast (>= 1.18.0, < 2.0)
70
82
  ruby-progressbar (~> 1.7)
71
- unicode-display_width (>= 1.4.0, < 2.0)
72
- rubocop-ast (1.3.0)
73
- parser (>= 2.7.1.5)
74
- rubocop-performance (1.9.1)
75
- rubocop (>= 0.90.0, < 2.0)
83
+ unicode-display_width (>= 1.4.0, < 3.0)
84
+ rubocop-ast (1.18.0)
85
+ parser (>= 3.1.1.0)
86
+ rubocop-performance (1.14.2)
87
+ rubocop (>= 1.7.0, < 2.0)
76
88
  rubocop-ast (>= 0.4.0)
77
- rubocop-rails (2.9.1)
89
+ rubocop-rails (2.15.0)
78
90
  activesupport (>= 4.2.0)
79
91
  rack (>= 1.1)
80
- rubocop (>= 0.90.0, < 2.0)
81
- rubocop-rake (0.5.1)
82
- rubocop
83
- rubocop-rspec (2.1.0)
92
+ rubocop (>= 1.7.0, < 2.0)
93
+ rubocop-rake (0.6.0)
84
94
  rubocop (~> 1.0)
85
- rubocop-ast (>= 1.1.0)
86
- ruby-progressbar (1.10.1)
95
+ rubocop-rspec (2.11.1)
96
+ rubocop (~> 1.19)
97
+ ruby-progressbar (1.11.0)
98
+ sequel (5.57.0)
87
99
  simplecov (0.21.2)
88
100
  docile (~> 1.1)
89
101
  simplecov-html (~> 0.11)
90
102
  simplecov_json_formatter (~> 0.1)
91
103
  simplecov-html (0.12.3)
92
104
  simplecov-lcov (0.8.0)
93
- simplecov_json_formatter (0.1.2)
94
- spoon (0.0.6)
95
- ffi
96
- toml-rb (2.0.1)
105
+ simplecov_json_formatter (0.1.4)
106
+ steep (1.0.0)
107
+ activesupport (>= 5.1)
108
+ language_server-protocol (>= 3.15, < 4.0)
109
+ listen (~> 3.0)
110
+ parallel (>= 1.0.0)
111
+ parser (>= 3.0)
112
+ rainbow (>= 2.2.2, < 4.0)
113
+ rbs (>= 2.3.2)
114
+ terminal-table (>= 2, < 4)
115
+ symbiont-ruby (0.7.0)
116
+ terminal-table (3.0.2)
117
+ unicode-display_width (>= 1.1.1, < 3)
118
+ thor (1.2.1)
119
+ toml-rb (2.1.2)
97
120
  citrus (~> 3.0, > 3.0)
98
121
  tzinfo (2.0.4)
99
122
  concurrent-ruby (~> 1.0)
100
- unicode-display_width (1.7.0)
101
- vault (0.15.0)
123
+ umbrellio-sequel-plugins (0.6.0.36)
124
+ sequel
125
+ symbiont-ruby
126
+ unicode-display_width (2.1.0)
127
+ vault (0.17.0)
102
128
  aws-sigv4
103
- zeitwerk (2.4.2)
104
129
 
105
130
  PLATFORMS
106
- universal-java-1.8
107
- x86_64-darwin-19
108
- x86_64-linux
131
+ arm64-darwin-21
109
132
 
110
133
  DEPENDENCIES
111
- armitage-rubocop (~> 1.7)
112
- bundler
113
- pry
134
+ armitage-rubocop (~> 1.30)
135
+ bundler (>= 1)
136
+ bundler-audit (~> 0.9)
137
+ ci-helper (~> 0.5)
138
+ pry (~> 0.14)
114
139
  qonfig!
115
140
  rake (>= 13)
116
- rspec (~> 3.10)
117
- simplecov (~> 0.20)
118
- simplecov-lcov
141
+ rspec (~> 3.11)
142
+ simplecov (~> 0.21)
143
+ simplecov-lcov (~> 0.8)
144
+ steep (~> 1.0)
119
145
  toml-rb (>= 2)
120
146
  vault (>= 0.1)
121
147
 
122
148
  BUNDLED WITH
123
- 2.2.3
149
+ 2.3.15
@@ -1,113 +1,139 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- qonfig (0.25.0)
4
+ qonfig (0.27.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activesupport (6.1.0)
9
+ activesupport (7.0.3)
10
10
  concurrent-ruby (~> 1.0, >= 1.0.2)
11
11
  i18n (>= 1.6, < 2)
12
12
  minitest (>= 5.1)
13
13
  tzinfo (~> 2.0)
14
- zeitwerk (~> 2.3)
15
- armitage-rubocop (1.7.0.1)
16
- rubocop (= 1.7.0)
17
- rubocop-performance (= 1.9.1)
18
- rubocop-rails (= 2.9.1)
19
- rubocop-rake (= 0.5.1)
20
- rubocop-rspec (= 2.1.0)
21
- ast (2.4.1)
14
+ armitage-rubocop (1.30.1.1)
15
+ rubocop (= 1.30.1)
16
+ rubocop-performance (= 1.14.2)
17
+ rubocop-rails (= 2.15.0)
18
+ rubocop-rake (= 0.6.0)
19
+ rubocop-rspec (= 2.11.1)
20
+ ast (2.4.2)
21
+ bundler-audit (0.9.1)
22
+ bundler (>= 1.2.0, < 3)
23
+ thor (~> 1.0)
24
+ ci-helper (0.5.0)
25
+ colorize (~> 0.8)
26
+ dry-inflector (~> 0.2)
27
+ umbrellio-sequel-plugins (~> 0.4)
22
28
  coderay (1.1.3)
23
- concurrent-ruby (1.1.7)
24
- diff-lcs (1.4.4)
25
- docile (1.3.5)
26
- ffi (1.14.2-java)
27
- i18n (1.8.5)
29
+ colorize (0.8.1)
30
+ concurrent-ruby (1.1.10)
31
+ diff-lcs (1.5.0)
32
+ docile (1.4.0)
33
+ dry-inflector (0.2.1)
34
+ ffi (1.15.5)
35
+ i18n (1.10.0)
28
36
  concurrent-ruby (~> 1.0)
37
+ language_server-protocol (3.16.0.3)
38
+ listen (3.7.1)
39
+ rb-fsevent (~> 0.10, >= 0.10.3)
40
+ rb-inotify (~> 0.9, >= 0.9.10)
29
41
  method_source (1.0.0)
30
- minitest (5.14.2)
31
- parallel (1.20.1)
32
- parser (3.0.0.0)
42
+ minitest (5.16.0)
43
+ parallel (1.22.1)
44
+ parser (3.1.2.0)
33
45
  ast (~> 2.4.1)
34
- pry (0.13.1)
46
+ pry (0.14.1)
35
47
  coderay (~> 1.1)
36
48
  method_source (~> 1.0)
37
- pry (0.13.1-java)
38
- coderay (~> 1.1)
39
- method_source (~> 1.0)
40
- spoon (~> 0.0)
41
- rack (2.2.3)
42
- rainbow (3.0.0)
43
- rake (13.0.3)
44
- regexp_parser (2.0.2)
45
- rexml (3.2.4)
46
- rspec (3.10.0)
47
- rspec-core (~> 3.10.0)
48
- rspec-expectations (~> 3.10.0)
49
- rspec-mocks (~> 3.10.0)
50
- rspec-core (3.10.0)
51
- rspec-support (~> 3.10.0)
52
- rspec-expectations (3.10.0)
49
+ rack (2.2.3.1)
50
+ rainbow (3.1.1)
51
+ rake (13.0.6)
52
+ rb-fsevent (0.11.1)
53
+ rb-inotify (0.10.1)
54
+ ffi (~> 1.0)
55
+ rbs (2.5.0)
56
+ regexp_parser (2.5.0)
57
+ rexml (3.2.5)
58
+ rspec (3.11.0)
59
+ rspec-core (~> 3.11.0)
60
+ rspec-expectations (~> 3.11.0)
61
+ rspec-mocks (~> 3.11.0)
62
+ rspec-core (3.11.0)
63
+ rspec-support (~> 3.11.0)
64
+ rspec-expectations (3.11.0)
53
65
  diff-lcs (>= 1.2.0, < 2.0)
54
- rspec-support (~> 3.10.0)
55
- rspec-mocks (3.10.0)
66
+ rspec-support (~> 3.11.0)
67
+ rspec-mocks (3.11.1)
56
68
  diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.10.0)
58
- rspec-support (3.10.0)
59
- rubocop (1.7.0)
69
+ rspec-support (~> 3.11.0)
70
+ rspec-support (3.11.0)
71
+ rubocop (1.30.1)
60
72
  parallel (~> 1.10)
61
- parser (>= 2.7.1.5)
73
+ parser (>= 3.1.0.0)
62
74
  rainbow (>= 2.2.2, < 4.0)
63
75
  regexp_parser (>= 1.8, < 3.0)
64
- rexml
65
- rubocop-ast (>= 1.2.0, < 2.0)
76
+ rexml (>= 3.2.5, < 4.0)
77
+ rubocop-ast (>= 1.18.0, < 2.0)
66
78
  ruby-progressbar (~> 1.7)
67
- unicode-display_width (>= 1.4.0, < 2.0)
68
- rubocop-ast (1.3.0)
69
- parser (>= 2.7.1.5)
70
- rubocop-performance (1.9.1)
71
- rubocop (>= 0.90.0, < 2.0)
79
+ unicode-display_width (>= 1.4.0, < 3.0)
80
+ rubocop-ast (1.18.0)
81
+ parser (>= 3.1.1.0)
82
+ rubocop-performance (1.14.2)
83
+ rubocop (>= 1.7.0, < 2.0)
72
84
  rubocop-ast (>= 0.4.0)
73
- rubocop-rails (2.9.1)
85
+ rubocop-rails (2.15.0)
74
86
  activesupport (>= 4.2.0)
75
87
  rack (>= 1.1)
76
- rubocop (>= 0.90.0, < 2.0)
77
- rubocop-rake (0.5.1)
78
- rubocop
79
- rubocop-rspec (2.1.0)
88
+ rubocop (>= 1.7.0, < 2.0)
89
+ rubocop-rake (0.6.0)
80
90
  rubocop (~> 1.0)
81
- rubocop-ast (>= 1.1.0)
82
- ruby-progressbar (1.10.1)
91
+ rubocop-rspec (2.11.1)
92
+ rubocop (~> 1.19)
93
+ ruby-progressbar (1.11.0)
94
+ sequel (5.57.0)
83
95
  simplecov (0.21.2)
84
96
  docile (~> 1.1)
85
97
  simplecov-html (~> 0.11)
86
98
  simplecov_json_formatter (~> 0.1)
87
99
  simplecov-html (0.12.3)
88
100
  simplecov-lcov (0.8.0)
89
- simplecov_json_formatter (0.1.2)
90
- spoon (0.0.6)
91
- ffi
101
+ simplecov_json_formatter (0.1.4)
102
+ steep (1.0.0)
103
+ activesupport (>= 5.1)
104
+ language_server-protocol (>= 3.15, < 4.0)
105
+ listen (~> 3.0)
106
+ parallel (>= 1.0.0)
107
+ parser (>= 3.0)
108
+ rainbow (>= 2.2.2, < 4.0)
109
+ rbs (>= 2.3.2)
110
+ terminal-table (>= 2, < 4)
111
+ symbiont-ruby (0.7.0)
112
+ terminal-table (3.0.2)
113
+ unicode-display_width (>= 1.1.1, < 3)
114
+ thor (1.2.1)
92
115
  tzinfo (2.0.4)
93
116
  concurrent-ruby (~> 1.0)
94
- unicode-display_width (1.7.0)
95
- zeitwerk (2.4.2)
117
+ umbrellio-sequel-plugins (0.6.0.36)
118
+ sequel
119
+ symbiont-ruby
120
+ unicode-display_width (2.1.0)
96
121
 
97
122
  PLATFORMS
98
- universal-java-1.8
99
- x86_64-darwin-19
100
- x86_64-linux
123
+ arm64-darwin-21
101
124
 
102
125
  DEPENDENCIES
103
- armitage-rubocop (~> 1.7)
104
- bundler
105
- pry
126
+ armitage-rubocop (~> 1.30)
127
+ bundler (>= 1)
128
+ bundler-audit (~> 0.9)
129
+ ci-helper (~> 0.5)
130
+ pry (~> 0.14)
106
131
  qonfig!
107
132
  rake (>= 13)
108
- rspec (~> 3.10)
109
- simplecov (~> 0.20)
110
- simplecov-lcov
133
+ rspec (~> 3.11)
134
+ simplecov (~> 0.21)
135
+ simplecov-lcov (~> 0.8)
136
+ steep (~> 1.0)
111
137
 
112
138
  BUNDLED WITH
113
- 2.2.3
139
+ 2.3.15
@@ -50,6 +50,7 @@ end
50
50
  #
51
51
  # @api private
52
52
  # @since 0.12.0
53
+ # @version 0.28.0
53
54
  module TomlRB::Dumper::ObjectConverterFix
54
55
  private
55
56
 
@@ -57,14 +58,14 @@ module TomlRB::Dumper::ObjectConverterFix
57
58
  def dump_simple_pairs(simple_pairs)
58
59
  simple_pairs.each do |key, val|
59
60
  key = quote_key(key) unless bare_key? key
60
- # NOTE: our fix (original code: `@toml_str << "#{key} = #{to_toml(val)}\n"`)
61
+ # NOTE: our fix (original code: `@toml_str += "#{key} = #{to_toml(val)}\n"`)
61
62
  fixed_toml_value_append(key, val)
62
63
  end
63
64
  end
64
65
 
65
66
  # NOTE: our fix
66
67
  def fixed_toml_value_append(key, val)
67
- @toml_str << "#{key} = #{fixed_to_toml(val)}\n" unless val.nil?
68
+ @toml_str += "#{key} = #{fixed_to_toml(val)}\n" unless val.nil?
68
69
  end
69
70
 
70
71
  # NOTE our fix
@@ -5,5 +5,5 @@ module Qonfig
5
5
  #
6
6
  # @api public
7
7
  # @since 0.1.0
8
- VERSION = '0.27.0'
8
+ VERSION = '0.28.0'
9
9
  end
data/qonfig.gemspec CHANGED
@@ -27,14 +27,14 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.files = `git ls-files -z`.split("\x0")
29
29
 
30
- spec.add_development_dependency 'simplecov', '~> 0.20'
31
- spec.add_development_dependency 'rspec', '~> 3.10'
32
- spec.add_development_dependency 'armitage-rubocop', '~> 1.7'
33
-
34
- spec.add_development_dependency 'bundler'
35
- spec.add_development_dependency 'bundler-audit'
36
- spec.add_development_dependency 'ci-helper'
37
- spec.add_development_dependency 'pry'
38
- spec.add_development_dependency 'rake', '>= 13'
39
- spec.add_development_dependency 'simplecov-lcov'
30
+ spec.add_development_dependency 'simplecov', '~> 0.21'
31
+ spec.add_development_dependency 'rspec', '~> 3.11'
32
+ spec.add_development_dependency 'armitage-rubocop', '~> 1.30'
33
+ spec.add_development_dependency 'steep', '~> 1.0'
34
+ spec.add_development_dependency 'bundler', '>= 1'
35
+ spec.add_development_dependency 'bundler-audit', '~> 0.9'
36
+ spec.add_development_dependency 'ci-helper', '~> 0.5'
37
+ spec.add_development_dependency 'pry', '~> 0.14'
38
+ spec.add_development_dependency 'rake', '>= 13'
39
+ spec.add_development_dependency 'simplecov-lcov', '~> 0.8'
40
40
  end
@@ -57,7 +57,7 @@ describe 'Dot-notation' do
57
57
  specify '#subset' do
58
58
  expect(config.subset('kek', 'kek.frek')).to match(
59
59
  'kek' => {
60
- 'frek' => { 'jek' => { 'bek' => 123456 } },
60
+ 'frek' => { 'jek' => { 'bek' => 123_456 } },
61
61
  'pek' => { 'cheburek'=>'test' },
62
62
  'foo.bar' => 100_500
63
63
  },
@@ -15,7 +15,7 @@ describe '#expose_self => format: :dynamic' do
15
15
  expect(config.settings.prod_env.credentials.password).to eq('123')
16
16
  expect(config.settings.prod_env.credentials.enabled).to eq(true)
17
17
  expect(config.settings.prod_env.api).to eq('google.com')
18
- expect(config.settings.prod_env.ports).to eq([10001, 10002, 10003])
18
+ expect(config.settings.prod_env.ports).to eq([10_001, 10_002, 10_003])
19
19
 
20
20
  # NOTE: test env
21
21
  expect(config.settings.test_env.credentials.user).to eq('megaman')
@@ -23,7 +23,7 @@ describe '#expose_self => format: :json' do
23
23
  expect(config.settings.prod_env.credentials.password).to eq('123')
24
24
  expect(config.settings.prod_env.credentials.enabled).to eq(true)
25
25
  expect(config.settings.prod_env.api).to eq('google.com')
26
- expect(config.settings.prod_env.ports).to eq([10001, 10002, 10003])
26
+ expect(config.settings.prod_env.ports).to eq([10_001, 10_002, 10_003])
27
27
 
28
28
  # NOTE: test env
29
29
  expect(config.settings.test_env.credentials.user).to eq('megaman')
@@ -23,7 +23,7 @@ describe '#expose_self => format: :yaml' do
23
23
  expect(config.settings.prod_env.credentials.password).to eq('123')
24
24
  expect(config.settings.prod_env.credentials.enabled).to eq(true)
25
25
  expect(config.settings.prod_env.api).to eq('google.com')
26
- expect(config.settings.prod_env.ports).to eq([10001, 10002, 10003])
26
+ expect(config.settings.prod_env.ports).to eq([10_001, 10_002, 10_003])
27
27
 
28
28
  # NOTE: test env
29
29
  expect(config.settings.test_env.credentials.user).to eq('megaman')
@@ -55,7 +55,7 @@ describe 'Load from ENV' do
55
55
 
56
56
  config = EnvConfig.new
57
57
 
58
- # rubocop:disable Layout/LineLength, Naming/VariableNumber
58
+ # rubocop:disable Layout/LineLength
59
59
  expect(config[:default][:QONFIG_SPEC_TRUE_VALUE_V1]).to eq('true')
60
60
  expect(config[:default][:QONFIG_SPEC_TRUE_VALUE_V2]).to eq('t')
61
61
  expect(config[:default][:QONFIG_SPEC_TRUE_VALUE_V3]).to eq('TRUE')
@@ -169,7 +169,7 @@ describe 'Load from ENV' do
169
169
  expect(config[:all_in][:QUOTED_STRING_VALUE_V1]).to eq('test, please')
170
170
  expect(config[:all_in][:QUOTED_STRING_VALUE_V2]).to eq('please, test')
171
171
  expect { config[:all_in][:NON_QONFIG_SPEC_GENERIC_VALUE] }.to raise_error(Qonfig::UnknownSettingError)
172
- # rubocop:enable Layout/LineLength, Naming/VariableNumber
172
+ # rubocop:enable Layout/LineLength
173
173
  end
174
174
 
175
175
  specify 'incorrect definition' do
@@ -23,7 +23,7 @@ describe 'Plugins(toml): #expose_self => format: :toml', plugin: :toml do
23
23
  expect(config.settings.prod_env.credentials.password).to eq('123')
24
24
  expect(config.settings.prod_env.credentials.enabled).to eq(true)
25
25
  expect(config.settings.prod_env.api).to eq('google.com')
26
- expect(config.settings.prod_env.ports).to eq([10001, 10002, 10003])
26
+ expect(config.settings.prod_env.ports).to eq([10_001, 10_002, 10_003])
27
27
 
28
28
  # NOTE: test env
29
29
  expect(config.settings.test_env.credentials.user).to eq('megaman')
@@ -47,7 +47,7 @@ describe 'Validation' do
47
47
  # NOTE: incorrect name => error
48
48
  expect do
49
49
  Class.new(Qonfig::DataSet) do
50
- validate '*', 1923923
50
+ validate '*', 1_923_923
51
51
  end
52
52
  end.to raise_error(Qonfig::ValidatorArgumentError)
53
53
 
@@ -178,7 +178,7 @@ describe 'Validation' do
178
178
 
179
179
  specify 'validates invalid settings on instnation' do
180
180
  config_klass = Class.new(Qonfig::DataSet) do
181
- setting :telegraf_url, 12345 # NOTE: should be a string
181
+ setting :telegraf_url, 12_345 # NOTE: should be a string
182
182
  validate 'telegraf_url' do |value|
183
183
  value.is_a?(String)
184
184
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qonfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-12 00:00:00.000000000 Z
11
+ date: 2022-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov
@@ -16,98 +16,112 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.20'
19
+ version: '0.21'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.20'
26
+ version: '0.21'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.10'
33
+ version: '3.11'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.10'
40
+ version: '3.11'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: armitage-rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.7'
47
+ version: '1.30'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.7'
54
+ version: '1.30'
55
+ - !ruby/object:Gem::Dependency
56
+ name: steep
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - ">="
60
74
  - !ruby/object:Gem::Version
61
- version: '0'
75
+ version: '1'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - ">="
67
81
  - !ruby/object:Gem::Version
68
- version: '0'
82
+ version: '1'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: bundler-audit
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ">="
87
+ - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '0'
89
+ version: '0.9'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ">="
94
+ - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '0'
96
+ version: '0.9'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: ci-helper
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - ">="
101
+ - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '0'
103
+ version: '0.5'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - ">="
108
+ - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '0'
110
+ version: '0.5'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: pry
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - ">="
115
+ - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '0'
117
+ version: '0.14'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - ">="
122
+ - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '0'
124
+ version: '0.14'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rake
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -126,16 +140,16 @@ dependencies:
126
140
  name: simplecov-lcov
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - ">="
143
+ - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '0'
145
+ version: '0.8'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - ">="
150
+ - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '0'
152
+ version: '0.8'
139
153
  description: Config. Defined as a class. Used as an instance. Support for inheritance
140
154
  and composition. Lazy instantiation. Thread-safe. Command-style DSL. Validation
141
155
  layer. Support for YAML, TOML, JSON, __END__, ENV. Extremely simple to define. Extremely
@@ -397,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
397
411
  - !ruby/object:Gem::Version
398
412
  version: '0'
399
413
  requirements: []
400
- rubygems_version: 3.3.3
414
+ rubygems_version: 3.3.11
401
415
  signing_key:
402
416
  specification_version: 4
403
417
  summary: Config object