unified_settings 0.1.2 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 597e3217c2958d077da18c870c58d575fef381dbc7cea33543b91ed8eb1acb12
4
- data.tar.gz: 2e724e7b2f9e0d91dac7096c9b7b4ec470b0e843da9721b3239b2c279abef6db
3
+ metadata.gz: 73896f0aecb4e9798a501cb5e3e87c68ae50b0f0531ea50491d830859897c42f
4
+ data.tar.gz: 0bca6f0c037cf42bb8b9961474ed5145fe4e436ffe3598f30e16aa756ae0909e
5
5
  SHA512:
6
- metadata.gz: 406732e761a985303996246a2e5eac68fe54c0f732914fc5bcaea8ab2dfb4c0f6f3b726ef989c7c014d6f68856d56d955a7b22ccceb2af349cd5030699e85227
7
- data.tar.gz: fee4bb0449050da1cb17975dc75d2e9b825131280148e5fa6e6627da35f1861228754eb61e3c5fa0c13f29e9eefad9679e6840aabb0bb5ac70be12c4ffad1fc5
6
+ metadata.gz: 7335dc6d9447df99efa67c754e5b36e1f3d9e49a3f62506a611e7406252db2313c9dac8b48b69fdc0680e15a5b40a5afe74046de32f3a36d59f4645861d6a0c9
7
+ data.tar.gz: 0e3e1a4b839e5483c8a16ed0f7cbfb76d267b828ed7ea8061cf05c847613c433ebe4d506d64e392510d3c4f45207b30282cabecc62dc19b564ce724e766ce4fe
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.2.2
1
+ ruby-3.3.6
data/Gemfile CHANGED
@@ -21,15 +21,15 @@ gem 'ruby_audit', '>= 0'
21
21
  ##
22
22
 
23
23
  # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
24
- gem 'rails', '~> 7.0.7', '>= 7.0.7.2'
24
+ gem 'rails', '~> 8.0.0'
25
25
 
26
- # The original asset pipeline for Rails
27
- # [https://github.com/rails/sprockets-rails]
28
- gem 'sprockets-rails'
26
+ # The modern asset pipeline for Rails
27
+ # https://github.com/rails/propshaft
28
+ gem 'propshaft'
29
29
 
30
30
  # Use the Puma web server
31
31
  # [https://github.com/puma/puma]
32
- gem 'puma', '~> 5.0'
32
+ gem 'puma', '~> 6.0'
33
33
 
34
34
  # Build JSON APIs with ease
35
35
  # [https://github.com/rails/jbuilder]
@@ -49,6 +49,10 @@ gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
49
49
  # Reduces boot times through caching; required in config/boot.rb
50
50
  gem 'bootsnap', require: false
51
51
 
52
+ # Bundle and process CSS
53
+ # https://github.com/rails/cssbundling-rails
54
+ gem 'cssbundling-rails'
55
+
52
56
  # Use Sass to process CSS
53
57
  # gem "sassc-rails"
54
58
 
data/Gemfile.lock CHANGED
@@ -1,150 +1,132 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unified_settings (0.1.2)
4
+ unified_settings (0.2.0)
5
5
  activerecord (> 4.2.0)
