nitro_config 0.2.0 → 0.3.0

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.
@@ -0,0 +1,327 @@
1
+ PATH
2
+ remote: ../../rubocop-powerhome
3
+ specs:
4
+ rubocop-powerhome (0.7.0)
5
+ rubocop (= 1.82.1)
6
+ rubocop-performance
7
+ rubocop-rails
8
+ rubocop-rake
9
+ rubocop-rspec
10
+
11
+ PATH
12
+ remote: ..
13
+ specs:
14
+ nitro_config (0.3.0)
15
+ activesupport (>= 7.1, < 8.2)
16
+
17
+ GEM
18
+ remote: https://rubygems.org/
19
+ specs:
20
+ action_text-trix (2.1.19)
21
+ railties
22
+ actioncable (8.1.3)
23
+ actionpack (= 8.1.3)
24
+ activesupport (= 8.1.3)
25
+ nio4r (~> 2.0)
26
+ websocket-driver (>= 0.6.1)
27
+ zeitwerk (~> 2.6)
28
+ actionmailbox (8.1.3)
29
+ actionpack (= 8.1.3)
30
+ activejob (= 8.1.3)
31
+ activerecord (= 8.1.3)
32
+ activestorage (= 8.1.3)
33
+ activesupport (= 8.1.3)
34
+ mail (>= 2.8.0)
35
+ actionmailer (8.1.3)
36
+ actionpack (= 8.1.3)
37
+ actionview (= 8.1.3)
38
+ activejob (= 8.1.3)
39
+ activesupport (= 8.1.3)
40
+ mail (>= 2.8.0)
41
+ rails-dom-testing (~> 2.2)
42
+ actionpack (8.1.3)
43
+ actionview (= 8.1.3)
44
+ activesupport (= 8.1.3)
45
+ nokogiri (>= 1.8.5)
46
+ rack (>= 2.2.4)
47
+ rack-session (>= 1.0.1)
48
+ rack-test (>= 0.6.3)
49
+ rails-dom-testing (~> 2.2)
50
+ rails-html-sanitizer (~> 1.6)
51
+ useragent (~> 0.16)
52
+ actiontext (8.1.3)
53
+ action_text-trix (~> 2.1.15)
54
+ actionpack (= 8.1.3)
55
+ activerecord (= 8.1.3)
56
+ activestorage (= 8.1.3)
57
+ activesupport (= 8.1.3)
58
+ globalid (>= 0.6.0)
59
+ nokogiri (>= 1.8.5)
60
+ actionview (8.1.3)
61
+ activesupport (= 8.1.3)
62
+ builder (~> 3.1)
63
+ erubi (~> 1.11)
64
+ rails-dom-testing (~> 2.2)
65
+ rails-html-sanitizer (~> 1.6)
66
+ activejob (8.1.3)
67
+ activesupport (= 8.1.3)
68
+ globalid (>= 0.3.6)
69
+ activemodel (8.1.3)
70
+ activesupport (= 8.1.3)
71
+ activerecord (8.1.3)
72
+ activemodel (= 8.1.3)
73
+ activesupport (= 8.1.3)
74
+ timeout (>= 0.4.0)
75
+ activestorage (8.1.3)
76
+ actionpack (= 8.1.3)
77
+ activejob (= 8.1.3)
78
+ activerecord (= 8.1.3)
79
+ activesupport (= 8.1.3)
80
+ marcel (~> 1.0)
81
+ activesupport (8.1.3)
82
+ base64
83
+ bigdecimal
84
+ concurrent-ruby (~> 1.0, >= 1.3.1)
85
+ connection_pool (>= 2.2.5)
86
+ drb
87
+ i18n (>= 1.6, < 2)
88
+ json
89
+ logger (>= 1.4.2)
90
+ minitest (>= 5.1)
91
+ securerandom (>= 0.3)
92
+ tzinfo (~> 2.0, >= 2.0.5)
93
+ uri (>= 0.13.1)
94
+ appraisal (2.5.0)
95
+ bundler
96
+ rake
97
+ thor (>= 0.14.0)
98
+ ast (2.4.3)
99
+ base64 (0.3.0)
100
+ bigdecimal (4.1.2)
101
+ builder (3.3.0)
102
+ combustion (1.5.0)
103
+ activesupport (>= 3.0.0)
104
+ railties (>= 3.0.0)
105
+ thor (>= 0.14.6)
106
+ concurrent-ruby (1.3.6)
107
+ connection_pool (3.0.2)
108
+ crass (1.0.6)
109
+ csv (3.3.5)
110
+ date (3.5.1)
111
+ diff-lcs (1.6.2)
112
+ drb (2.2.3)
113
+ erb (6.0.4)
114
+ erubi (1.13.1)
115
+ globalid (1.3.0)
116
+ activesupport (>= 6.1)
117
+ i18n (1.14.8)
118
+ concurrent-ruby (~> 1.0)
119
+ io-console (0.8.2)
120
+ irb (1.18.0)
121
+ pp (>= 0.6.0)
122
+ prism (>= 1.3.0)
123
+ rdoc (>= 4.0.0)
124
+ reline (>= 0.4.2)
125
+ json (2.19.5)
126
+ language_server-protocol (3.17.0.5)
127
+ license_finder (7.2.1)
128
+ bundler
129
+ csv (~> 3.2)
130
+ rubyzip (>= 1, < 3)
131
+ thor (~> 1.2)
132
+ tomlrb (>= 1.3, < 2.1)
133
+ with_env (= 1.1.0)
134
+ xml-simple (~> 1.1.9)
135
+ lint_roller (1.1.0)
136
+ logger (1.7.0)
137
+ loofah (2.25.1)
138
+ crass (~> 1.0.2)
139
+ nokogiri (>= 1.12.0)
140
+ mail (2.9.0)
141
+ logger
142
+ mini_mime (>= 0.1.1)
143
+ net-imap
144
+ net-pop
145
+ net-smtp
146
+ marcel (1.1.0)
147
+ mini_mime (1.1.5)
148
+ minitest (6.0.6)
149
+ drb (~> 2.0)
150
+ prism (~> 1.5)
151
+ net-imap (0.6.4)
152
+ date
153
+ net-protocol
154
+ net-pop (0.1.2)
155
+ net-protocol
156
+ net-protocol (0.2.2)
157
+ timeout
158
+ net-smtp (0.5.1)
159
+ net-protocol
160
+ nio4r (2.7.5)
161
+ nokogiri (1.19.3-aarch64-linux-gnu)
162
+ racc (~> 1.4)
163
+ nokogiri (1.19.3-aarch64-linux-musl)
164
+ racc (~> 1.4)
165
+ nokogiri (1.19.3-arm-linux-gnu)
166
+ racc (~> 1.4)
167
+ nokogiri (1.19.3-arm-linux-musl)
168
+ racc (~> 1.4)
169
+ nokogiri (1.19.3-arm64-darwin)
170
+ racc (~> 1.4)
171
+ nokogiri (1.19.3-x86_64-darwin)
172
+ racc (~> 1.4)
173
+ nokogiri (1.19.3-x86_64-linux-gnu)
174
+ racc (~> 1.4)
175
+ nokogiri (1.19.3-x86_64-linux-musl)
176
+ racc (~> 1.4)
177
+ parallel (1.28.0)
178
+ parser (3.3.11.1)
179
+ ast (~> 2.4.1)
180
+ racc
181
+ pp (0.6.3)
182
+ prettyprint
183
+ prettyprint (0.2.0)
184
+ prism (1.9.0)
185
+ psych (5.3.1)
186
+ date
187
+ stringio
188
+ racc (1.8.1)
189
+ rack (3.2.6)
190
+ rack-session (2.1.2)
191
+ base64 (>= 0.1.0)
192
+ rack (>= 3.0.0)
193
+ rack-test (2.2.0)
194
+ rack (>= 1.3)
195
+ rackup (2.3.1)
196
+ rack (>= 3)
197
+ rails (8.1.3)
198
+ actioncable (= 8.1.3)
199
+ actionmailbox (= 8.1.3)
200
+ actionmailer (= 8.1.3)
201
+ actionpack (= 8.1.3)
202
+ actiontext (= 8.1.3)
203
+ actionview (= 8.1.3)
204
+ activejob (= 8.1.3)
205
+ activemodel (= 8.1.3)
206
+ activerecord (= 8.1.3)
207
+ activestorage (= 8.1.3)
208
+ activesupport (= 8.1.3)
209
+ bundler (>= 1.15.0)
210
+ railties (= 8.1.3)
211
+ rails-dom-testing (2.3.0)
212
+ activesupport (>= 5.0.0)
213
+ minitest
214
+ nokogiri (>= 1.6)
215
+ rails-html-sanitizer (1.7.0)
216
+ loofah (~> 2.25)
217
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
218
+ railties (8.1.3)
219
+ actionpack (= 8.1.3)
220
+ activesupport (= 8.1.3)
221
+ irb (~> 1.13)
222
+ rackup (>= 1.0.0)
223
+ rake (>= 12.2)
224
+ thor (~> 1.0, >= 1.2.2)
225
+ tsort (>= 0.2)
226
+ zeitwerk (~> 2.6)
227
+ rainbow (3.1.1)
228
+ rake (13.4.2)
229
+ rdoc (7.2.0)
230
+ erb
231
+ psych (>= 4.0.0)
232
+ tsort
233
+ regexp_parser (2.12.0)
234
+ reline (0.6.3)
235
+ io-console (~> 0.5)
236
+ rexml (3.4.4)
237
+ rspec (3.13.2)
238
+ rspec-core (~> 3.13.0)
239
+ rspec-expectations (~> 3.13.0)
240
+ rspec-mocks (~> 3.13.0)
241
+ rspec-core (3.13.6)
242
+ rspec-support (~> 3.13.0)
243
+ rspec-expectations (3.13.5)
244
+ diff-lcs (>= 1.2.0, < 2.0)
245
+ rspec-support (~> 3.13.0)
246
+ rspec-mocks (3.13.8)
247
+ diff-lcs (>= 1.2.0, < 2.0)
248
+ rspec-support (~> 3.13.0)
249
+ rspec-support (3.13.7)
250
+ rubocop (1.82.1)
251
+ json (~> 2.3)
252
+ language_server-protocol (~> 3.17.0.2)
253
+ lint_roller (~> 1.1.0)
254
+ parallel (~> 1.10)
255
+ parser (>= 3.3.0.2)
256
+ rainbow (>= 2.2.2, < 4.0)
257
+ regexp_parser (>= 2.9.3, < 3.0)
258
+ rubocop-ast (>= 1.48.0, < 2.0)
259
+ ruby-progressbar (~> 1.7)
260
+ unicode-display_width (>= 2.4.0, < 4.0)
261
+ rubocop-ast (1.49.1)
262
+ parser (>= 3.3.7.2)
263
+ prism (~> 1.7)
264
+ rubocop-performance (1.26.1)
265
+ lint_roller (~> 1.1)
266
+ rubocop (>= 1.75.0, < 2.0)
267
+ rubocop-ast (>= 1.47.1, < 2.0)
268
+ rubocop-rails (2.35.0)
269
+ activesupport (>= 4.2.0)
270
+ lint_roller (~> 1.1)
271
+ rack (>= 1.1)
272
+ rubocop (>= 1.75.0, < 2.0)
273
+ rubocop-ast (>= 1.44.0, < 2.0)
274
+ rubocop-rake (0.7.1)
275
+ lint_roller (~> 1.1)
276
+ rubocop (>= 1.72.1)
277
+ rubocop-rspec (3.9.0)
278
+ lint_roller (~> 1.1)
279
+ rubocop (~> 1.81)
280
+ ruby-progressbar (1.13.0)
281
+ rubyzip (2.4.1)
282
+ securerandom (0.4.1)
283
+ stringio (3.2.0)
284
+ thor (1.5.0)
285
+ timeout (0.6.1)
286
+ tomlrb (2.0.4)
287
+ tsort (0.2.0)
288
+ tzinfo (2.0.6)
289
+ concurrent-ruby (~> 1.0)
290
+ unicode-display_width (3.2.0)
291
+ unicode-emoji (~> 4.1)
292
+ unicode-emoji (4.2.0)
293
+ uri (1.1.1)
294
+ useragent (0.16.11)
295
+ websocket-driver (0.8.0)
296
+ base64
297
+ websocket-extensions (>= 0.1.0)
298
+ websocket-extensions (0.1.5)
299
+ with_env (1.1.0)
300
+ xml-simple (1.1.9)
301
+ rexml
302
+ zeitwerk (2.7.5)
303
+
304
+ PLATFORMS
305
+ aarch64-linux-gnu
306
+ aarch64-linux-musl
307
+ arm-linux-gnu
308
+ arm-linux-musl
309
+ arm64-darwin
310
+ x86_64-darwin
311
+ x86_64-linux
312
+ x86_64-linux-gnu
313
+ x86_64-linux-musl
314
+
315
+ DEPENDENCIES
316
+ appraisal (~> 2.5.0)
317
+ combustion (~> 1.3)
318
+ license_finder (>= 7.0)
319
+ nitro_config!
320
+ rails (= 8.1.3)
321
+ rake (>= 13.0)
322
+ rspec (>= 3.0)
323
+ rubocop (>= 1.32)
324
+ rubocop-powerhome!
325
+
326
+ BUNDLED WITH
327
+ 2.5.23
@@ -4,8 +4,8 @@ module NitroConfig
4
4
  # Raised when a path cannot be found in the config tree
