config_default 0.3.1 → 0.3.3
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/.github/workflows/ci.yml +1 -1
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +20 -0
- data/Gemfile.lock +184 -160
- data/README.md +6 -5
- data/lib/config_default/{init.rb → rails_patch.rb} +2 -2
- data/lib/config_default/version.rb +1 -1
- data/lib/config_default.rb +4 -4
- metadata +4 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b92a35721ebb7c3e7b208fc2bf2bb45a7d2276c0964f9fda4c1b24a06ea70b6
|
|
4
|
+
data.tar.gz: b453466b7af77aad6cd857b33d0a45feca68d72ae68f5d129a86c5298ea29762
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f52175fa7fae1627f93fc95d00829929f4b1937b205d682516d96793e1576101f2b24b8b0383e80c36baf3230f84fecc52fc52d295604c9d0a33f98dd416998a
|
|
7
|
+
data.tar.gz: 5ee49bfcecb8a15a83030c247e70cbdde7edb94ffd5735c8beb5a3e6c1a2806664fc23c22cba69b13d0c397f5f831fd3fce72f5fad6d7e0b7e36415aefd590de
|
data/.github/workflows/ci.yml
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 0.3.3
|
|
2
|
+
|
|
3
|
+
- Upgrade to latest rails.
|
|
4
|
+
- Drop ruby < 3.2 support.
|
|
5
|
+
|
|
6
|
+
## 0.3.2
|
|
7
|
+
|
|
8
|
+
- Move patches to RailsPatch Module.
|
|
9
|
+
- Introduce `#apply_rails_patch!`
|
|
10
|
+
|
|
11
|
+
## 0.3.1
|
|
12
|
+
|
|
13
|
+
- Automate CI release
|
|
14
|
+
|
|
15
|
+
## 0.3.0
|
|
16
|
+
|
|
17
|
+
- Rename Extension to Patch and move to Init Module.
|
|
18
|
+
- Update various gems.
|
|
19
|
+
- Rails 7.1 support check.
|
|
20
|
+
|
|
1
21
|
## 0.2.5
|
|
2
22
|
|
|
3
23
|
- Remove `attributes` keyword.
|
data/Gemfile.lock
CHANGED
|
@@ -1,258 +1,282 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
config_default (0.3.
|
|
4
|
+
config_default (0.3.3)
|
|
5
5
|
activesupport (>= 6)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
action_text-trix (2.1.15)
|
|
11
|
+
railties
|
|
12
|
+
actioncable (8.1.1)
|
|
13
|
+
actionpack (= 8.1.1)
|
|
14
|
+
activesupport (= 8.1.1)
|
|
13
15
|
nio4r (~> 2.0)
|
|
14
16
|
websocket-driver (>= 0.6.1)
|
|
15
17
|
zeitwerk (~> 2.6)
|
|
16
|
-
actionmailbox (
|
|
17
|
-
actionpack (=
|
|
18
|
-
activejob (=
|
|
19
|
-
activerecord (=
|
|
20
|
-
activestorage (=
|
|
21
|
-
activesupport (=
|
|
22
|
-
mail (>= 2.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
activejob (= 7.1.3)
|
|
30
|
-
activesupport (= 7.1.3)
|
|
31
|
-
mail (~> 2.5, >= 2.5.4)
|
|
32
|
-
net-imap
|
|
33
|
-
net-pop
|
|
34
|
-
net-smtp
|
|
18
|
+
actionmailbox (8.1.1)
|
|
19
|
+
actionpack (= 8.1.1)
|
|
20
|
+
activejob (= 8.1.1)
|
|
21
|
+
activerecord (= 8.1.1)
|
|
22
|
+
activestorage (= 8.1.1)
|
|
23
|
+
activesupport (= 8.1.1)
|
|
24
|
+
mail (>= 2.8.0)
|
|
25
|
+
actionmailer (8.1.1)
|
|
26
|
+
actionpack (= 8.1.1)
|
|
27
|
+
actionview (= 8.1.1)
|
|
28
|
+
activejob (= 8.1.1)
|
|
29
|
+
activesupport (= 8.1.1)
|
|
30
|
+
mail (>= 2.8.0)
|
|
35
31
|
rails-dom-testing (~> 2.2)
|
|
36
|
-
actionpack (
|
|
37
|
-
actionview (=
|
|
38
|
-
activesupport (=
|
|
32
|
+
actionpack (8.1.1)
|
|
33
|
+
actionview (= 8.1.1)
|
|
34
|
+
activesupport (= 8.1.1)
|
|
39
35
|
nokogiri (>= 1.8.5)
|
|
40
|
-
racc
|
|
41
36
|
rack (>= 2.2.4)
|
|
42
37
|
rack-session (>= 1.0.1)
|
|
43
38
|
rack-test (>= 0.6.3)
|
|
44
39
|
rails-dom-testing (~> 2.2)
|
|
45
40
|
rails-html-sanitizer (~> 1.6)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
useragent (~> 0.16)
|
|
42
|
+
actiontext (8.1.1)
|
|
43
|
+
action_text-trix (~> 2.1.15)
|
|
44
|
+
actionpack (= 8.1.1)
|
|
45
|
+
activerecord (= 8.1.1)
|
|
46
|
+
activestorage (= 8.1.1)
|
|
47
|
+
activesupport (= 8.1.1)
|
|
51
48
|
globalid (>= 0.6.0)
|
|
52
49
|
nokogiri (>= 1.8.5)
|
|
53
|
-
actionview (
|
|
54
|
-
activesupport (=
|
|
50
|
+
actionview (8.1.1)
|
|
51
|
+
activesupport (= 8.1.1)
|
|
55
52
|
builder (~> 3.1)
|
|
56
53
|
erubi (~> 1.11)
|
|
57
54
|
rails-dom-testing (~> 2.2)
|
|
58
55
|
rails-html-sanitizer (~> 1.6)
|
|
59
|
-
activejob (
|
|
60
|
-
activesupport (=
|
|
56
|
+
activejob (8.1.1)
|
|
57
|
+
activesupport (= 8.1.1)
|
|
61
58
|
globalid (>= 0.3.6)
|
|
62
|
-
activemodel (
|
|
63
|
-
activesupport (=
|
|
64
|
-
activerecord (
|
|
65
|
-
activemodel (=
|
|
66
|
-
activesupport (=
|
|
59
|
+
activemodel (8.1.1)
|
|
60
|
+
activesupport (= 8.1.1)
|
|
61
|
+
activerecord (8.1.1)
|
|
62
|
+
activemodel (= 8.1.1)
|
|
63
|
+
activesupport (= 8.1.1)
|
|
67
64
|
timeout (>= 0.4.0)
|
|
68
|
-
activestorage (
|
|
69
|
-
actionpack (=
|
|
70
|
-
activejob (=
|
|
71
|
-
activerecord (=
|
|
72
|
-
activesupport (=
|
|
65
|
+
activestorage (8.1.1)
|
|
66
|
+
actionpack (= 8.1.1)
|
|
67
|
+
activejob (= 8.1.1)
|
|
68
|
+
activerecord (= 8.1.1)
|
|
69
|
+
activesupport (= 8.1.1)
|
|
73
70
|
marcel (~> 1.0)
|
|
74
|
-
activesupport (
|
|
71
|
+
activesupport (8.1.1)
|
|
75
72
|
base64
|
|
76
73
|
bigdecimal
|
|
77
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
74
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
78
75
|
connection_pool (>= 2.2.5)
|
|
79
76
|
drb
|
|
80
77
|
i18n (>= 1.6, < 2)
|
|
78
|
+
json
|
|
79
|
+
logger (>= 1.4.2)
|
|
81
80
|
minitest (>= 5.1)
|
|
82
|
-
|
|
83
|
-
tzinfo (~> 2.0)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
securerandom (>= 0.3)
|
|
82
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
83
|
+
uri (>= 0.13.1)
|
|
84
|
+
ast (2.4.3)
|
|
85
|
+
base64 (0.3.0)
|
|
86
|
+
bigdecimal (3.3.1)
|
|
87
|
+
builder (3.3.0)
|
|
88
88
|
coderay (1.1.3)
|
|
89
|
-
concurrent-ruby (1.
|
|
90
|
-
connection_pool (2.4
|
|
89
|
+
concurrent-ruby (1.3.5)
|
|
90
|
+
connection_pool (2.5.4)
|
|
91
91
|
crass (1.0.6)
|
|
92
|
-
date (3.
|
|
93
|
-
diff-lcs (1.
|
|
94
|
-
drb (2.2.
|
|
95
|
-
|
|
96
|
-
erubi (1.
|
|
97
|
-
globalid (1.
|
|
92
|
+
date (3.5.0)
|
|
93
|
+
diff-lcs (1.6.2)
|
|
94
|
+
drb (2.2.3)
|
|
95
|
+
erb (5.1.3)
|
|
96
|
+
erubi (1.13.1)
|
|
97
|
+
globalid (1.3.0)
|
|
98
98
|
activesupport (>= 6.1)
|
|
99
|
-
i18n (1.14.
|
|
99
|
+
i18n (1.14.7)
|
|
100
100
|
concurrent-ruby (~> 1.0)
|
|
101
|
-
io-console (0.
|
|
102
|
-
irb (1.
|
|
103
|
-
|
|
101
|
+
io-console (0.8.1)
|
|
102
|
+
irb (1.15.3)
|
|
103
|
+
pp (>= 0.6.0)
|
|
104
|
+
rdoc (>= 4.0.0)
|
|
104
105
|
reline (>= 0.4.2)
|
|
105
|
-
json (2.
|
|
106
|
-
|
|
106
|
+
json (2.15.2)
|
|
107
|
+
language_server-protocol (3.17.0.5)
|
|
108
|
+
lint_roller (1.1.0)
|
|
109
|
+
logger (1.7.0)
|
|
110
|
+
loofah (2.24.1)
|
|
107
111
|
crass (~> 1.0.2)
|
|
108
112
|
nokogiri (>= 1.12.0)
|
|
109
|
-
mail (2.
|
|
113
|
+
mail (2.9.0)
|
|
114
|
+
logger
|
|
110
115
|
mini_mime (>= 0.1.1)
|
|
111
116
|
net-imap
|
|
112
117
|
net-pop
|
|
113
118
|
net-smtp
|
|
114
|
-
marcel (1.0
|
|
115
|
-
method_source (1.
|
|
119
|
+
marcel (1.1.0)
|
|
120
|
+
method_source (1.1.0)
|
|
116
121
|
mini_mime (1.1.5)
|
|
117
|
-
minitest (5.
|
|
118
|
-
|
|
119
|
-
net-imap (0.4.10)
|
|
122
|
+
minitest (5.26.0)
|
|
123
|
+
net-imap (0.5.12)
|
|
120
124
|
date
|
|
121
125
|
net-protocol
|
|
122
126
|
net-pop (0.1.2)
|
|
123
127
|
net-protocol
|
|
124
128
|
net-protocol (0.2.2)
|
|
125
129
|
timeout
|
|
126
|
-
net-smtp (0.
|
|
130
|
+
net-smtp (0.5.1)
|
|
127
131
|
net-protocol
|
|
128
|
-
nio4r (2.7.
|
|
129
|
-
nokogiri (1.
|
|
132
|
+
nio4r (2.7.5)
|
|
133
|
+
nokogiri (1.18.10-arm64-darwin)
|
|
130
134
|
racc (~> 1.4)
|
|
131
|
-
nokogiri (1.
|
|
135
|
+
nokogiri (1.18.10-x86_64-darwin)
|
|
132
136
|
racc (~> 1.4)
|
|
133
|
-
nokogiri (1.
|
|
137
|
+
nokogiri (1.18.10-x86_64-linux-gnu)
|
|
134
138
|
racc (~> 1.4)
|
|
135
|
-
parallel (1.
|
|
136
|
-
parser (3.3.0
|
|
139
|
+
parallel (1.27.0)
|
|
140
|
+
parser (3.3.10.0)
|
|
137
141
|
ast (~> 2.4.1)
|
|
138
142
|
racc
|
|
139
|
-
|
|
143
|
+
pp (0.6.3)
|
|
144
|
+
prettyprint
|
|
145
|
+
prettyprint (0.2.0)
|
|
146
|
+
prism (1.6.0)
|
|
147
|
+
pry (0.15.2)
|
|
140
148
|
coderay (~> 1.1)
|
|
141
149
|
method_source (~> 1.0)
|
|
142
|
-
psych (5.
|
|
150
|
+
psych (5.2.6)
|
|
151
|
+
date
|
|
143
152
|
stringio
|
|
144
|
-
racc (1.
|
|
145
|
-
rack (3.
|
|
146
|
-
rack-session (2.
|
|
153
|
+
racc (1.8.1)
|
|
154
|
+
rack (3.2.4)
|
|
155
|
+
rack-session (2.1.1)
|
|
156
|
+
base64 (>= 0.1.0)
|
|
147
157
|
rack (>= 3.0.0)
|
|
148
|
-
rack-test (2.
|
|
158
|
+
rack-test (2.2.0)
|
|
149
159
|
rack (>= 1.3)
|
|
150
|
-
rackup (2.1
|
|
160
|
+
rackup (2.2.1)
|
|
151
161
|
rack (>= 3)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
activesupport (= 7.1.3)
|
|
162
|
+
rails (8.1.1)
|
|
163
|
+
actioncable (= 8.1.1)
|
|
164
|
+
actionmailbox (= 8.1.1)
|
|
165
|
+
actionmailer (= 8.1.1)
|
|
166
|
+
actionpack (= 8.1.1)
|
|
167
|
+
actiontext (= 8.1.1)
|
|
168
|
+
actionview (= 8.1.1)
|
|
169
|
+
activejob (= 8.1.1)
|
|
170
|
+
activemodel (= 8.1.1)
|
|
171
|
+
activerecord (= 8.1.1)
|
|
172
|
+
activestorage (= 8.1.1)
|
|
173
|
+
activesupport (= 8.1.1)
|
|
165
174
|
bundler (>= 1.15.0)
|
|
166
|
-
railties (=
|
|
167
|
-
rails-dom-testing (2.
|
|
175
|
+
railties (= 8.1.1)
|
|
176
|
+
rails-dom-testing (2.3.0)
|
|
168
177
|
activesupport (>= 5.0.0)
|
|
169
178
|
minitest
|
|
170
179
|
nokogiri (>= 1.6)
|
|
171
|
-
rails-html-sanitizer (1.6.
|
|
180
|
+
rails-html-sanitizer (1.6.2)
|
|
172
181
|
loofah (~> 2.21)
|
|
173
|
-
nokogiri (
|
|
174
|
-
railties (
|
|
175
|
-
actionpack (=
|
|
176
|
-
activesupport (=
|
|
177
|
-
irb
|
|
182
|
+
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)
|
|
183
|
+
railties (8.1.1)
|
|
184
|
+
actionpack (= 8.1.1)
|
|
185
|
+
activesupport (= 8.1.1)
|
|
186
|
+
irb (~> 1.13)
|
|
178
187
|
rackup (>= 1.0.0)
|
|
179
188
|
rake (>= 12.2)
|
|
180
189
|
thor (~> 1.0, >= 1.2.2)
|
|
190
|
+
tsort (>= 0.2)
|
|
181
191
|
zeitwerk (~> 2.6)
|
|
182
192
|
rainbow (3.1.1)
|
|
183
|
-
rake (13.1
|
|
184
|
-
rdoc (6.
|
|
193
|
+
rake (13.3.1)
|
|
194
|
+
rdoc (6.15.1)
|
|
195
|
+
erb
|
|
185
196
|
psych (>= 4.0.0)
|
|
186
|
-
|
|
187
|
-
|
|
197
|
+
tsort
|
|
198
|
+
regexp_parser (2.11.3)
|
|
199
|
+
reline (0.6.2)
|
|
188
200
|
io-console (~> 0.5)
|
|
189
|
-
|
|
190
|
-
rspec (3.13.0)
|
|
201
|
+
rspec (3.13.2)
|
|
191
202
|
rspec-core (~> 3.13.0)
|
|
192
203
|
rspec-expectations (~> 3.13.0)
|
|
193
204
|
rspec-mocks (~> 3.13.0)
|
|
194
|
-
rspec-core (3.13.
|
|
205
|
+
rspec-core (3.13.6)
|
|
195
206
|
rspec-support (~> 3.13.0)
|
|
196
|
-
rspec-expectations (3.13.
|
|
207
|
+
rspec-expectations (3.13.5)
|
|
197
208
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
198
209
|
rspec-support (~> 3.13.0)
|
|
199
|
-
rspec-mocks (3.13.
|
|
210
|
+
rspec-mocks (3.13.7)
|
|
200
211
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
201
212
|
rspec-support (~> 3.13.0)
|
|
202
|
-
rspec-support (3.13.
|
|
203
|
-
rubocop (1.
|
|
213
|
+
rspec-support (3.13.6)
|
|
214
|
+
rubocop (1.81.7)
|
|
204
215
|
json (~> 2.3)
|
|
216
|
+
language_server-protocol (~> 3.17.0.2)
|
|
217
|
+
lint_roller (~> 1.1.0)
|
|
205
218
|
parallel (~> 1.10)
|
|
206
|
-
parser (>= 3.
|
|
219
|
+
parser (>= 3.3.0.2)
|
|
207
220
|
rainbow (>= 2.2.2, < 4.0)
|
|
208
|
-
regexp_parser (>=
|
|
209
|
-
|
|
210
|
-
rubocop-ast (>= 1.28.0, < 2.0)
|
|
221
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
222
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
211
223
|
ruby-progressbar (~> 1.7)
|
|
212
|
-
unicode-display_width (>= 2.4.0, <
|
|
213
|
-
rubocop-ast (1.
|
|
214
|
-
parser (>= 3.
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
rubocop (~>
|
|
219
|
-
rubocop-performance (~> 1.
|
|
220
|
-
rubocop-rails (~> 2.
|
|
221
|
-
rubocop-rake (~> 0.
|
|
222
|
-
rubocop-rspec (~>
|
|
223
|
-
rubocop-sequel (~> 0.
|
|
224
|
-
rubocop-
|
|
225
|
-
|
|
226
|
-
rubocop
|
|
227
|
-
rubocop-
|
|
224
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
225
|
+
rubocop-ast (1.47.1)
|
|
226
|
+
parser (>= 3.3.7.2)
|
|
227
|
+
prism (~> 1.4)
|
|
228
|
+
rubocop-config-umbrellio (1.81.109)
|
|
229
|
+
rubocop (~> 1.81.0)
|
|
230
|
+
rubocop-factory_bot (~> 2.27.0)
|
|
231
|
+
rubocop-performance (~> 1.26.0)
|
|
232
|
+
rubocop-rails (~> 2.33.0)
|
|
233
|
+
rubocop-rake (~> 0.7.0)
|
|
234
|
+
rubocop-rspec (~> 3.7.0)
|
|
235
|
+
rubocop-sequel (~> 0.4.0)
|
|
236
|
+
rubocop-factory_bot (2.27.1)
|
|
237
|
+
lint_roller (~> 1.1)
|
|
238
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
239
|
+
rubocop-performance (1.26.1)
|
|
240
|
+
lint_roller (~> 1.1)
|
|
241
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
242
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
243
|
+
rubocop-rails (2.33.4)
|
|
228
244
|
activesupport (>= 4.2.0)
|
|
245
|
+
lint_roller (~> 1.1)
|
|
229
246
|
rack (>= 1.1)
|
|
230
|
-
rubocop (>= 1.
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
rubocop (
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
rubocop (~> 1.
|
|
247
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
248
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
249
|
+
rubocop-rake (0.7.1)
|
|
250
|
+
lint_roller (~> 1.1)
|
|
251
|
+
rubocop (>= 1.72.1)
|
|
252
|
+
rubocop-rspec (3.7.0)
|
|
253
|
+
lint_roller (~> 1.1)
|
|
254
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
255
|
+
rubocop-sequel (0.4.1)
|
|
256
|
+
lint_roller (~> 1.1)
|
|
257
|
+
rubocop (>= 1.72.1, < 2)
|
|
238
258
|
ruby-progressbar (1.13.0)
|
|
239
|
-
|
|
240
|
-
stringio (3.1.
|
|
241
|
-
thor (1.
|
|
242
|
-
timeout (0.4.
|
|
259
|
+
securerandom (0.4.1)
|
|
260
|
+
stringio (3.1.7)
|
|
261
|
+
thor (1.4.0)
|
|
262
|
+
timeout (0.4.4)
|
|
263
|
+
tsort (0.2.0)
|
|
243
264
|
tzinfo (2.0.6)
|
|
244
265
|
concurrent-ruby (~> 1.0)
|
|
245
|
-
unicode-display_width (2.
|
|
246
|
-
|
|
247
|
-
|
|
266
|
+
unicode-display_width (3.2.0)
|
|
267
|
+
unicode-emoji (~> 4.1)
|
|
268
|
+
unicode-emoji (4.1.0)
|
|
269
|
+
uri (1.1.1)
|
|
270
|
+
useragent (0.16.11)
|
|
271
|
+
websocket-driver (0.8.0)
|
|
272
|
+
base64
|
|
248
273
|
websocket-extensions (>= 0.1.0)
|
|
249
274
|
websocket-extensions (0.1.5)
|
|
250
|
-
zeitwerk (2.
|
|
275
|
+
zeitwerk (2.7.3)
|
|
251
276
|
|
|
252
277
|
PLATFORMS
|
|
253
|
-
arm64-darwin
|
|
254
|
-
x86_64-darwin
|
|
255
|
-
x86_64-darwin-21
|
|
278
|
+
arm64-darwin
|
|
279
|
+
x86_64-darwin
|
|
256
280
|
x86_64-linux
|
|
257
281
|
|
|
258
282
|
DEPENDENCIES
|
|
@@ -264,4 +288,4 @@ DEPENDENCIES
|
|
|
264
288
|
rubocop-config-umbrellio
|
|
265
289
|
|
|
266
290
|
BUNDLED WITH
|
|
267
|
-
2.
|
|
291
|
+
2.7.2
|
data/README.md
CHANGED
|
@@ -33,18 +33,18 @@ end
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
If you want to implement Rails monkey patches for `Rails.application.config_for` and ability to
|
|
36
|
-
separate `database.yml` file you need to
|
|
37
|
-
|
|
36
|
+
separate `database.yml` file you need to execute `#apply_rails_patch!` method in your `application.rb`
|
|
37
|
+
file before application init.
|
|
38
38
|
|
|
39
39
|
```ruby
|
|
40
|
-
ConfigDefault.
|
|
40
|
+
ConfigDefault.apply_rails_patch!
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## Usage
|
|
44
44
|
|
|
45
45
|
### Default behaviour
|
|
46
46
|
|
|
47
|
-
First you need to separate you configuration to default and not.
|
|
47
|
+
First you need to separate you configuration to `.default` and not.
|
|
48
48
|
Let's check an example for Rails default config file `config/database.yml`:
|
|
49
49
|
|
|
50
50
|
```yaml
|
|
@@ -82,7 +82,8 @@ production:
|
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
All you need after creating this file in your secret location is to place this file near with
|
|
85
|
-
|
|
85
|
+
the `.default` one.
|
|
86
|
+
ConfigDefault will merge them automatically on startup.
|
|
86
87
|
|
|
87
88
|
### Your application configuration
|
|
88
89
|
|
|
@@ -17,10 +17,10 @@ module ConfigDefault::RailsApplicationPatch
|
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
module ConfigDefault::
|
|
20
|
+
module ConfigDefault::RailsPatch
|
|
21
21
|
extend self
|
|
22
22
|
|
|
23
|
-
def
|
|
23
|
+
def apply!
|
|
24
24
|
return unless Object.const_defined?(:Rails)
|
|
25
25
|
|
|
26
26
|
Rails::Application.prepend(ConfigDefault::RailsApplicationPatch)
|
data/lib/config_default.rb
CHANGED
|
@@ -4,7 +4,7 @@ require "active_support/core_ext/hash"
|
|
|
4
4
|
|
|
5
5
|
require "config_default/version"
|
|
6
6
|
require "config_default/config"
|
|
7
|
-
require "config_default/
|
|
7
|
+
require "config_default/rails_patch"
|
|
8
8
|
require "config_default/struct"
|
|
9
9
|
|
|
10
10
|
module ConfigDefault
|
|
@@ -18,8 +18,8 @@ module ConfigDefault
|
|
|
18
18
|
yield(config) if block_given?
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
def
|
|
22
|
-
ConfigDefault::
|
|
21
|
+
def apply_rails_patch!
|
|
22
|
+
ConfigDefault::RailsPatch.apply!
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def load(name, key: Rails.env, symbolize_keys: false, deep_symbolize_keys: false)
|
|
@@ -27,7 +27,7 @@ module ConfigDefault
|
|
|
27
27
|
config = load_file(name)
|
|
28
28
|
|
|
29
29
|
data = default_config.deep_merge(config)
|
|
30
|
-
data =
|
|
30
|
+
data = data[key] if key
|
|
31
31
|
|
|
32
32
|
return {} if data.nil?
|
|
33
33
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: config_default
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stepan Kirushkin
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -46,7 +45,7 @@ files:
|
|
|
46
45
|
- bin/setup
|
|
47
46
|
- lib/config_default.rb
|
|
48
47
|
- lib/config_default/config.rb
|
|
49
|
-
- lib/config_default/
|
|
48
|
+
- lib/config_default/rails_patch.rb
|
|
50
49
|
- lib/config_default/struct.rb
|
|
51
50
|
- lib/config_default/version.rb
|
|
52
51
|
homepage: https://github.com/skirushkin/config_default
|
|
@@ -56,7 +55,6 @@ metadata:
|
|
|
56
55
|
homepage_uri: https://github.com/skirushkin/config_default
|
|
57
56
|
source_code_uri: https://github.com/skirushkin/config_default
|
|
58
57
|
changelog_uri: https://github.com/skirushkin/config_default/blob/master/CHANGELOG.md
|
|
59
|
-
post_install_message:
|
|
60
58
|
rdoc_options: []
|
|
61
59
|
require_paths:
|
|
62
60
|
- lib
|
|
@@ -71,8 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
71
69
|
- !ruby/object:Gem::Version
|
|
72
70
|
version: '0'
|
|
73
71
|
requirements: []
|
|
74
|
-
rubygems_version: 3.
|
|
75
|
-
signing_key:
|
|
72
|
+
rubygems_version: 3.7.2
|
|
76
73
|
specification_version: 4
|
|
77
74
|
summary: A simple way to manage default and env configuration in Rails.
|
|
78
75
|
test_files: []
|