texd 0.6.0 → 0.7.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: f1a1c4b4906b676b7984b8de4ea61dc5821d03cd107ba9d8b6dc27f61f1724e5
4
- data.tar.gz: c62530f487753e892469fac3f4896f393e8c61e9f742f24374b66da30b010ace
3
+ metadata.gz: dcdd96e631b0a2ddbaffd1756c7887cd3a99ce6a3586501a667172b3bbd830ef
4
+ data.tar.gz: 0fa736f7e09c9a115c6ba3c65c3894c9e342843a63f4276fb4828f3ffb472c9a
5
5
  SHA512:
6
- metadata.gz: b7f7b16b12431596186fdd0545442b5962efb16c8c01ad55a834442123b0200925bd5cbe0d3f2b4c3ce3f2dfde7d5e68b21b7418c9e715ea6f97b5befcc48612
7
- data.tar.gz: c8003cddafe5187fe8726f4259847b7d229890250577d8e93261e14870f345a669320e530a2ab611f350aca8d17891b1447ba01edd9e2cb580bd063f9fafe661
6
+ metadata.gz: e7d5463acdc6f9208a0705defd4f21abece52e9841a76ce22c7f63aa8e272b64d9c0bd38b4f615698ce080b60a3bd043ccbf006961a63b06cb9e59c0f13d06e1
7
+ data.tar.gz: 3a130a333d6270433e7becc2cc068da4e9b7a85848f5bc2b2d0a151dfad490f5d97efc4b04081501b8d7d6e7f5873d95f1cce4424b5e057d36a1f6551b0d86e6
data/.rubocop.yml CHANGED
@@ -1,12 +1,13 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rails
3
3
  - rubocop-rake
4
4
  - rubocop-rspec
5
+ - rubocop-rspec_rails
5
6
 
6
7
  AllCops:
7
8
  DisplayCopNames: true
8
9
  StyleGuideCopsOnly: false
9
- TargetRubyVersion: 2.7
10
+ TargetRubyVersion: 3.2
10
11
  NewCops: enable
11
12
 
12
13
  ## Layout Cops - https://docs.rubocop.org/rubocop/cops_layout.html
@@ -194,7 +195,6 @@ Style/EndlessMethod:
194
195
 
195
196
  Style/ArgumentsForwarding:
196
197
  Enabled: true
197
- AllowOnlyRestArgument: true
198
198
 
199
199
  Style/CollectionCompact:
200
200
  Enabled: true
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.6.0...master)
4
4
 
5
+ ## v0.7.0 - 2025-10-20
6
+
7
+ **Changes**
8
+
9
+ - Drop official support for Ruby < 3.2 and Rails < 7.0
10
+ - Add support for Rails 8.1.0.rc1
11
+ - Set `required_ruby_version` to >= 3.2.0
12
+
5
13
  ## v0.6.0 - 2024-02-13
6
14
 
7
15
  **Changes**
data/Gemfile CHANGED
@@ -14,6 +14,7 @@ group :development do
14
14
  gem "rubocop-rails"
15
15
  gem "rubocop-rake"
16
16
  gem "rubocop-rspec"
17
+ gem "rubocop-rspec_rails"
17
18
  end
18
19
 
19
20
  # keep in sync with gemfiles/*/Gemfile
data/Gemfile.lock CHANGED
@@ -1,116 +1,117 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- texd (0.6.0)
4
+ texd (0.7.0)
5
5
  multipart-post (~> 2.0)
6
- rails (>= 6.0, < 8)
6
+ rails (>= 6.0, < 9)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (7.1.3)
12
- actionpack (= 7.1.3)
13
- activesupport (= 7.1.3)
11
+ actioncable (7.2.2.2)
12
+ actionpack (= 7.2.2.2)
13
+ activesupport (= 7.2.2.2)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
16
  zeitwerk (~> 2.6)