6
6
  activesupport (> 4.2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (7.0.8)
12
- actionpack (= 7.0.8)
13
- activesupport (= 7.0.8)
11
+ actioncable (8.0.0)
12
+ actionpack (= 8.0.0)
13
+ activesupport (= 8.0.0)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
- actionmailbox (7.0.8)
17
- actionpack (= 7.0.8)
18
- activejob (= 7.0.8)
19
- activerecord (= 7.0.8)
20
- activestorage (= 7.0.8)
21
- activesupport (= 7.0.8)
22
- mail (>= 2.7.1)
23
- net-imap
24
- net-pop
25
- net-smtp
26
- actionmailer (7.0.8)
27
- actionpack (= 7.0.8)
28
- actionview (= 7.0.8)
29
- activejob (= 7.0.8)
30
- activesupport (= 7.0.8)
31
- mail (~> 2.5, >= 2.5.4)
32
- net-imap
33
- net-pop
34
- net-smtp
35
- rails-dom-testing (~> 2.0)
36
- actionpack (7.0.8)
37
- actionview (= 7.0.8)
38
- activesupport (= 7.0.8)
39
- rack (~> 2.0, >= 2.2.4)
16
+ zeitwerk (~> 2.6)
17
+ actionmailbox (8.0.0)
18
+ actionpack (= 8.0.0)
19
+ activejob (= 8.0.0)
20
+ activerecord (= 8.0.0)
21
+ activestorage (= 8.0.0)
22
+ activesupport (= 8.0.0)
23
+ mail (>= 2.8.0)
24
+ actionmailer (8.0.0)
25
+ actionpack (= 8.0.0)
26
+ actionview (= 8.0.0)
27
+ activejob (= 8.0.0)
28
+ activesupport (= 8.0.0)
29
+ mail (>= 2.8.0)
30
+ rails-dom-testing (~> 2.2)
31
+ actionpack (8.0.0)
32
+ actionview (= 8.0.0)
33
+ activesupport (= 8.0.0)
34
+ nokogiri (>= 1.8.5)
35
+ rack (>= 2.2.4)
36
+ rack-session (>= 1.0.1)
40
37
  rack-test (>= 0.6.3)
41
- rails-dom-testing (~> 2.0)
42
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
43
- actiontext (7.0.8)
44
- actionpack (= 7.0.8)
45
- activerecord (= 7.0.8)
46
- activestorage (= 7.0.8)
47
- activesupport (= 7.0.8)
38
+ rails-dom-testing (~> 2.2)
39
+ rails-html-sanitizer (~> 1.6)
40
+ useragent (~> 0.16)
41
+ actiontext (8.0.0)
42
+ actionpack (= 8.0.0)
43
+ activerecord (= 8.0.0)
44
+ activestorage (= 8.0.0)
45
+ activesupport (= 8.0.0)
48
46
  globalid (>= 0.6.0)
49
47
  nokogiri (>= 1.8.5)
50
- actionview (7.0.8)
51
- activesupport (= 7.0.8)
48
+ actionview (8.0.0)
49
+ activesupport (= 8.0.0)
52
50
  builder (~> 3.1)
53
- erubi (~> 1.4)
54
- rails-dom-testing (~> 2.0)
55
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
56
- activejob (7.0.8)
57
- activesupport (= 7.0.8)
51
+ erubi (~> 1.11)
52
+ rails-dom-testing (~> 2.2)
53
+ rails-html-sanitizer (~> 1.6)
54
+ activejob (8.0.0)
55
+ activesupport (= 8.0.0)
58
56
  globalid (>= 0.3.6)
59
- activemodel (7.0.8)
60
- activesupport (= 7.0.8)
61
- activerecord (7.0.8)
62
- activemodel (= 7.0.8)
63
- activesupport (= 7.0.8)
64
- activestorage (7.0.8)
65
- actionpack (= 7.0.8)
66
- activejob (= 7.0.8)
67
- activerecord (= 7.0.8)
68
- activesupport (= 7.0.8)
57
+ activemodel (8.0.0)
58
+ activesupport (= 8.0.0)
59
+ activerecord (8.0.0)
60
+ activemodel (= 8.0.0)
61
+ activesupport (= 8.0.0)
62
+ timeout (>= 0.4.0)
63
+ activestorage (8.0.0)
64
+ actionpack (= 8.0.0)
65
+ activejob (= 8.0.0)
66
+ activerecord (= 8.0.0)
67
+ activesupport (= 8.0.0)
69
68
  marcel (~> 1.0)
70
- mini_mime (>= 1.1.0)
71
- activesupport (7.0.8)
72
- concurrent-ruby (~> 1.0, >= 1.0.2)
69
+ activesupport (8.0.0)
70
+ base64
71
+ benchmark (>= 0.3)
72
+ bigdecimal
73
+ concurrent-ruby (~> 1.0, >= 1.3.1)
74
+ connection_pool (>= 2.2.5)
75
+ drb
73
76
  i18n (>= 1.6, < 2)
77
+ logger (>= 1.4.2)
74
78
  minitest (>= 5.1)
75
- tzinfo (~> 2.0)
76
- addressable (2.8.5)
77
- public_suffix (>= 2.0.2, < 6.0)
79
+ securerandom (>= 0.3)
80
+ tzinfo (~> 2.0, >= 2.0.5)
81
+ uri (>= 0.13.1)
82
+ addressable (2.8.7)
83
+ public_suffix (>= 2.0.2, < 7.0)
78
84
  ast (2.4.2)
79
- bootsnap (1.17.0)
85
+ base64 (0.2.0)
86
+ benchmark (0.4.0)
87
+ bigdecimal (3.1.8)
88
+ bootsnap (1.18.4)
80
89
  msgpack (~> 1.2)
81
- builder (3.2.4)
82
- bundler-audit (0.9.1)
90
+ builder (3.3.0)
91
+ bundler-audit (0.9.2)
83
92
  bundler (>= 1.2.0, < 3)
84
93
  thor (~> 1.0)
85
- capybara (3.39.2)
94
+ capybara (3.40.0)
86
95
  addressable
87
96
  matrix
88
97
  mini_mime (>= 0.1.3)
89
- nokogiri (~> 1.8)
98
+ nokogiri (~> 1.11)
90
99
  rack (>= 1.6.0)
91
100
  rack-test (>= 0.6.3)
92
101
  regexp_parser (>= 1.5, < 3.0)
93
102
  xpath (~> 3.2)
94
- concurrent-ruby (1.2.2)
95
- config (5.0.0)
103
+ concurrent-ruby (1.3.4)
104
+ config (5.5.2)
96
105
  deep_merge (~> 1.2, >= 1.2.1)
97
- dry-validation (~> 1.0, >= 1.0.0)
106
+ ostruct
107
+ connection_pool (2.4.1)
98
108
  crass (1.0.6)
99
- date (3.3.3)
100
- debug (1.8.0)
101
- irb (>= 1.5.0)
102
- reline (>= 0.3.1)
109
+ cssbundling-rails (1.4.1)
110
+ railties (>= 6.0.0)
111
+ date (3.4.1)
112
+ debug (1.9.2)
113
+ irb (~> 1.10)
114
+ reline (>= 0.3.8)
103
115
  deep_merge (1.2.2)
104
- dry-configurable (1.1.0)
105
- dry-core (~> 1.0, < 2)
106
- zeitwerk (~> 2.6)
107
- dry-core (1.0.1)
108
- concurrent-ruby (~> 1.0)
109
- zeitwerk (~> 2.6)
110
- dry-inflector (1.0.0)
111
- dry-initializer (3.1.1)
112
- dry-logic (1.5.0)
113
- concurrent-ruby (~> 1.0)
114
- dry-core (~> 1.0, < 2)
115
- zeitwerk (~> 2.6)
116
- dry-schema (1.13.3)
117
- concurrent-ruby (~> 1.0)
118
- dry-configurable (~> 1.0, >= 1.0.1)
119
- dry-core (~> 1.0, < 2)
120
- dry-initializer (~> 3.0)
121
- dry-logic (>= 1.4, < 2)
122
- dry-types (>= 1.7, < 2)
123
- zeitwerk (~> 2.6)
124
- dry-types (1.7.1)
125
- concurrent-ruby (~> 1.0)
126
- dry-core (~> 1.0)
127
- dry-inflector (~> 1.0)
128
- dry-logic (~> 1.4)
129
- zeitwerk (~> 2.6)
130
- dry-validation (1.10.0)
131
- concurrent-ruby (~> 1.0)
132
- dry-core (~> 1.0, < 2)
133
- dry-initializer (~> 3.0)
134
- dry-schema (>= 1.12, < 2)
135
- zeitwerk (~> 2.6)
136
- erubi (1.12.0)
116
+ drb (2.2.1)
117
+ erubi (1.13.0)
137
118
  globalid (1.2.1)
138
119
  activesupport (>= 6.1)
139
- i18n (1.14.1)
120
+ i18n (1.14.6)
140
121
  concurrent-ruby (~> 1.0)
141
- io-console (0.6.0)
142
- irb (1.8.3)
143
- rdoc
144
- reline (>= 0.3.8)
145
- json (2.6.3)
122
+ io-console (0.8.0)
123
+ irb (1.14.1)
124
+ rdoc (>= 4.0.0)
125
+ reline (>= 0.4.2)
126
+ json (2.9.0)
146
127
  language_server-protocol (3.17.0.3)
147
- loofah (2.21.4)
128
+ logger (1.6.2)
129
+ loofah (2.23.1)
148
130
  crass (~> 1.0.2)
149
131
  nokogiri (>= 1.12.0)
150
132
  mail (2.8.1)
@@ -152,134 +134,146 @@ GEM
152
134
  net-imap
153
135
  net-pop
154
136
  net-smtp
155
- marcel (1.0.2)
137
+ marcel (1.0.4)
156
138
  matrix (0.4.2)
157
- method_source (1.0.0)
158
139
  mini_mime (1.1.5)
159
- minitest (5.20.0)
160
- msgpack (1.7.2)
161
- net-imap (0.4.3)
140
+ minitest (5.25.4)
141
+ msgpack (1.7.5)
142
+ net-imap (0.5.1)
162
143
  date
163
144
  net-protocol
164
145
  net-pop (0.1.2)
165
146
  net-protocol
166
- net-protocol (0.2.1)
147
+ net-protocol (0.2.2)
167
148
  timeout
168
- net-smtp (0.4.0)
149
+ net-smtp (0.5.0)
169
150
  net-protocol
170
- nio4r (2.5.9)
171
- nokogiri (1.15.4-x86_64-darwin)
151
+ nio4r (2.7.4)
152
+ nokogiri (1.16.8-x86_64-darwin)
172
153
  racc (~> 1.4)
173
- nokogiri (1.15.4-x86_64-linux)
154
+ nokogiri (1.16.8-x86_64-linux)
174
155
  racc (~> 1.4)
175
- parallel (1.23.0)
176
- parser (3.2.2.4)
156
+ ostruct (0.6.1)
157
+ parallel (1.26.3)
158
+ parser (3.3.6.0)
177
159
  ast (~> 2.4.1)
178
160
  racc
179
- psych (5.1.1.1)
161
+ propshaft (1.1.0)
162
+ actionpack (>= 7.0.0)
163
+ activesupport (>= 7.0.0)
164
+ rack
165
+ railties (>= 7.0.0)
166
+ psych (5.2.1)
167
+ date
180
168
  stringio
181
- public_suffix (5.0.3)
182
- puma (5.6.7)
169
+ public_suffix (6.0.1)
170
+ puma (6.5.0)
183
171
  nio4r (~> 2.0)
184
- racc (1.7.1)
185
- rack (2.2.8)
172
+ racc (1.8.1)
173
+ rack (3.1.8)
174
+ rack-session (2.0.0)
175
+ rack (>= 3.0.0)
186
176
  rack-test (2.1.0)
187
177
  rack (>= 1.3)
188
- rails (7.0.8)
189
- actioncable (= 7.0.8)
190
- actionmailbox (= 7.0.8)
191
- actionmailer (= 7.0.8)
192
- actionpack (= 7.0.8)
193
- actiontext (= 7.0.8)
194
- actionview (= 7.0.8)
195
- activejob (= 7.0.8)
196
- activemodel (= 7.0.8)
197
- activerecord (= 7.0.8)
198
- activestorage (= 7.0.8)
199
- activesupport (= 7.0.8)
178
+ rackup (2.2.1)
179
+ rack (>= 3)
180
+ rails (8.0.0)
181
+ actioncable (= 8.0.0)
182
+ actionmailbox (= 8.0.0)
183
+ actionmailer (= 8.0.0)
184
+ actionpack (= 8.0.0)
185
+ actiontext (= 8.0.0)
186
+ actionview (= 8.0.0)
187
+ activejob (= 8.0.0)
188
+ activemodel (= 8.0.0)
189
+ activerecord (= 8.0.0)
190
+ activestorage (= 8.0.0)
191
+ activesupport (= 8.0.0)
200
192
  bundler (>= 1.15.0)
201
- railties (= 7.0.8)
193
+ railties (= 8.0.0)
202
194
  rails-dom-testing (2.2.0)
203
195
  activesupport (>= 5.0.0)
204
196
  minitest
205
197
  nokogiri (>= 1.6)
206
- rails-html-sanitizer (1.6.0)
198
+ rails-html-sanitizer (1.6.1)
207
199
  loofah (~> 2.21)
208
- nokogiri (~> 1.14)
209
- railties (7.0.8)
210
- actionpack (= 7.0.8)
211
- activesupport (= 7.0.8)
212
- method_source
200
+ 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)
201
+ railties (8.0.0)
202
+ actionpack (= 8.0.0)
203
+ activesupport (= 8.0.0)
204
+ irb (~> 1.13)
205
+ rackup (>= 1.0.0)
213
206
  rake (>= 12.2)
