qonfig 0.29.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +48 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +10 -0
- data/Gemfile +0 -3
- data/Gemfile.lock +77 -98
- data/LICENSE.txt +1 -1
- data/README.md +3 -2
- data/gemfiles/with_external_deps.gemfile +2 -0
- data/gemfiles/with_external_deps.gemfile.lock +84 -99
- data/gemfiles/without_external_deps.gemfile.lock +78 -95
- data/lib/qonfig/commands/definition/load_from_env/value_converter.rb +6 -6
- data/lib/qonfig/commands/instantiation/values_file.rb +4 -6
- data/lib/qonfig/imports/direct_key.rb +4 -4
- data/lib/qonfig/imports/mappings.rb +4 -4
- data/lib/qonfig/plugins/pretty_print/requirements.rb +1 -1
- data/lib/qonfig/plugins/toml/loaders/dynamic.rb +1 -1
- data/lib/qonfig/plugins/toml/loaders.rb +1 -1
- data/lib/qonfig/plugins.rb +2 -4
- data/lib/qonfig/settings.rb +5 -7
- data/lib/qonfig/uploaders/yaml.rb +1 -1
- data/lib/qonfig/validation/building/instance_builder/attribute_consistency.rb +2 -2
- data/lib/qonfig/version.rb +1 -1
- data/lib/qonfig.rb +1 -0
- data/qonfig.gemspec +8 -8
- data/spec/features/config_definition_and_representation_spec.rb +7 -7
- data/spec/features/freeze_state_spec.rb +10 -10
- data/spec/features/plugins/pretty_print_spec.rb +15 -15
- data/spec/features/plugins/toml/save_to_toml_spec.rb +1 -1
- data/spec/features/plugins/vault/expose_vault_spec.rb +1 -1
- data/spec/features/save_to_file/save_to_json_spec.rb +2 -4
- metadata +36 -45
- data/.github/workflows/test.yml +0 -62
- data/sig/.keep +0 -0
@@ -104,7 +104,7 @@ describe 'Plugins(vault): expose vault', plugin: :vault do
|
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
-
let(:secret_data) {
|
107
|
+
let(:secret_data) { {} }
|
108
108
|
|
109
109
|
specify "doesn't fail and uses empty config" do
|
110
110
|
expect(Vault.logical).to receive(:read).with('kv/data/env_key').and_return(returned_data)
|
@@ -112,8 +112,7 @@ describe 'Save to .json (JSON)' do
|
|
112
112
|
{
|
113
113
|
"true_bollean": true,
|
114
114
|
"false_boolean": false,
|
115
|
-
"empty_object": {
|
116
|
-
},
|
115
|
+
"empty_object": {},
|
117
116
|
"filled_object": {
|
118
117
|
"a": 1,
|
119
118
|
"b": null,
|
@@ -122,8 +121,7 @@ describe 'Save to .json (JSON)' do
|
|
122
121
|
"e": false
|
123
122
|
},
|
124
123
|
"null_data": null,
|
125
|
-
"collection": [ "1", 2, true, false, null, [], {
|
126
|
-
}]
|
124
|
+
"collection": [ "1", 2, true, false, null, [], {}]
|
127
125
|
}
|
128
126
|
JSON
|
129
127
|
end
|
metadata
CHANGED
@@ -1,127 +1,119 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qonfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.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: 2024-
|
11
|
+
date: 2024-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: base64
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
20
|
-
type: :
|
19
|
+
version: '0.2'
|
20
|
+
type: :runtime
|
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.
|
26
|
+
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: simplecov
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0.22'
|
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: '
|
40
|
+
version: '0.22'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.2'
|
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: '
|
54
|
+
version: '3.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: armitage-rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.59'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: bundler
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1'
|
68
|
+
version: '1.59'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
70
|
+
name: activesupport
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
75
|
+
version: '6'
|
76
|
+
- - "<"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '8'
|
90
79
|
type: :development
|
91
80
|
prerelease: false
|
92
81
|
version_requirements: !ruby/object:Gem::Requirement
|
93
82
|
requirements:
|
94
83
|
- - "~>"
|
95
84
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
85
|
+
version: '6'
|
86
|
+
- - "<"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '8'
|
97
89
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
90
|
+
name: bundler
|
99
91
|
requirement: !ruby/object:Gem::Requirement
|
100
92
|
requirements:
|
101
|
-
- - "
|
93
|
+
- - ">="
|
102
94
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
95
|
+
version: '1'
|
104
96
|
type: :development
|
105
97
|
prerelease: false
|
106
98
|
version_requirements: !ruby/object:Gem::Requirement
|
107
99
|
requirements:
|
108
|
-
- - "
|
100
|
+
- - ">="
|
109
101
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
102
|
+
version: '1'
|
111
103
|
- !ruby/object:Gem::Dependency
|
112
104
|
name: pry
|
113
105
|
requirement: !ruby/object:Gem::Requirement
|
114
106
|
requirements:
|
115
107
|
- - "~>"
|
116
108
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
109
|
+
version: '0.15'
|
118
110
|
type: :development
|
119
111
|
prerelease: false
|
120
112
|
version_requirements: !ruby/object:Gem::Requirement
|
121
113
|
requirements:
|
122
114
|
- - "~>"
|
123
115
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0.
|
116
|
+
version: '0.15'
|
125
117
|
- !ruby/object:Gem::Dependency
|
126
118
|
name: rake
|
127
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,7 +152,7 @@ executables: []
|
|
160
152
|
extensions: []
|
161
153
|
extra_rdoc_files: []
|
162
154
|
files:
|
163
|
-
- ".github/workflows/
|
155
|
+
- ".github/workflows/build.yml"
|
164
156
|
- ".gitignore"
|
165
157
|
- ".jrubyrc"
|
166
158
|
- ".rspec"
|
@@ -278,7 +270,6 @@ files:
|
|
278
270
|
- lib/qonfig/validation/validators/proc_based.rb
|
279
271
|
- lib/qonfig/version.rb
|
280
272
|
- qonfig.gemspec
|
281
|
-
- sig/.keep
|
282
273
|
- spec/artifacts/.keep
|
283
274
|
- spec/features/clear_options_spec.rb
|
284
275
|
- spec/features/compacted_config_spec.rb
|
@@ -416,14 +407,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
416
407
|
requirements:
|
417
408
|
- - ">="
|
418
409
|
- !ruby/object:Gem::Version
|
419
|
-
version:
|
410
|
+
version: '3.1'
|
420
411
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
421
412
|
requirements:
|
422
413
|
- - ">="
|
423
414
|
- !ruby/object:Gem::Version
|
424
415
|
version: '0'
|
425
416
|
requirements: []
|
426
|
-
rubygems_version: 3.5.
|
417
|
+
rubygems_version: 3.5.23
|
427
418
|
signing_key:
|
428
419
|
specification_version: 4
|
429
420
|
summary: Config object
|
data/.github/workflows/test.yml
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
name: Test
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
4
|
-
|
5
|
-
env:
|
6
|
-
FULL_COVERAGE_CHECK: true
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
full-check:
|
10
|
-
runs-on: ubuntu-latest
|
11
|
-
|
12
|
-
# We want to run on external PRs, but not on our own internal PRs as they'll be run on push event
|
13
|
-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != '0exp/qonfig'
|
14
|
-
|
15
|
-
steps:
|
16
|
-
- uses: actions/checkout@v2
|
17
|
-
- uses: ruby/setup-ruby@v1
|
18
|
-
with:
|
19
|
-
ruby-version: 3
|
20
|
-
bundler-cache: true
|
21
|
-
- name: Run Linter
|
22
|
-
run: bundle exec ci-helper RubocopLint
|
23
|
-
- name: Check missed spec suffixes
|
24
|
-
run: bundle exec ci-helper CheckSpecSuffixes --extra-paths spec/*.rb --ignored-paths spec/*_helper.rb spec/**/*_examples.rb
|
25
|
-
- name: Run specs
|
26
|
-
run: bundle exec ci-helper RunSpecs
|
27
|
-
- name: Audit
|
28
|
-
run: bundle exec ci-helper BundlerAudit
|
29
|
-
- name: Coveralls
|
30
|
-
uses: coverallsapp/github-action@master
|
31
|
-
with:
|
32
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
33
|
-
specs:
|
34
|
-
runs-on: ubuntu-latest
|
35
|
-
continue-on-error: ${{ matrix.experimental }}
|
36
|
-
|
37
|
-
env:
|
38
|
-
FULL_COVERAGE_CHECK: false
|
39
|
-
|
40
|
-
# We want to run on external PRs, but not on our own internal PRs as they'll be run on push event
|
41
|
-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != '0exp/qonfig'
|
42
|
-
|
43
|
-
strategy:
|
44
|
-
fail-fast: false
|
45
|
-
matrix:
|
46
|
-
ruby: ["2.6", "2.7", "3.0", "3.1"]
|
47
|
-
experimental: [false]
|
48
|
-
include:
|
49
|
-
- ruby: head
|
50
|
-
experimental: true
|
51
|
-
- ruby: jruby
|
52
|
-
experimental: true
|
53
|
-
|
54
|
-
|
55
|
-
steps:
|
56
|
-
- uses: actions/checkout@v2
|
57
|
-
- uses: ruby/setup-ruby@v1
|
58
|
-
with:
|
59
|
-
ruby-version: ${{ matrix.ruby }}
|
60
|
-
bundler-cache: true
|
61
|
-
- name: Run specs
|
62
|
-
run: bundle exec ci-helper RunSpecs
|
data/sig/.keep
DELETED
File without changes
|