17
- actionmailbox (7.1.3)
18
- actionpack (= 7.1.3)
19
- activejob (= 7.1.3)
20
- activerecord (= 7.1.3)
21
- activestorage (= 7.1.3)
22
- activesupport (= 7.1.3)
23
- mail (>= 2.7.1)
24
- net-imap
25
- net-pop
26
- net-smtp
27
- actionmailer (7.1.3)
28
- actionpack (= 7.1.3)
29
- actionview (= 7.1.3)
30
- activejob (= 7.1.3)
31
- activesupport (= 7.1.3)
32
- mail (~> 2.5, >= 2.5.4)
33
- net-imap
34
- net-pop
35
- net-smtp
17
+ actionmailbox (7.2.2.2)
18
+ actionpack (= 7.2.2.2)
19
+ activejob (= 7.2.2.2)
20
+ activerecord (= 7.2.2.2)
21
+ activestorage (= 7.2.2.2)
22
+ activesupport (= 7.2.2.2)
23
+ mail (>= 2.8.0)
24
+ actionmailer (7.2.2.2)
25
+ actionpack (= 7.2.2.2)
26
+ actionview (= 7.2.2.2)
27
+ activejob (= 7.2.2.2)
28
+ activesupport (= 7.2.2.2)
29
+ mail (>= 2.8.0)
36
30
  rails-dom-testing (~> 2.2)
37
- actionpack (7.1.3)
38
- actionview (= 7.1.3)
39
- activesupport (= 7.1.3)
31
+ actionpack (7.2.2.2)
32
+ actionview (= 7.2.2.2)
33
+ activesupport (= 7.2.2.2)
40
34
  nokogiri (>= 1.8.5)
41
35
  racc
42
- rack (>= 2.2.4)
36
+ rack (>= 2.2.4, < 3.2)
43
37
  rack-session (>= 1.0.1)
44
38
  rack-test (>= 0.6.3)
45
39
  rails-dom-testing (~> 2.2)
46
40
  rails-html-sanitizer (~> 1.6)
47
- actiontext (7.1.3)
48
- actionpack (= 7.1.3)
49
- activerecord (= 7.1.3)
50
- activestorage (= 7.1.3)
51
- activesupport (= 7.1.3)
41
+ useragent (~> 0.16)
42
+ actiontext (7.2.2.2)
43
+ actionpack (= 7.2.2.2)
44
+ activerecord (= 7.2.2.2)
45
+ activestorage (= 7.2.2.2)
46
+ activesupport (= 7.2.2.2)
52
47
  globalid (>= 0.6.0)
53
48
  nokogiri (>= 1.8.5)
54
- actionview (7.1.3)
55
- activesupport (= 7.1.3)
49
+ actionview (7.2.2.2)
50
+ activesupport (= 7.2.2.2)
56
51
  builder (~> 3.1)
57
52
  erubi (~> 1.11)
58
53
  rails-dom-testing (~> 2.2)
59
54
  rails-html-sanitizer (~> 1.6)
60
- activejob (7.1.3)
61
- activesupport (= 7.1.3)
55
+ activejob (7.2.2.2)
56
+ activesupport (= 7.2.2.2)
62
57
  globalid (>= 0.3.6)
63
- activemodel (7.1.3)
64
- activesupport (= 7.1.3)
65
- activerecord (7.1.3)
66
- activemodel (= 7.1.3)
67
- activesupport (= 7.1.3)
58
+ activemodel (7.2.2.2)
59
+ activesupport (= 7.2.2.2)
60
+ activerecord (7.2.2.2)
61
+ activemodel (= 7.2.2.2)
62
+ activesupport (= 7.2.2.2)
68
63
  timeout (>= 0.4.0)
69
- activestorage (7.1.3)
70
- actionpack (= 7.1.3)
71
- activejob (= 7.1.3)
72
- activerecord (= 7.1.3)
73
- activesupport (= 7.1.3)
64
+ activestorage (7.2.2.2)
65
+ actionpack (= 7.2.2.2)
66
+ activejob (= 7.2.2.2)
67
+ activerecord (= 7.2.2.2)
68
+ activesupport (= 7.2.2.2)
74
69
  marcel (~> 1.0)
75
- activesupport (7.1.3)
70
+ activesupport (7.2.2.2)
76
71
  base64
72
+ benchmark (>= 0.3)
77
73
  bigdecimal
78
- concurrent-ruby (~> 1.0, >= 1.0.2)
74
+ concurrent-ruby (~> 1.0, >= 1.3.1)
79
75
  connection_pool (>= 2.2.5)
80
76
  drb
81
77
  i18n (>= 1.6, < 2)
78
+ logger (>= 1.4.2)
82
79
  minitest (>= 5.1)
