texd 0.5.0 → 0.6.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: 7b96f50cf6e5741a667f9f0bdb41d6e781c50a6d1a67b4637f1c4e1e12a45176
4
- data.tar.gz: 15028be97e8a7e86025998dc54cb8e502976dd3752bc88f68b55dac32309e4ed
3
+ metadata.gz: f1a1c4b4906b676b7984b8de4ea61dc5821d03cd107ba9d8b6dc27f61f1724e5
4
+ data.tar.gz: c62530f487753e892469fac3f4896f393e8c61e9f742f24374b66da30b010ace
5
5
  SHA512:
6
- metadata.gz: d5a1f0f363874f090a28ced8d90a13ebcab331b3410833304ea0f5273143668b8e89e227a94045547badf0fcdf6dd7690f565272501e72b0b13764c8e673c530
7
- data.tar.gz: 513fc1c93cbcab5941eda498453f23914149314709b8d67738470a43f6c4fbc65cf0c636ab2148f8872155b2562e6df4f79f9c29a09b7052e92ca61f1fb3c0b9
6
+ metadata.gz: b7f7b16b12431596186fdd0545442b5962efb16c8c01ad55a834442123b0200925bd5cbe0d3f2b4c3ce3f2dfde7d5e68b21b7418c9e715ea6f97b5befcc48612
7
+ data.tar.gz: c8003cddafe5187fe8726f4259847b7d229890250577d8e93261e14870f345a669320e530a2ab611f350aca8d17891b1447ba01edd9e2cb580bd063f9fafe661
data/.rubocop.yml CHANGED
@@ -1,3 +1,8 @@
1
+ require:
2
+ - rubocop-rails
3
+ - rubocop-rake
4
+ - rubocop-rspec
5
+
1
6
  AllCops:
2
7
  DisplayCopNames: true
3
8
  StyleGuideCopsOnly: false
@@ -329,8 +334,16 @@ Style/TrailingCommaInArrayLiteral:
329
334
  Style/TrailingCommaInHashLiteral:
330
335
  EnforcedStyleForMultiline: comma
331
336
 
337
+ Style/SuperWithArgsParentheses:
338
+ Enabled: false # cop doesn't provide a preferred style option
339
+
332
340
  ## RSpec Cops - https://docs.rubocop.org/rubocop-rspec/cops_rspec.html
333
341
 
342
+ RSpec:
343
+ Language:
344
+ Expectations:
345
+ - expect_escape
346
+
334
347
  RSpec/ExampleLength:
335
348
  Max: 10
336
349
  CountAsOne: [array, hash, heredoc]
data/CHANGELOG.md CHANGED
@@ -1,6 +1,40 @@
1
1
  ## Unreleased
2
2
 
3
- [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.5.0...master)
3
+ [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.6.0...master)
4
+
5
+ ## v0.6.0 - 2024-02-13
6
+
7
+ **Changes**
8
+
9
+ - Add another optional argument to the `escape` helper, to disallow replacing
10
+ of hyphens.
11
+
12
+ Previously, `escape(str, typographic: true)` did replace the hyphen between
13
+ word-characters with `"=` (i.e. the babel shorthand for a hard-hyphen in German
14
+ locale).
15
+
16
+ Now it is possible to disable the hyphenation replacement explicitly:
17
+
18
+ ```erb
19
+ <%= escape str, hyphenation: false %>
20
+ ```
21
+
22
+ The default value for the `hyphenation` option defaults to the value given to
23
+ the `typographic` option (which in turn is true by default).
24
+
25
+
26
+ [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.5.1...v0.6.0)
27
+
28
+ ## v0.5.1 - 2022-10-10
29
+
30
+ **Changes**
31
+
32
+ This is a maintenance release. Expect full compatability with v0.5.0.
33
+
34
+ - update dependencies
35
+ - add specs for rails/main
36
+
37
+ [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.5.0...v0.5.1)
4
38
 
5
39
  ## v0.5.0 - 2022-07-22
6
40
 
data/Gemfile CHANGED
@@ -3,6 +3,7 @@
3
3
  source "https://rubygems.org"
4
4
  gemspec
5
5
 
6
+ gem "nokogiri", "~> 1.15.5" # remove constraint when min. RUBY_VERSION >= 3
6
7
  gem "pry-byebug"