214
- thor (~> 1.0)
215
- zeitwerk (~> 2.5)
207
+ thor (~> 1.0, >= 1.2.2)
208
+ zeitwerk (~> 2.6)
216
209
  rainbow (3.1.1)
217
- rake (13.1.0)
218
- rdoc (6.5.0)
210
+ rake (13.2.1)
211
+ rdoc (6.8.1)
219
212
  psych (>= 4.0.0)
220
- regexp_parser (2.8.2)
221
- reline (0.3.9)
213
+ regexp_parser (2.9.3)
214
+ reline (0.5.12)
222
215
  io-console (~> 0.5)
223
- rexml (3.2.6)
224
- rubocop (1.57.2)
216
+ rexml (3.3.9)
217
+ rubocop (1.69.1)
225
218
  json (~> 2.3)
226
219
  language_server-protocol (>= 3.17.0)
227
220
  parallel (~> 1.10)
228
- parser (>= 3.2.2.4)
221
+ parser (>= 3.3.0.2)
229
222
  rainbow (>= 2.2.2, < 4.0)
230
- regexp_parser (>= 1.8, < 3.0)
231
- rexml (>= 3.2.5, < 4.0)
232
- rubocop-ast (>= 1.28.1, < 2.0)
223
+ regexp_parser (>= 2.9.3, < 3.0)
224
+ rubocop-ast (>= 1.36.2, < 2.0)
233
225
  ruby-progressbar (~> 1.7)