83
- mutex_m
84
- tzinfo (~> 2.0)
85
- ast (2.4.2)
86
- base64 (0.2.0)
87
- bigdecimal (3.1.6)
88
- builder (3.2.4)
89
- byebug (11.1.3)
80
+ securerandom (>= 0.3)
81
+ tzinfo (~> 2.0, >= 2.0.5)
82
+ ast (2.4.3)
83
+ base64 (0.3.0)
84
+ benchmark (0.4.1)
85
+ bigdecimal (3.3.1)
86
+ builder (3.3.0)
87
+ byebug (12.0.0)
90
88
  coderay (1.1.3)
91
- combustion (1.4.0)
89
+ combustion (1.5.0)
92
90
  activesupport (>= 3.0.0)
93
91
  railties (>= 3.0.0)
94
92
  thor (>= 0.14.6)
95
- concurrent-ruby (1.2.3)
96
- connection_pool (2.4.1)
93
+ concurrent-ruby (1.3.5)
94
+ connection_pool (2.5.4)
97
95
  crass (1.0.6)
98
- date (3.3.4)
99
- diff-lcs (1.5.1)
100
- drb (2.2.0)
101
- ruby2_keywords
102
- erubi (1.12.0)
103
- globalid (1.2.1)
96
+ date (3.4.1)
97
+ diff-lcs (1.6.2)
98
+ drb (2.2.3)
99
+ erb (5.1.1)
100
+ erubi (1.13.1)
101
+ globalid (1.3.0)
104
102
  activesupport (>= 6.1)
105
- i18n (1.14.1)
103
+ i18n (1.14.7)
106
104
  concurrent-ruby (~> 1.0)
107
- io-console (0.7.2)
108
- irb (1.11.2)
109
- rdoc
105
+ io-console (0.8.1)
106
+ irb (1.15.2)
107
+ pp (>= 0.6.0)
108
+ rdoc (>= 4.0.0)
110
109
  reline (>= 0.4.2)
111
- json (2.7.1)
112
- language_server-protocol (3.17.0.3)
113
- loofah (2.22.0)
110
+ json (2.15.1)
111
+ language_server-protocol (3.17.0.5)
112
+ lint_roller (1.1.0)
113
+ logger (1.7.0)
114
+ loofah (2.24.1)
114
115
  crass (~> 1.0.2)
115
116
  nokogiri (>= 1.12.0)
116
117
  mail (2.8.1)
@@ -118,149 +119,160 @@ GEM
118
119
  net-imap
119
120
  net-pop
120
121
  net-smtp
121
- marcel (1.0.2)
122
- method_source (1.0.0)
122
+ marcel (1.1.0)
123
+ method_source (1.1.0)
123
124
  mini_mime (1.1.5)
124
- mini_portile2 (2.8.5)
125
- minitest (5.22.2)
126
- multipart-post (2.4.0)
127
- mutex_m (0.2.0)
128
- net-imap (0.4.10)
125
+ mini_portile2 (2.8.9)
126
+ minitest (5.26.0)
127
+ multipart-post (2.4.1)
128
+ net-imap (0.5.12)
129
129
  date
130
130
  net-protocol
131
131
  net-pop (0.1.2)
132
132
  net-protocol
133
133
  net-protocol (0.2.2)
134
134
  timeout
135
- net-smtp (0.4.0.1)
135
+ net-smtp (0.5.1)
136
136
  net-protocol
137
- nio4r (2.7.0)
138
- nokogiri (1.15.5)
137
+ nio4r (2.7.4)
138
+ nokogiri (1.15.7)
139
139
  mini_portile2 (~> 2.8.2)
140
140
  racc (~> 1.4)
141
- nokogiri (1.15.5-x86_64-linux)
141
+ nokogiri (1.15.7-x86_64-linux)
142
142
  racc (~> 1.4)
143
- parallel (1.24.0)
144
- parser (3.3.0.5)
143
+ parallel (1.27.0)
144
+ parser (3.3.9.0)
145
145
  ast (~> 2.4.1)
146
146
  racc
147
- pry (0.14.2)
147
+ pp (0.6.3)
148
+ prettyprint
149
+ prettyprint (0.2.0)
150
+ prism (1.6.0)
151
+ pry (0.15.2)
148
152
  coderay (~> 1.1)
149
153
  method_source (~> 1.0)