7
8
  gem "rails", "~> 7.0"
8
9
 
@@ -14,3 +15,11 @@ group :development do
14
15
  gem "rubocop-rake"
15
16
  gem "rubocop-rspec"
16
17
  end
18
+
19
+ # keep in sync with gemfiles/*/Gemfile
20
+ group :development, :test do
21
+ gem "combustion"
22
+ gem "rake", "~> 13.0"
23
+ gem "rspec", "~> 3.0"
24
+ gem "rspec-rails"
25
+ end
data/Gemfile.lock CHANGED
@@ -1,225 +1,266 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- texd (0.5.0)
4
+ texd (0.6.0)
5
5
  multipart-post (~> 2.0)
6
6
  rails (>= 6.0, < 8)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (7.0.3.1)
12
- actionpack (= 7.0.3.1)
13
- activesupport (= 7.0.3.1)
11
+ actioncable (7.1.3)
12
+ actionpack (= 7.1.3)
13
+ activesupport (= 7.1.3)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
- actionmailbox (7.0.3.1)
17
- actionpack (= 7.0.3.1)
18
- activejob (= 7.0.3.1)
19
- activerecord (= 7.0.3.1)
20
- activestorage (= 7.0.3.1)
21
- activesupport (= 7.0.3.1)
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)
22
23
  mail (>= 2.7.1)
23
24
  net-imap
24
25
  net-pop
25
26
  net-smtp
26
- actionmailer (7.0.3.1)
27
- actionpack (= 7.0.3.1)
28
- actionview (= 7.0.3.1)
29
- activejob (= 7.0.3.1)
30
- activesupport (= 7.0.3.1)
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)
31
32
  mail (~> 2.5, >= 2.5.4)
32
33
  net-imap
33
34
  net-pop
34
35
  net-smtp
35
- rails-dom-testing (~> 2.0)
36
- actionpack (7.0.3.1)
37
- actionview (= 7.0.3.1)
38
- activesupport (= 7.0.3.1)
39
- rack (~> 2.0, >= 2.2.0)
36
+ rails-dom-testing (~> 2.2)
37
+ actionpack (7.1.3)
38
+ actionview (= 7.1.3)
39
+ activesupport (= 7.1.3)
40
+ nokogiri (>= 1.8.5)
41
+ racc
42
+ rack (>= 2.2.4)
43
+ rack-session (>= 1.0.1)
40
44
  rack-test (>= 0.6.3)
41
- rails-dom-testing (~> 2.0)
42
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
43
- actiontext (7.0.3.1)
44
- actionpack (= 7.0.3.1)
45
- activerecord (= 7.0.3.1)
46
- activestorage (= 7.0.3.1)
47
- activesupport (= 7.0.3.1)
45
+ rails-dom-testing (~> 2.2)
46
+ 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)
48
52
  globalid (>= 0.6.0)
49
53
  nokogiri (>= 1.8.5)
50
- actionview (7.0.3.1)
51
- activesupport (= 7.0.3.1)
54
+ actionview (7.1.3)
55
+ activesupport (= 7.1.3)
52
56
  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.3.1)
57
- activesupport (= 7.0.3.1)
57
+ erubi (~> 1.11)
58
+ rails-dom-testing (~> 2.2)
59
+ rails-html-sanitizer (~> 1.6)
60
+ activejob (7.1.3)
61
+ activesupport (= 7.1.3)
58
62
  globalid (>= 0.3.6)
59
- activemodel (7.0.3.1)
60
- activesupport (= 7.0.3.1)
61
- activerecord (7.0.3.1)
62
- activemodel (= 7.0.3.1)
63
- activesupport (= 7.0.3.1)
64
- activestorage (7.0.3.1)
65
- actionpack (= 7.0.3.1)
66
- activejob (= 7.0.3.1)
67
- activerecord (= 7.0.3.1)
68
- activesupport (= 7.0.3.1)
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)
68
+ 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)
69
74
  marcel (~> 1.0)
70
- mini_mime (>= 1.1.0)
71
- activesupport (7.0.3.1)
75
+ activesupport (7.1.3)
76
+ base64
77
+ bigdecimal
72
78
  concurrent-ruby (~> 1.0, >= 1.0.2)
