rb-konfig 0.1.6 → 0.1.7
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 +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +13 -11
- data/konfig.gemspec +1 -1
- data/lib/konfig/version.rb +1 -1
- data/lib/konfig/yaml_provider.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f4cba1810196911b7d728c19bfd5c357885c2bebd2ef27ca57bf3141e4c6873
|
|
4
|
+
data.tar.gz: e508f29b2667d2d4c037763c1f2136f25b840a6571b6b4fdfbf34cecb123a3ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58583b6ab5d5f01a817f1f87cccbad219f1e44a866b11df3235e0be1f71b2c299d9d0a44cfc90a3ee0930fc0cc9be69fef729ad8467592c06d259e539791b84a
|
|
7
|
+
data.tar.gz: 10e8ffa640955bffce182e6e13e2e382f0af729caa9170eb477a0233f539ecc2c8d75366a19cf39a52438d8ad0b68db54201b00151cb78ef7e776a649572147a
|
data/.ruby-version
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.2.2
|
|
2
2
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rb-konfig (0.1.
|
|
4
|
+
rb-konfig (0.1.6)
|
|
5
5
|
activesupport (>= 4)
|
|
6
6
|
dry-schema (~> 1.3)
|
|
7
|
-
thor (~> 0
|
|
7
|
+
thor (~> 1.0)
|
|
8
8
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activesupport (
|
|
12
|
+
activesupport (6.0.6.1)
|
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
14
|
i18n (>= 0.7, < 2)
|
|
15
15
|
minitest (~> 5.1)
|
|
16
16
|
tzinfo (~> 1.1)
|
|
17
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
|
17
18
|
ast (2.4.0)
|
|
18
19
|
byebug (11.0.1)
|
|
19
|
-
concurrent-ruby (1.1.
|
|
20
|
+
concurrent-ruby (1.1.6)
|
|
20
21
|
diff-lcs (1.3)
|
|
21
22
|
dry-configurable (0.8.3)
|
|
22
23
|
concurrent-ruby (~> 1.0)
|
|
@@ -50,15 +51,15 @@ GEM
|
|
|
50
51
|
dry-logic (~> 1.0, >= 1.0.2)
|
|
51
52
|
factory_bot (5.0.2)
|
|
52
53
|
activesupport (>= 4.2.0)
|
|
53
|
-
i18n (1.
|
|
54
|
+
i18n (1.8.2)
|
|
54
55
|
concurrent-ruby (~> 1.0)
|
|
55
56
|
jaro_winkler (1.5.3)
|
|
56
|
-
minitest (5.
|
|
57
|
+
minitest (5.20.0)
|
|
57
58
|
parallel (1.17.0)
|
|
58
59
|
parser (2.6.3.0)
|
|
59
60
|
ast (~> 2.4.0)
|
|
60
61
|
rainbow (3.0.0)
|
|
61
|
-
rake (
|
|
62
|
+
rake (13.0.1)
|
|
62
63
|
rspec (3.8.0)
|
|
63
64
|
rspec-core (~> 3.8.0)
|
|
64
65
|
rspec-expectations (~> 3.8.0)
|
|
@@ -83,11 +84,12 @@ GEM
|
|
|
83
84
|
rubocop (>= 0.71.0)
|
|
84
85
|
ruby-progressbar (1.10.1)
|
|
85
86
|
rufo (0.7.0)
|
|
86
|
-
thor (
|
|
87
|
+
thor (1.3.0)
|
|
87
88
|
thread_safe (0.3.6)
|
|
88
|
-
tzinfo (1.2.
|
|
89
|
+
tzinfo (1.2.7)
|
|
89
90
|
thread_safe (~> 0.1)
|
|
90
91
|
unicode-display_width (1.6.0)
|
|
92
|
+
zeitwerk (2.3.0)
|
|
91
93
|
|
|
92
94
|
PLATFORMS
|
|
93
95
|
ruby
|
|
@@ -96,7 +98,7 @@ DEPENDENCIES
|
|
|
96
98
|
bundler (~> 2.0)
|
|
97
99
|
byebug (~> 11.0)
|
|
98
100
|
factory_bot (~> 5.0)
|
|
99
|
-
rake (~>
|
|
101
|
+
rake (~> 13.0)
|
|
100
102
|
rb-konfig!
|
|
101
103
|
rspec (~> 3.8)
|
|
102
104
|
rubocop (~> 0.69)
|
|
@@ -104,4 +106,4 @@ DEPENDENCIES
|
|
|
104
106
|
rufo (~> 0.7)
|
|
105
107
|
|
|
106
108
|
BUNDLED WITH
|
|
107
|
-
2.
|
|
109
|
+
2.4.19
|
data/konfig.gemspec
CHANGED
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
|
29
29
|
spec.add_dependency "thor", "~> 1.0"
|
|
30
30
|
|
|
31
31
|
spec.add_development_dependency "bundler", "~> 2.0"
|
|
32
|
-
spec.add_development_dependency "rake", "~>
|
|
32
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
|
33
33
|
spec.add_development_dependency "factory_bot", "~> 5.0"
|
|
34
34
|
spec.add_development_dependency "rspec", "~> 3.8"
|
|
35
35
|
spec.add_development_dependency "rubocop", "~> 0.69"
|
data/lib/konfig/version.rb
CHANGED
data/lib/konfig/yaml_provider.rb
CHANGED
|
@@ -11,14 +11,14 @@ module Konfig
|
|
|
11
11
|
def initialize(workdir:, filenames: Konfig.configuration.default_config_files)
|
|
12
12
|
super(mode: :yaml, workdir: workdir)
|
|
13
13
|
@files = filenames.map { |f| File.join(workdir, f) }
|
|
14
|
-
raise FileNotFound, "none of the configuration files (#{@files}) found" if @files.all? { |f| !File.
|
|
14
|
+
raise FileNotFound, "none of the configuration files (#{@files}) found" if @files.all? { |f| !File.exist?(f) }
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def load(parse = true)
|
|
18
18
|
content = {}
|
|
19
19
|
@files.each do |f|
|
|
20
20
|
# since we've looked for file existence before, we can skip any that's missing
|
|
21
|
-
next if !File.
|
|
21
|
+
next if !File.exist?(f)
|
|
22
22
|
Konfig.configuration.logger.info "Loading #{f}"
|
|
23
23
|
file_content = IO.read(f)
|
|
24
24
|
raise FileError, "file #{f} is empty" if file_content.blank?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rb-konfig
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Khash Sajadi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -72,14 +72,14 @@ dependencies:
|
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
75
|
+
version: '13.0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
82
|
+
version: '13.0'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: factory_bot
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
219
219
|
- !ruby/object:Gem::Version
|
|
220
220
|
version: '0'
|
|
221
221
|
requirements: []
|
|
222
|
-
rubygems_version: 3.
|
|
222
|
+
rubygems_version: 3.4.19
|
|
223
223
|
signing_key:
|
|
224
224
|
specification_version: 4
|
|
225
225
|
summary: Konfig is a Kubernetes friendly Rails configuration gem
|