234
- unicode-display_width (>= 2.4.0, < 3.0)
235
- rubocop-ast (1.30.0)
236
- parser (>= 3.2.1.0)
237
- rubocop-minitest (0.33.0)
238
- rubocop (>= 1.39, < 2.0)
239
- rubocop-performance (1.19.1)
240
- rubocop (>= 1.7.0, < 2.0)
241
- rubocop-ast (>= 0.4.0)
242
- rubocop-rails (2.22.1)
226
+ unicode-display_width (>= 2.4.0, < 4.0)
227
+ rubocop-ast (1.36.2)
228
+ parser (>= 3.3.1.0)
229
+ rubocop-minitest (0.36.0)
230
+ rubocop (>= 1.61, < 2.0)
231
+ rubocop-ast (>= 1.31.1, < 2.0)
232
+ rubocop-performance (1.23.0)
233
+ rubocop (>= 1.48.1, < 2.0)
234
+ rubocop-ast (>= 1.31.1, < 2.0)
235
+ rubocop-rails (2.27.0)
243
236
  activesupport (>= 4.2.0)
244
237
  rack (>= 1.1)
245
- rubocop (>= 1.33.0, < 2.0)
238
+ rubocop (>= 1.52.0, < 2.0)
239
+ rubocop-ast (>= 1.31.1, < 2.0)
246
240
  rubocop-rake (0.6.0)