79
+ connection_pool (>= 2.2.5)
80
+ drb
73
81
  i18n (>= 1.6, < 2)
74
82
  minitest (>= 5.1)
83
+ mutex_m
75
84
  tzinfo (~> 2.0)
76
85
  ast (2.4.2)
86
+ base64 (0.2.0)
87
+ bigdecimal (3.1.6)
77
88
  builder (3.2.4)
78
89
  byebug (11.1.3)
79
90
  coderay (1.1.3)
80
- combustion (1.3.7)
91
+ combustion (1.4.0)
81
92
  activesupport (>= 3.0.0)
82
93
  railties (>= 3.0.0)
83
94
  thor (>= 0.14.6)
84
- concurrent-ruby (1.1.10)
95
+ concurrent-ruby (1.2.3)
96
+ connection_pool (2.4.1)
85
97
  crass (1.0.6)
86
- diff-lcs (1.5.0)
87
- digest (3.1.0)
88
- erubi (1.10.0)
89
- globalid (1.0.0)
90
- activesupport (>= 5.0)
91
- i18n (1.12.0)
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)
104
+ activesupport (>= 6.1)
105
+ i18n (1.14.1)
92
106
  concurrent-ruby (~> 1.0)
93
- json (2.6.2)
94
- loofah (2.18.0)
107
+ io-console (0.7.2)
108
+ irb (1.11.2)
109
+ rdoc
110
+ reline (>= 0.4.2)
111
+ json (2.7.1)
112
+ language_server-protocol (3.17.0.3)
113
+ loofah (2.22.0)
95
114
  crass (~> 1.0.2)
96
- nokogiri (>= 1.5.9)
97
- mail (2.7.1)
115
+ nokogiri (>= 1.12.0)
116
+ mail (2.8.1)
98
117
  mini_mime (>= 0.1.1)
118
+ net-imap
119
+ net-pop
120
+ net-smtp
99
121
  marcel (1.0.2)
100
122
  method_source (1.0.0)
101
- mini_mime (1.1.2)
102
- mini_portile2 (2.8.0)
103
- minitest (5.16.2)
104
- multipart-post (2.2.3)
105
- net-imap (0.2.3)
106
- digest
123
+ 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)
129
+ date
107
130
  net-protocol
108
- strscan
109
- net-pop (0.1.1)
110
- digest
131
+ net-pop (0.1.2)
111
132
  net-protocol
133
+ net-protocol (0.2.2)
112
134
  timeout
113
- net-protocol (0.1.3)
114
- timeout
115
- net-smtp (0.3.1)
116
- digest
135
+ net-smtp (0.4.0.1)
117
136
  net-protocol
118
- timeout
119
- nio4r (2.5.8)
120
- nokogiri (1.13.7)
121
- mini_portile2 (~> 2.8.0)
137
+ nio4r (2.7.0)
138
+ nokogiri (1.15.5)
139
+ mini_portile2 (~> 2.8.2)
122
140
  racc (~> 1.4)
123
- nokogiri (1.13.7-x86_64-linux)
141
+ nokogiri (1.15.5-x86_64-linux)
124
142
  racc (~> 1.4)
125
- parallel (1.22.1)
126
- parser (3.1.2.0)
143
+ parallel (1.24.0)
144
+ parser (3.3.0.5)
127
145
  ast (~> 2.4.1)
128
- pry (0.13.1)
146
+ racc
147
+ pry (0.14.2)
129
148
  coderay (~> 1.1)
130
149
  method_source (~> 1.0)
131
- pry-byebug (3.9.0)
150
+ pry-byebug (3.10.1)
132
151
  byebug (~> 11.0)
133
- pry (~> 0.13.0)
134
- racc (1.6.0)
135
- rack (2.2.4)
136
- rack-test (2.0.2)
152
+ pry (>= 0.13, < 0.15)
153
+ psych (5.1.2)
154
+ stringio
155
+ racc (1.7.3)
156
+ rack (3.0.9)
157
+ rack-session (2.0.0)
158
+ rack (>= 3.0.0)
159
+ rack-test (2.1.0)
137
160
  rack (>= 1.3)