5
5
  class Error < StandardError
6
6
  def initialize(path)
7
- super "#{path} not found in app config! If you're working in development, you probably need to" \
8
- "`cp config/config_sample.yml config/config.yml` or create a symlink for convenience."
7
+ super("#{path} not found in app config! If you're working in development, you probably need to" \
8
+ "`cp config/config_sample.yml config/config.yml` or create a symlink for convenience.")
9
9
  end
10
10
  end
11
11
  end
@@ -13,7 +13,7 @@ module NitroConfig
13
13
  yaml = begin
14
14
  YAML.safe_load(erb_result, [], [], true)
15
15
  rescue ArgumentError
16
- YAML.safe_load(erb_result, aliases: true)
16
+ YAML.safe_load(erb_result, aliases: true, fallback: {})
17
17
  end
18
18
 
19
19
  new(yaml[environment])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NitroConfig
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
data/nitro_config.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "Loads Nitro configuration and makes it available to the application"
13
13
  spec.homepage = "https://github.com/powerhome/power-tools"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.7"
15
+ spec.required_ruby_version = ">= 3.0"
16
16
 
17
17
  spec.metadata["rubygems_mfa_required"] = "true"
18
18
  spec.metadata["homepage_uri"] = spec.homepage
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency "activesupport", ">= 5.2.8.1"
33
+ spec.add_dependency "activesupport", ">= 7.1", "< 8.2"
34
+ spec.add_development_dependency "appraisal", "~> 2.5.0"
34
35
  spec.add_development_dependency "combustion", "~> 1.3"