247
241
  rubocop (~> 1.0)
248
242
  ruby-progressbar (1.13.0)
249
- ruby_audit (2.2.0)
243
+ ruby_audit (2.3.1)
250
244
  bundler-audit (~> 0.9.0)
251
245
  rubyzip (2.3.2)
246
+ securerandom (0.4.0)
252
247
  selenium-webdriver (4.10.0)
253
248
  rexml (~> 3.2, >= 3.2.5)
254
249
  rubyzip (>= 1.2.2, < 3.0)
255
250
  websocket (~> 1.0)
256
- sprockets (4.2.1)
257
- concurrent-ruby (~> 1.0)
258
- rack (>= 2.2.4, < 4)
259
- sprockets-rails (3.4.2)
260
- actionpack (>= 5.2)
261
- activesupport (>= 5.2)
262
- sprockets (>= 3.0.0)
263
- stringio (3.0.8)
264
- thor (1.3.0)
265
- timeout (0.4.0)
251
+ stringio (3.1.2)
252
+ thor (1.3.2)
253
+ timeout (0.4.2)
266
254
  tzinfo (2.0.6)
267
255
  concurrent-ruby (~> 1.0)
268
- unicode-display_width (2.5.0)
256
+ unicode-display_width (3.1.2)
257
+ unicode-emoji (~> 4.0, >= 4.0.4)
258
+ unicode-emoji (4.0.4)
259
+ uri (1.0.2)
260
+ useragent (0.16.11)
269
261
  webdrivers (5.3.1)