138
- rails (7.0.3.1)
139
- actioncable (= 7.0.3.1)
140
- actionmailbox (= 7.0.3.1)
141
- actionmailer (= 7.0.3.1)
142
- actionpack (= 7.0.3.1)
143
- actiontext (= 7.0.3.1)
144
- actionview (= 7.0.3.1)
145
- activejob (= 7.0.3.1)
146
- activemodel (= 7.0.3.1)
147
- activerecord (= 7.0.3.1)
148
- activestorage (= 7.0.3.1)
149
- activesupport (= 7.0.3.1)
161
+ rackup (2.1.0)
162
+ 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)
150
176
  bundler (>= 1.15.0)
151
- railties (= 7.0.3.1)
152
- rails-dom-testing (2.0.3)
153
- activesupport (>= 4.2.0)
177
+ railties (= 7.1.3)
178
+ rails-dom-testing (2.2.0)
179
+ activesupport (>= 5.0.0)
180
+ minitest
154
181
  nokogiri (>= 1.6)
155
- rails-html-sanitizer (1.4.3)
156
- loofah (~> 2.3)
157
- railties (7.0.3.1)
158
- actionpack (= 7.0.3.1)
159
- activesupport (= 7.0.3.1)
160
- method_source
182
+ rails-html-sanitizer (1.6.0)
183
+ 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
+ rackup (>= 1.0.0)
161
190
  rake (>= 12.2)
162
- thor (~> 1.0)
163
- zeitwerk (~> 2.5)
191
+ thor (~> 1.0, >= 1.2.2)
192
+ zeitwerk (~> 2.6)
164
193
  rainbow (3.1.1)
165
- rake (13.0.6)
166
- regexp_parser (2.5.0)
167
- rexml (3.2.5)
168
- rspec (3.11.0)
169
- rspec-core (~> 3.11.0)
170
- rspec-expectations (~> 3.11.0)
171
- rspec-mocks (~> 3.11.0)
172
- rspec-core (3.11.0)
173
- rspec-support (~> 3.11.0)
174
- rspec-expectations (3.11.0)
194
+ rake (13.1.0)
195
+ rdoc (6.6.2)
196
+ psych (>= 4.0.0)
197
+ regexp_parser (2.9.0)
198
+ reline (0.4.2)
199
+ io-console (~> 0.5)
200
+ rexml (3.2.6)
201
+ rspec (3.13.0)
202
+ rspec-core (~> 3.13.0)
203
+ rspec-expectations (~> 3.13.0)
204
+ rspec-mocks (~> 3.13.0)
205
+ rspec-core (3.13.0)
206
+ rspec-support (~> 3.13.0)
207
+ rspec-expectations (3.13.0)
175
208
  diff-lcs (>= 1.2.0, < 2.0)
176
- rspec-support (~> 3.11.0)
177
- rspec-mocks (3.11.1)
209
+ rspec-support (~> 3.13.0)
210
+ rspec-mocks (3.13.0)
178
211
  diff-lcs (>= 1.2.0, < 2.0)
179
- rspec-support (~> 3.11.0)
180
- rspec-rails (5.1.2)
181
- actionpack (>= 5.2)
182
- activesupport (>= 5.2)
183
- railties (>= 5.2)
184
- rspec-core (~> 3.10)
185
- rspec-expectations (~> 3.10)
186
- rspec-mocks (~> 3.10)
187
- rspec-support (~> 3.10)
188
- rspec-support (3.11.0)
189
- rubocop (1.32.0)
212
+ 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)
190
223
  json (~> 2.3)
224
+ language_server-protocol (>= 3.17.0)
191
225
  parallel (~> 1.10)
192
- parser (>= 3.1.0.0)
226
+ parser (>= 3.3.0.2)
193
227
  rainbow (>= 2.2.2, < 4.0)
194
228
  regexp_parser (>= 1.8, < 3.0)
195
229
  rexml (>= 3.2.5, < 4.0)
196
- rubocop-ast (>= 1.19.1, < 2.0)
230
+ rubocop-ast (>= 1.30.0, < 2.0)
197
231
  ruby-progressbar (~> 1.7)
198
- unicode-display_width (>= 1.4.0, < 3.0)
199
- rubocop-ast (1.19.1)
200
- parser (>= 3.1.1.0)
201
- rubocop-rails (2.15.2)
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)
202
240
  activesupport (>= 4.2.0)
203
241
  rack (>= 1.1)