35
36
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nitro_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Palhares
8
8
  - Jill Klang
9
- autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2022-08-29 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
@@ -17,14 +16,34 @@ dependencies:
17
16
  requirements:
18
17
  - - ">="
19
18
  - !ruby/object:Gem::Version
20
- version: 5.2.8.1
19
+ version: '7.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '8.2'
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
27
- version: 5.2.8.1
29
+ version: '7.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '8.2'
33
+ - !ruby/object:Gem::Dependency
34
+ name: appraisal
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 2.5.0
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 2.5.0
28
47
  - !ruby/object:Gem::Dependency
29
48
  name: combustion
30
49
  requirement: !ruby/object:Gem::Requirement
@@ -48,13 +67,24 @@ extensions: []
48
67
  extra_rdoc_files: []
49
68
  files:
50
69
  - ".rubocop.yml"
70
+ - Appraisals
51
71
  - Gemfile
72
+ - Gemfile.lock
52
73
  - Rakefile
53
74
  - config.ru
54
75
  - config/config.yml
55
76
  - doc/dependency_decisions.yml
56
77
  - docs/CHANGELOG.md
57
78
  - docs/README.md
79
+ - gemfiles/.bundle/config
80
+ - gemfiles/rails_7_1.gemfile
81
+ - gemfiles/rails_7_1.gemfile.lock
82
+ - gemfiles/rails_7_2.gemfile
83
+ - gemfiles/rails_7_2.gemfile.lock
84
+ - gemfiles/rails_8_0.gemfile
85
+ - gemfiles/rails_8_0.gemfile.lock
86
+ - gemfiles/rails_8_1.gemfile
87
+ - gemfiles/rails_8_1.gemfile.lock
58
88
  - lib/nitro_config.rb
59
89
  - lib/nitro_config/error.rb
60
90
  - lib/nitro_config/options.rb
@@ -72,7 +102,6 @@ metadata:
72
102
  homepage_uri: https://github.com/powerhome/power-tools
73
103
  source_code_uri: https://github.com/powerhome/power-tools
74
104
  changelog_uri: https://github.com/powerhome/power-tools/blob/main/packages/nitro_config/docs/CHANGELOG.md
75
- post_install_message:
76
105
  rdoc_options: []
77
106
  require_paths:
78
107
  - lib
@@ -80,15 +109,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
109
  requirements:
81
110
  - - ">="
82
111
  - !ruby/object:Gem::Version
83
- version: '2.7'
112
+ version: '3.0'
84
113
  required_rubygems_version: !ruby/object:Gem::Requirement
85
114
  requirements:
86
115
  - - ">="
87
116
  - !ruby/object:Gem::Version
88
117
  version: '0'
89
118
  requirements: []
90
- rubygems_version: 3.3.7
91
- signing_key:
119
+ rubygems_version: 3.6.9
92
120
  specification_version: 4
93
121
  summary: Nitro Configuration Loader
94
122
  test_files: []