270
262
  nokogiri (~> 1.6)
271
263
  rubyzip (>= 1.3.0)
272
264
  selenium-webdriver (~> 4.0, < 4.11)
273
- websocket (1.2.10)
265
+ websocket (1.2.11)
274
266
  websocket-driver (0.7.6)
275
267
  websocket-extensions (>= 0.1.0)
276
268
  websocket-extensions (0.1.5)
277
269
  xpath (3.2.0)
278
270
  nokogiri (~> 1.8)
279
- zeitwerk (2.6.12)
271
+ zeitwerk (2.7.1)
280
272
 
281
273
  PLATFORMS
282
274
  x86_64-darwin-22
275
+ x86_64-darwin-23
276
+ x86_64-darwin-24
283
277
  x86_64-linux
284
278
 
285
279
  DEPENDENCIES
@@ -288,10 +282,12 @@ DEPENDENCIES
288
282
  bundler-audit
289
283
  capybara
290
284
  config (>= 3.0)
285
+ cssbundling-rails
291
286
  debug
292
287
  minitest (~> 5.0)
293
- puma (~> 5.0)
294
- rails (~> 7.0.7, >= 7.0.7.2)
288
+ propshaft
289
+ puma (~> 6.0)
290
+ rails (~> 8.0.0)
295
291
  rake (~> 13.0)
296
292
  rubocop (~> 1.21)
297
293
  rubocop-minitest
@@ -300,10 +296,9 @@ DEPENDENCIES
300
296
  rubocop-rake
301
297
  ruby_audit
302
298
  selenium-webdriver
303
- sprockets-rails
304
299
  tzinfo-data
305
300
  unified_settings!
306
301
  webdrivers
307
302
 
308
303
  BUNDLED WITH
309
- 2.4.10
304
+ 2.5.23
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ Rake::TestTask.new(:test) do |t|
14
14
  # to the dummy Rails app so that we can test the Rails specific handlers
15
15
  # in the context of a Rails app. See the `generate_dummy_rails_app` for
16
16
  # more details
17
- t.test_files = \
17
+ t.test_files =
18
18
  FileList['test/**/*_test.rb'].exclude('test/rails/**/*_test.rb')
19
19
  end
20
20
 
@@ -44,7 +44,10 @@ task :generate_dummy_rails_app do
44
44
  # Install/Setup the dependencies
45
45
  #