204
- rubocop (>= 1.7.0, < 2.0)
242
+ rubocop (>= 1.33.0, < 2.0)
243
+ rubocop-ast (>= 1.30.0, < 2.0)
205
244
  rubocop-rake (0.6.0)
206
245
  rubocop (~> 1.0)
207
- rubocop-rspec (2.12.1)
208
- rubocop (~> 1.31)
209
- ruby-progressbar (1.11.0)
210
- strscan (3.0.3)
211
- thor (1.2.1)
212
- timeout (0.3.0)
213
- tzinfo (2.0.5)
246
+ rubocop-rspec (2.26.1)
247
+ rubocop (~> 1.40)
248
+ rubocop-capybara (~> 2.17)
249
+ rubocop-factory_bot (~> 2.22)
250
+ 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)
255
+ tzinfo (2.0.6)
214
256
  concurrent-ruby (~> 1.0)
215
- unicode-display_width (2.2.0)
216
- webrick (1.7.0)
217
- websocket-driver (0.7.5)
257
+ unicode-display_width (2.5.0)
258
+ webrick (1.8.1)
259
+ websocket-driver (0.7.6)
218
260
  websocket-extensions (>= 0.1.0)
219
261
  websocket-extensions (0.1.5)
220
- yard (0.9.28)
221
- webrick (~> 1.7.0)
222
- zeitwerk (2.6.0)
262
+ yard (0.9.34)
263
+ zeitwerk (2.6.13)
223
264
 
224
265
  PLATFORMS
225
266
  ruby
@@ -227,6 +268,7 @@ PLATFORMS
227
268
 
228
269
  DEPENDENCIES
229
270
  combustion
271
+ nokogiri (~> 1.15.5)
230
272
  pry-byebug
231
273
  rails (~> 7.0)
232
274
  rake (~> 13.0)
@@ -240,4 +282,4 @@ DEPENDENCIES
240
282
  yard
241
283
 
242
284
  BUNDLED WITH
243
- 2.3.9
285
+ 2.4.22
data/Makefile CHANGED
@@ -1,38 +1,64 @@
1
1
  SPEC =
2
2
 
3
3
  .PHONY: test
4
- test: rails60 rails61 rails70 rubocop
4
+ test: test-stable rubocop
5
5
 
6
- .PHONY: rails60
7
- rails60:
6
+ .PHONY: test-stable
7
+ test-stable: rails-6.0 rails-6.1 rails-7.0 rails-7.1
8
+
9
+ .PHONY: test-all
10
+ test-all: test rails-main
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
29
+
30
+ .PHONY: rails-7.0
31
+ rails-7.0:
8
32
  ifeq ($(SPEC),)
9
- export BUNDLE_GEMFILE=gemfiles/rails-6.0 && bundle --quiet && bundle exec rake spec
33
+ export BUNDLE_GEMFILE=gemfiles/rails-7.0/Gemfile && bundle --quiet && bundle exec rake spec
10
34
  else
11
- export BUNDLE_GEMFILE=gemfiles/rails-6.0 && bundle --quiet && bundle exec rspec $(SPEC)
35
+ export BUNDLE_GEMFILE=gemfiles/rails-7.0/Gemfile && bundle --quiet && bundle exec rspec $(SPEC)
12
36
  endif
13
37
 
14
- .PHONY: rails61
15
- rails61:
38
+ .PHONY: rails-7.1
39
+ rails-7.1:
16
40
  ifeq ($(SPEC),)
17
- export BUNDLE_GEMFILE=gemfiles/rails-6.1 && bundle --quiet && bundle exec rake spec
41
+ export BUNDLE_GEMFILE=gemfiles/rails-7.1/Gemfile && bundle --quiet && bundle exec rake spec
18
42
  else
19
- export BUNDLE_GEMFILE=gemfiles/rails-6.1 && bundle --quiet && bundle exec rspec $(SPEC)
43
+ export BUNDLE_GEMFILE=gemfiles/rails-7.1/Gemfile && bundle --quiet && bundle exec rspec $(SPEC)
20
44
  endif
21
45
 
22
- .PHONY: rails70
23
- rails70:
46
+ .PHONY: rails-main
47
+ rails-main:
24
48
  ifeq ($(SPEC),)