150
- pry-byebug (3.10.1)
151
- byebug (~> 11.0)
152
- pry (>= 0.13, < 0.15)
153
- psych (5.1.2)
154
+ pry-byebug (3.11.0)
155
+ byebug (~> 12.0)
156
+ pry (>= 0.13, < 0.16)
157
+ psych (5.2.6)
158
+ date
154
159
  stringio
155
- racc (1.7.3)
156
- rack (3.0.9)
157
- rack-session (2.0.0)
160
+ racc (1.8.1)
161
+ rack (3.1.18)
162
+ rack-session (2.1.1)
163
+ base64 (>= 0.1.0)
158
164
  rack (>= 3.0.0)
159
- rack-test (2.1.0)
165
+ rack-test (2.2.0)
160
166
  rack (>= 1.3)
161
- rackup (2.1.0)
167
+ rackup (2.2.1)
162
168
  rack (>= 3)
163
- webrick (~> 1.8)
164
- rails (7.1.3)
165
- actioncable (= 7.1.3)
166
- actionmailbox (= 7.1.3)
167
- actionmailer (= 7.1.3)
168
- actionpack (= 7.1.3)
169
- actiontext (= 7.1.3)
170
- actionview (= 7.1.3)
171
- activejob (= 7.1.3)
172
- activemodel (= 7.1.3)
173
- activerecord (= 7.1.3)
174
- activestorage (= 7.1.3)
175
- activesupport (= 7.1.3)
169
+ rails (7.2.2.2)
170
+ actioncable (= 7.2.2.2)
171
+ actionmailbox (= 7.2.2.2)
172
+ actionmailer (= 7.2.2.2)
173
+ actionpack (= 7.2.2.2)
174
+ actiontext (= 7.2.2.2)
175
+ actionview (= 7.2.2.2)
176
+ activejob (= 7.2.2.2)
177
+ activemodel (= 7.2.2.2)
178
+ activerecord (= 7.2.2.2)
179
+ activestorage (= 7.2.2.2)
180
+ activesupport (= 7.2.2.2)
176
181
  bundler (>= 1.15.0)
177
- railties (= 7.1.3)
178
- rails-dom-testing (2.2.0)
182
+ railties (= 7.2.2.2)
183
+ rails-dom-testing (2.3.0)
179
184
  activesupport (>= 5.0.0)
180
185
  minitest
181
186
  nokogiri (>= 1.6)
182
- rails-html-sanitizer (1.6.0)
187
+ rails-html-sanitizer (1.6.2)
183
188
  loofah (~> 2.21)
184
- nokogiri (~> 1.14)
185
- railties (7.1.3)
186
- actionpack (= 7.1.3)
187
- activesupport (= 7.1.3)
188
- irb
189
+ 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)
190
+ railties (7.2.2.2)
191
+ actionpack (= 7.2.2.2)
192
+ activesupport (= 7.2.2.2)
193
+ irb (~> 1.13)
189
194
  rackup (>= 1.0.0)
190
195
  rake (>= 12.2)
191
196
  thor (~> 1.0, >= 1.2.2)
192
197
  zeitwerk (~> 2.6)
193
198
  rainbow (3.1.1)
194
- rake (13.1.0)
195
- rdoc (6.6.2)
199
+ rake (13.3.0)
200
+ rdoc (6.15.0)
201
+ erb
196
202
  psych (>= 4.0.0)
197
- regexp_parser (2.9.0)
198
- reline (0.4.2)
203
+ tsort
204
+ regexp_parser (2.11.3)
205
+ reline (0.6.2)
199
206
  io-console (~> 0.5)
200
- rexml (3.2.6)
201
- rspec (3.13.0)
207
+ rspec (3.13.1)
202
208
  rspec-core (~> 3.13.0)
203
209
  rspec-expectations (~> 3.13.0)
204
210
  rspec-mocks (~> 3.13.0)
205
- rspec-core (3.13.0)
211
+ rspec-core (3.13.6)
206
212
  rspec-support (~> 3.13.0)
207
- rspec-expectations (3.13.0)
213
+ rspec-expectations (3.13.5)
208
214
  diff-lcs (>= 1.2.0, < 2.0)
209
215
  rspec-support (~> 3.13.0)
210
- rspec-mocks (3.13.0)
216
+ rspec-mocks (3.13.6)
211
217
  diff-lcs (>= 1.2.0, < 2.0)
212
218
  rspec-support (~> 3.13.0)