46
46
 
47
+ system('cp -f test/rails/config/credentials.yml.enc test/dummy/config/.')
48
+ system('cp -f test/rails/config/master.key test/dummy/config/.')
47
49
  system('cp -f test/rails/Gemfile test/dummy/.')
50
+ system('cp -f test/rails/.ruby-* test/dummy/.')
48
51
 
49
52
  # Setup the Config gem
50
53
  system('cd test/dummy; rails g config:install')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UnifiedSettings
4
- VERSION = '0.1.2'
4
+ VERSION = '0.2.0'
5
5
  end
@@ -13,7 +13,15 @@ directories.each do |directory|
13
13
  end
14
14
  end
15
15
 
16
- ActiveRecord::Base.instance_eval { include UnifiedSettings }
16
+ begin
17
+ require 'active_record'
18
+ ActiveRecord::Base.instance_eval { include UnifiedSettings }
19
+ rescue LoadError => e
20
+ # rubocop:disable Rails/Output
21
+ puts "ERROR: Could not load active_record: #{e.message}"
22
+ # rubocop:enable Rails/Output
23
+ end
24
+
17
25
  if defined?(Rails) && Rails.version.to_i < 4
18
26
  raise 'This version of unified_settings requires Rails 4 or higher'
19
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unified_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick R. Schmid
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-31 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -63,7 +63,6 @@ files:
63
63
  - lib/unified_settings/settings.rb
64
64
  - lib/unified_settings/unified_settings.rb
65
65
  - lib/unified_settings/version.rb
66
- - unified_settings.gemspec
67
66
  homepage: https://github.com/prschmid/unified_settings
68
67
  licenses:
69
68
  - MIT
@@ -80,14 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
79
  requirements:
81
80
  - - ">="
82
81
  - !ruby/object:Gem::Version
83
- version: '3.2'
82
+ version: '3.3'
84
83
  required_rubygems_version: !ruby/object:Gem::Requirement
85
84
  requirements:
86
85
  - - ">="
87
86
  - !ruby/object:Gem::Version
88
87
  version: '0'
89
88
  requirements: []
90
- rubygems_version: 3.4.10
89
+ rubygems_version: 3.5.22
91
90
  signing_key:
92
91
  specification_version: 4
93
92
  summary: A unified way to get settings from different sources.
@@ -1,46 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'unified_settings/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = 'unified_settings'
9
- spec.version = UnifiedSettings::VERSION
10
- spec.authors = ['Patrick R. Schmid']
11
- spec.email = ['prschmid@gmail.com']
12
-
13
- spec.summary = 'A unified way to get settings from different sources.'
14
- spec.description = 'A unified way to get settings from different sources.'
15
- spec.homepage = 'https://github.com/prschmid/unified_settings'
16
- spec.license = 'MIT'
17
-
18
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the
19
- # 'allowed_push_host' to allow pushing to a single host or delete this
20
- # section to allow pushing to any host.
21
- if spec.respond_to?(:metadata)
22
- spec.metadata['homepage_uri'] = spec.homepage
23
- spec.metadata['source_code_uri'] = 'https://github.com/prschmid/unified_settings'
24
- spec.metadata['changelog_uri'] = 'https://github.com/prschmid/unified_settings'
25
- else
26
- raise 'RubyGems 2.0 or newer is required to protect against ' \
27
- 'public gem pushes.'
28
- end
29
-
30
- # Specify which files should be added to the gem when it is released.
31
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
- spec.files = Dir.chdir(__dir__) do
33
- `git ls-files -z`.split("\x0").reject do |f|
34
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
35
- end
36
- end
37
- spec.bindir = 'exe'
38
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
39
- spec.require_paths = ['lib']
40
-
41
- spec.required_ruby_version = '>= 3.2'
42
-
43
- spec.add_runtime_dependency('activerecord', '> 4.2.0')
44
- spec.add_runtime_dependency('activesupport', '> 4.2.0')
45
- spec.metadata['rubygems_mfa_required'] = 'true'
46
- end