25
- export BUNDLE_GEMFILE=gemfiles/rails-7.0 && bundle --quiet && bundle exec rake spec
49
+ export BUNDLE_GEMFILE=gemfiles/rails-main/Gemfile && bundle --quiet && bundle exec rake spec
26
50
  else
27
- export BUNDLE_GEMFILE=gemfiles/rails-7.0 && bundle --quiet && bundle exec rspec $(SPEC)
51
+ export BUNDLE_GEMFILE=gemfiles/rails-main/Gemfile && bundle --quiet && bundle exec rspec $(SPEC)
28
52
  endif
29
53
 
30
54
  .PHONY: update
31
55
  update:
32
- export BUNDLE_GEMFILE=gemfiles/rails-6.0 && bundle update
33
- export BUNDLE_GEMFILE=gemfiles/rails-6.1 && bundle update
34
- export BUNDLE_GEMFILE=gemfiles/rails-7.0 && bundle update
35
- export BUNDLE_GEMFILE=Gemfile && bundle 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
36
62
 
37
63
  .PHONY: rubocop
38
64
  rubocop:
@@ -52,4 +78,7 @@ texd-docker:
52
78
  -v $$(pwd)/tmp/jobs:/texd \
53
79
  -v $$(pwd)/tmp/refs:/refs \
54
80
  -u $$(id -u):$$(id -g) \
55
- digineode/texd --reference-store dir:///refs --keep-jobs always
81
+ ghcr.io/digineo/texd \
82
+ --reference-store dir:///refs \
83
+ --retention-policy=purge-on-start \
84
+ --keep-jobs always
data/README.md CHANGED
@@ -10,15 +10,26 @@ in background jobs.
10
10
 
11
11
  You need to meet the following requirements for this gem to work:
12
12
 
13
- - Ruby 2.7 or later
13
+ - Ruby 2.7 or later[^1]
14
14
  - Rails 6.0 or later
15
15
 
16
16
  Older versions of Ruby and Rails *may* work, but this is not guaranteed.
17
17
 
18
+ (Please note that the current Rails `main` branch, i.e. Rails 7.2-to-be,
19
+ requires Ruby 3.1+[^2].)
20
+
18
21
  Install the gem and add to the application's Gemfile by executing:
19
22
 
20
23
  $ bundle add texd
21
24
 
25
+ [^1]: We're currently tracking the Ruby version shipped with
26
+ [Ubuntu Focal (20.04 LTS)](https://packages.ubuntu.com/focal/ruby).
27
+ This may jump to [Ubuntu Noble (24.04 LTS)](https://packages.ubuntu.com/noble/ruby)
28
+ and Ruby 3.1 in the near future.
29
+
30
+ [^2]: See [commit `6ba2fdb`](https://github.com/rails/rails/commit/6ba2fdb2fe85751b573aadd05608471daf1a44ff)
31
+ and [PR #50491](https://github.com/rails/rails/pull/50491) in the Rails repository.
32
+
22
33
  ## Configuration
23
34
 
24
35
  Before you can use texd, you need to tell it where your instance is located.
@@ -215,8 +226,9 @@ push git commits and the created tag, and push the `.gem` file to
215
226
  [rubygems.org](https://rubygems.org).
216
227
 
217
228
  You may want to run a texd server instance locally. This is easiest done by
218
- calling either `make texd-server` (this requires Docker). If you need to
219
- develop/test against the bleeding edge, you can clone and run texd from source:
229
+ calling `make texd-docker` (which pulls and runs the `ghcr.io/digineo/texd` Docker
230
+ image). If you need to develop/test against the bleeding edge, you can clone and
231
+ run texd from source:
220
232
 
221
233
  ```console
222
234
  $ cd ~/code/github.com/digineo
@@ -226,6 +238,10 @@ $ mkdir -p tmp/refs
226
238
  $ make run-container EXTRA_RUN_ARGS='--reference-store dir://./tmp/refs'
227
239
  ```
228
240
 
241
+ Note: In order to run the tests against the latest `rails/main` commit, you
242
+ need to have Ruby 3.1+ installed. To run the tests against all released Rails
243
+ versions, Ruby 2.7 currently suffices.
244
+
229
245
  ## Contributing
230
246
 
231
247
  Bug reports and pull requests are welcome on GitHub at https://github.com/digineo/texd.