213
- rspec-rails (6.1.1)
214
- actionpack (>= 6.1)
215
- activesupport (>= 6.1)
216
- railties (>= 6.1)
217
- rspec-core (~> 3.12)
218
- rspec-expectations (~> 3.12)
219
- rspec-mocks (~> 3.12)
220
- rspec-support (~> 3.12)
221
- rspec-support (3.13.0)
222
- rubocop (1.60.2)
219
+ rspec-rails (8.0.2)
220
+ actionpack (>= 7.2)
221
+ activesupport (>= 7.2)
222
+ railties (>= 7.2)
223
+ rspec-core (~> 3.13)
224
+ rspec-expectations (~> 3.13)
225
+ rspec-mocks (~> 3.13)
226
+ rspec-support (~> 3.13)
227
+ rspec-support (3.13.6)
228
+ rubocop (1.81.1)
223
229
  json (~> 2.3)
224
- language_server-protocol (>= 3.17.0)
230
+ language_server-protocol (~> 3.17.0.2)
231
+ lint_roller (~> 1.1.0)
225
232
  parallel (~> 1.10)
226
233
  parser (>= 3.3.0.2)
227
234
  rainbow (>= 2.2.2, < 4.0)
228
- regexp_parser (>= 1.8, < 3.0)
229
- rexml (>= 3.2.5, < 4.0)
230
- rubocop-ast (>= 1.30.0, < 2.0)
235
+ regexp_parser (>= 2.9.3, < 3.0)
236
+ rubocop-ast (>= 1.47.1, < 2.0)
231
237
  ruby-progressbar (~> 1.7)
232
- unicode-display_width (>= 2.4.0, < 3.0)
233
- rubocop-ast (1.30.0)
234
- parser (>= 3.2.1.0)
235
- rubocop-capybara (2.20.0)
236
- rubocop (~> 1.41)
237
- rubocop-factory_bot (2.25.1)
238
- rubocop (~> 1.41)
239
- rubocop-rails (2.23.1)
238
+ unicode-display_width (>= 2.4.0, < 4.0)
239
+ rubocop-ast (1.47.1)
240
+ parser (>= 3.3.7.2)
241
+ prism (~> 1.4)
242
+ rubocop-rails (2.33.4)
240
243
  activesupport (>= 4.2.0)
244
+ lint_roller (~> 1.1)
241
245
  rack (>= 1.1)
242
- rubocop (>= 1.33.0, < 2.0)
243
- rubocop-ast (>= 1.30.0, < 2.0)
244
- rubocop-rake (0.6.0)
245
- rubocop (~> 1.0)
246
- rubocop-rspec (2.26.1)
247
- rubocop (~> 1.40)
248
- rubocop-capybara (~> 2.17)
249
- rubocop-factory_bot (~> 2.22)
246
+ rubocop (>= 1.75.0, < 2.0)
247
+ rubocop-ast (>= 1.44.0, < 2.0)
248
+ rubocop-rake (0.7.1)
249
+ lint_roller (~> 1.1)
250
+ rubocop (>= 1.72.1)
251
+ rubocop-rspec (3.7.0)
252
+ lint_roller (~> 1.1)
253
+ rubocop (~> 1.72, >= 1.72.1)
254
+ rubocop-rspec_rails (2.31.0)
255
+ lint_roller (~> 1.1)
256
+ rubocop (~> 1.72, >= 1.72.1)
257
+ rubocop-rspec (~> 3.5)
250
258
  ruby-progressbar (1.13.0)
251
- ruby2_keywords (0.0.5)
252
- stringio (3.1.0)
253
- thor (1.3.0)
254
- timeout (0.4.1)
259
+ securerandom (0.4.1)
260
+ stringio (3.1.7)
261
+ thor (1.4.0)
262
+ timeout (0.4.3)
263
+ tsort (0.2.0)
255
264
  tzinfo (2.0.6)
256
265
  concurrent-ruby (~> 1.0)
257
- unicode-display_width (2.5.0)
258
- webrick (1.8.1)
259
- websocket-driver (0.7.6)
266
+ unicode-display_width (3.2.0)
267
+ unicode-emoji (~> 4.1)
268
+ unicode-emoji (4.1.0)
269
+ useragent (0.16.11)
270
+ websocket-driver (0.8.0)
271
+ base64
260
272
  websocket-extensions (>= 0.1.0)
261
273
  websocket-extensions (0.1.5)
262
- yard (0.9.34)
263
- zeitwerk (2.6.13)
274
+ yard (0.9.37)
275
+ zeitwerk (2.7.3)
264
276
 
265
277
  PLATFORMS
266
278
  ruby
@@ -278,8 +290,9 @@ DEPENDENCIES
278
290
  rubocop-rails
279
291
  rubocop-rake
280
292
  rubocop-rspec
293
+ rubocop-rspec_rails
281
294
  texd!
282
295
  yard
283
296
 
284
297
  BUNDLED WITH
285
- 2.4.22
298
+ 2.7.2
data/Makefile CHANGED
@@ -4,81 +4,90 @@ SPEC =
4
4
  test: test-stable rubocop
5
5
 
6
6
  .PHONY: test-stable
7
- test-stable: rails-6.0 rails-6.1 rails-7.0 rails-7.1
7
+ test-stable: rails-7.0 rails-7.1 rails-7.2 rails-8.0
8
8
 
9
9
  .PHONY: test-all
10
- test-all: test rails-main
10
+ test-all: test rails-main rails-8.1
11
11
 
12
- # TODO: make rails-* tasks DRY?
13
-
14
- .PHONY: rails-6.0
15
- rails-6.0:
16
- ifeq ($(SPEC),)
17
- export BUNDLE_GEMFILE=gemfiles/rails-6.0/Gemfile && bundle --quiet && bundle exec rake spec
18
- else
19
- export BUNDLE_GEMFILE=gemfiles/rails-6.0/Gemfile && bundle --quiet && bundle exec rspec $(SPEC)
20
- endif
21
-
22
- .PHONY: rails-6.1
23
- rails-6.1:
24
- ifeq ($(SPEC),)
25
- export BUNDLE_GEMFILE=gemfiles/rails-6.1/Gemfile && bundle --quiet && bundle exec rake spec
26
- else
27
- export BUNDLE_GEMFILE=gemfiles/rails-6.1/Gemfile && bundle --quiet && bundle exec rspec $(SPEC)
28
- endif
12
+ .PHONY: update-all-dependencies
13
+ update-all-dependencies: update test-all
14
+ git add Gemfile.lock gemfiles/*/Gemfile.lock
15
+ git commit -m "update dependencies"
29
16
 
30
17
  .PHONY: rails-7.0
31
18
  rails-7.0:
32
- ifeq ($(SPEC),)
33
- export BUNDLE_GEMFILE=gemfiles/rails-7.0/Gemfile && bundle --quiet && bundle exec rake spec
34
- else
35
- export BUNDLE_GEMFILE=gemfiles/rails-7.0/Gemfile && bundle --quiet && bundle exec rspec $(SPEC)
36
- endif
19
+ bin/make-helper.sh 7.0 bundle --quiet
20
+ bin/make-helper.sh 7.0 rspec $(SPEC)
37
21
 
38
22
  .PHONY: rails-7.1
39
23
  rails-7.1:
40
- ifeq ($(SPEC),)
41
- export BUNDLE_GEMFILE=gemfiles/rails-7.1/Gemfile && bundle --quiet && bundle exec rake spec
42
- else
43
- export BUNDLE_GEMFILE=gemfiles/rails-7.1/Gemfile && bundle --quiet && bundle exec rspec $(SPEC)
44
- endif
24
+ bin/make-helper.sh 7.1 bundle --quiet
25
+ bin/make-helper.sh 7.1 rspec $(SPEC)
26
+
27
+ .PHONY: rails-7.2
28
+ rails-7.2:
29
+ bin/make-helper.sh 7.2 bundle --quiet
30
+ bin/make-helper.sh 7.2 rspec $(SPEC)
31
+
32
+ .PHONY: rails-8.0
33
+ rails-8.0:
34
+ bin/make-helper.sh 8.0 bundle --quiet
35
+ bin/make-helper.sh 8.0 rspec $(SPEC)
36
+
37
+ .PHONY: rails-8.1
38
+ rails-8.1:
39
+ bin/make-helper.sh 8.1 bundle --quiet
40
+ bin/make-helper.sh 8.1 rspec $(SPEC)
45
41
 
46
42
  .PHONY: rails-main
47
43
  rails-main:
48
- ifeq ($(SPEC),)
49
- export BUNDLE_GEMFILE=gemfiles/rails-main/Gemfile && bundle --quiet && bundle exec rake spec
50
- else
51
- export BUNDLE_GEMFILE=gemfiles/rails-main/Gemfile && bundle --quiet && bundle exec rspec $(SPEC)
52
- endif
44
+ bin/make-helper.sh main bundle --quiet
45
+ bin/make-helper.sh main rspec $(SPEC)
46
+
47
+ .PHONY: setup
48
+ setup:
49
+ bin/make-helper.sh 7.0 gem install bundler:2.7.2
50
+ bin/make-helper.sh 7.1 gem install bundler:2.7.2
51
+ bin/make-helper.sh 7.2 gem install bundler:2.7.2
52
+ bin/make-helper.sh 8.0 gem install bundler:2.7.2
53
+ bin/make-helper.sh 8.1 gem install bundler:2.7.2
54
+ bin/make-helper.sh main gem install bundler:2.7.2
55
+ bin/make-helper.sh . gem install bundler:2.7.2
53
56
 
54
57
  .PHONY: update
55
58
  update:
56
- export BUNDLE_GEMFILE=gemfiles/rails-6.0/Gemfile && bundle update
57
- export BUNDLE_GEMFILE=gemfiles/rails-6.1/Gemfile && bundle update
58
- export BUNDLE_GEMFILE=gemfiles/rails-7.0/Gemfile && bundle update
59
- export BUNDLE_GEMFILE=gemfiles/rails-7.1/Gemfile && bundle update
60
- export BUNDLE_GEMFILE=gemfiles/rails-main/Gemfile && bundle update
61
- export BUNDLE_GEMFILE=Gemfile && bundle update
59
+ bin/make-helper.sh 7.0 bundle update && bin/make-helper.sh 7.0 bundle clean --force
60
+ bin/make-helper.sh 7.1 bundle update && bin/make-helper.sh 7.1 bundle clean --force
61
+ bin/make-helper.sh 7.2 bundle update && bin/make-helper.sh 7.2 bundle clean --force
62
+ bin/make-helper.sh 8.0 bundle update && bin/make-helper.sh 8.0 bundle clean --force
63
+ bin/make-helper.sh 8.1 bundle update && bin/make-helper.sh 8.1 bundle clean --force
64
+ bin/make-helper.sh main bundle update && bin/make-helper.sh main bundle clean --force
65
+ bin/make-helper.sh . bundle update && bin/make-helper.sh . bundle clean --force
62
66
 
63
67
  .PHONY: rubocop
64
68
  rubocop:
65
- export BUNDLE_GEMFILE=Gemfile && bundle --quiet && bundle exec rake rubocop:autocorrect
69
+ bin/make-helper.sh . bundle --quiet
70
+ bin/make-helper.sh . rake rubocop:autocorrect
66
71
 
67
72
  .PHONY: docs
68
73
  docs:
69
- export BUNDLE_GEMFILE=Gemfile && bundle --quiet && bundle exec yard doc --markup markdown 'lib/**/*.rb' - README.md CHANGELOG.md LICENSE
74
+ bin/make-helper.sh . bundle --quiet
75
+ bin/make-helper.sh . yard doc --markup markdown 'lib/**/*.rb' - README.md CHANGELOG.md LICENSE
70
76
 
71
77
  .PHONY: texd-docker
72
78
  texd-docker:
73
- rm -rvf tmp/jobs tmp/refs
74
- mkdir -p tmp/jobs tmp/refs
79
+ rm -rvf tmp/jobs tmp/refs tmp/home
80
+ mkdir -p tmp/jobs tmp/refs tmp/home
75
81
  docker run --rm \
76
82
  --name texd-dev \
77
83
  -p 127.0.0.1:2201:2201 \
78
- -v $$(pwd)/tmp/jobs:/texd \
79
- -v $$(pwd)/tmp/refs:/refs \
84
+ -e HOME=/texd/home \
85
+ -v $$(pwd)/tmp/jobs:/texd/jobs \
86
+ -v $$(pwd)/tmp/refs:/texd/refs \
87
+ -v $$(pwd)/tmp/home:/texd/home \
80
88
  -u $$(id -u):$$(id -g) \
81
89
  ghcr.io/digineo/texd \
82
- --reference-store dir:///refs \
90
+ --job-directory /texd/jobs \
91
+ --reference-store dir:///texd/refs \
83
92
  --retention-policy=purge-on-start \
84
93
  --keep-jobs always