texd 0.5.1 → 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: 13007e535867b117b4f97bd02f3433bbfdc560be407ad6a116fa780cf122a269
4
- data.tar.gz: c7a73f29c57adf00c65a4f60eeaf79c0b1b78256ee05b11740f151a2e028336a
3
+ metadata.gz: dcdd96e631b0a2ddbaffd1756c7887cd3a99ce6a3586501a667172b3bbd830ef
4
+ data.tar.gz: 0fa736f7e09c9a115c6ba3c65c3894c9e342843a63f4276fb4828f3ffb472c9a
5
5
  SHA512:
6
- metadata.gz: 1c5c48383672de0e8851334fc1456eda171f55567dd184a0b0e3cc43105175eca3486c3cea92239afa1c893d977218265707de757a15ef0b9cbed586e3c0aa95
7
- data.tar.gz: af632a515da1f48ed83cab8a71138cefebbfb0d4f8a30944717993d0f5f5d4b1cc256890f39d0ed96007df78dde847d61377f262e7f1024153e7494485dcc866
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
@@ -334,6 +334,9 @@ Style/TrailingCommaInArrayLiteral:
334
334
  Style/TrailingCommaInHashLiteral:
335
335
  EnforcedStyleForMultiline: comma
336
336
 
337
+ Style/SuperWithArgsParentheses:
338
+ Enabled: false # cop doesn't provide a preferred style option
339
+
337
340
  ## RSpec Cops - https://docs.rubocop.org/rubocop-rspec/cops_rspec.html
338
341
 
339
342
  RSpec:
data/CHANGELOG.md CHANGED
@@ -1,6 +1,37 @@
1
1
  ## Unreleased
2
2
 
3
- [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.5.1...master)
3
+ [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.6.0...master)
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
+
13
+ ## v0.6.0 - 2024-02-13
14
+
15
+ **Changes**
16
+
17
+ - Add another optional argument to the `escape` helper, to disallow replacing
18
+ of hyphens.
19
+
20
+ Previously, `escape(str, typographic: true)` did replace the hyphen between
21
+ word-characters with `"=` (i.e. the babel shorthand for a hard-hyphen in German
22
+ locale).
23
+
24
+ Now it is possible to disable the hyphenation replacement explicitly:
25
+
26
+ ```erb
27
+ <%= escape str, hyphenation: false %>
28
+ ```
29
+
30
+ The default value for the `hyphenation` option defaults to the value given to
31
+ the `typographic` option (which in turn is true by default).
32
+
33
+
34
+ [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.5.1...v0.6.0)
4
35
 
5
36
  ## v0.5.1 - 2022-10-10
6
37
 
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
 
@@ -13,4 +14,13 @@ group :development do
13
14
  gem "rubocop-rails"
14
15
  gem "rubocop-rake"
15
16
  gem "rubocop-rspec"
17
+ gem "rubocop-rspec_rails"
18
+ end
19
+
20
+ # keep in sync with gemfiles/*/Gemfile
21
+ group :development, :test do
22
+ gem "combustion"
23
+ gem "rake", "~> 13.0"
24
+ gem "rspec", "~> 3.0"
25
+ gem "rspec-rails"
16
26
  end
data/Gemfile.lock CHANGED
@@ -1,217 +1,278 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- texd (0.5.1)
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.0.4)
12
- actionpack (= 7.0.4)
13
- activesupport (= 7.0.4)
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
- actionmailbox (7.0.4)
17
- actionpack (= 7.0.4)
18
- activejob (= 7.0.4)
19
- activerecord (= 7.0.4)
20
- activestorage (= 7.0.4)
21
- activesupport (= 7.0.4)
22
- mail (>= 2.7.1)
23
- net-imap
24
- net-pop
25
- net-smtp
26
- actionmailer (7.0.4)
27
- actionpack (= 7.0.4)
28
- actionview (= 7.0.4)
29
- activejob (= 7.0.4)
30
- activesupport (= 7.0.4)
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.4)
37
- actionview (= 7.0.4)
38
- activesupport (= 7.0.4)
39
- rack (~> 2.0, >= 2.2.0)
16
+ zeitwerk (~> 2.6)
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)
30
+ rails-dom-testing (~> 2.2)
31
+ actionpack (7.2.2.2)
32
+ actionview (= 7.2.2.2)
33
+ activesupport (= 7.2.2.2)
34
+ nokogiri (>= 1.8.5)
35
+ racc
36
+ rack (>= 2.2.4, < 3.2)
37
+ rack-session (>= 1.0.1)
40
38
  rack-test (>= 0.6.3)
41
- rails-dom-testing (~> 2.0)
42
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
43
- actiontext (7.0.4)
44
- actionpack (= 7.0.4)
45
- activerecord (= 7.0.4)
46
- activestorage (= 7.0.4)
47
- activesupport (= 7.0.4)
39
+ rails-dom-testing (~> 2.2)
40
+ rails-html-sanitizer (~> 1.6)
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)
48
47
  globalid (>= 0.6.0)
49
48
  nokogiri (>= 1.8.5)
50
- actionview (7.0.4)
51
- activesupport (= 7.0.4)
49
+ actionview (7.2.2.2)
50
+ activesupport (= 7.2.2.2)
52
51
  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.4)
57
- activesupport (= 7.0.4)
52
+ erubi (~> 1.11)
53
+ rails-dom-testing (~> 2.2)
54
+ rails-html-sanitizer (~> 1.6)
55
+ activejob (7.2.2.2)
56
+ activesupport (= 7.2.2.2)
58
57
  globalid (>= 0.3.6)
59
- activemodel (7.0.4)
60
- activesupport (= 7.0.4)
61
- activerecord (7.0.4)
62
- activemodel (= 7.0.4)
63
- activesupport (= 7.0.4)
64
- activestorage (7.0.4)
65
- actionpack (= 7.0.4)
66
- activejob (= 7.0.4)
67
- activerecord (= 7.0.4)
68
- activesupport (= 7.0.4)
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)
63
+ timeout (>= 0.4.0)
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)
69
69
  marcel (~> 1.0)
70
- mini_mime (>= 1.1.0)
71
- activesupport (7.0.4)
72
- concurrent-ruby (~> 1.0, >= 1.0.2)
70
+ activesupport (7.2.2.2)
71
+ base64
72
+ benchmark (>= 0.3)
73
+ bigdecimal
74
+ concurrent-ruby (~> 1.0, >= 1.3.1)
75
+ connection_pool (>= 2.2.5)
76
+ drb
73
77
  i18n (>= 1.6, < 2)
78
+ logger (>= 1.4.2)
74
79
  minitest (>= 5.1)
75
- tzinfo (~> 2.0)
76
- ast (2.4.2)
77
- builder (3.2.4)
78
- 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)
79
88
  coderay (1.1.3)
80
- combustion (1.3.7)
89
+ combustion (1.5.0)
81
90
  activesupport (>= 3.0.0)
82
91
  railties (>= 3.0.0)
83
92
  thor (>= 0.14.6)
84
- concurrent-ruby (1.1.10)
93
+ concurrent-ruby (1.3.5)
94
+ connection_pool (2.5.4)
85
95
  crass (1.0.6)
86
- diff-lcs (1.5.0)
87
- erubi (1.11.0)
88
- globalid (1.0.0)
89
- activesupport (>= 5.0)
90
- i18n (1.12.0)
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)
102
+ activesupport (>= 6.1)
103
+ i18n (1.14.7)
91
104
  concurrent-ruby (~> 1.0)
92
- json (2.6.2)
93
- loofah (2.19.0)
105
+ io-console (0.8.1)
106
+ irb (1.15.2)
107
+ pp (>= 0.6.0)
108
+ rdoc (>= 4.0.0)
109
+ reline (>= 0.4.2)
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)
94
115
  crass (~> 1.0.2)
95
- nokogiri (>= 1.5.9)
96
- mail (2.7.1)
116
+ nokogiri (>= 1.12.0)
117
+ mail (2.8.1)
97
118
  mini_mime (>= 0.1.1)
98
- marcel (1.0.2)
99
- method_source (1.0.0)
100
- mini_mime (1.1.2)
101
- mini_portile2 (2.8.0)
102
- minitest (5.16.3)
103
- multipart-post (2.2.3)
104
- net-imap (0.3.1)
119
+ net-imap
120
+ net-pop
121
+ net-smtp
122
+ marcel (1.1.0)
123
+ method_source (1.1.0)
124
+ mini_mime (1.1.5)
125
+ mini_portile2 (2.8.9)
126
+ minitest (5.26.0)
127
+ multipart-post (2.4.1)
128
+ net-imap (0.5.12)
129
+ date
105
130
  net-protocol
106
131
  net-pop (0.1.2)
107
132
  net-protocol
108
- net-protocol (0.1.3)
133
+ net-protocol (0.2.2)
109
134
  timeout
110
- net-smtp (0.3.2)
135
+ net-smtp (0.5.1)
111
136
  net-protocol
112
- nio4r (2.5.8)
113
- nokogiri (1.13.8)
114
- mini_portile2 (~> 2.8.0)
137
+ nio4r (2.7.4)
138
+ nokogiri (1.15.7)
139
+ mini_portile2 (~> 2.8.2)
115
140
  racc (~> 1.4)
116
- nokogiri (1.13.8-x86_64-linux)
141
+ nokogiri (1.15.7-x86_64-linux)
117
142
  racc (~> 1.4)
118
- parallel (1.22.1)
119
- parser (3.1.2.1)
143
+ parallel (1.27.0)
144
+ parser (3.3.9.0)
120
145
  ast (~> 2.4.1)
121
- pry (0.14.1)
146
+ racc
147
+ pp (0.6.3)
148
+ prettyprint
149
+ prettyprint (0.2.0)
150
+ prism (1.6.0)
151
+ pry (0.15.2)
122
152
  coderay (~> 1.1)
123
153
  method_source (~> 1.0)
124
- pry-byebug (3.10.1)
125
- byebug (~> 11.0)
126
- pry (>= 0.13, < 0.15)
127
- racc (1.6.0)
128
- rack (2.2.4)
129
- rack-test (2.0.2)
154
+ pry-byebug (3.11.0)
155
+ byebug (~> 12.0)
156
+ pry (>= 0.13, < 0.16)
157
+ psych (5.2.6)
158
+ date
159
+ stringio
160
+ racc (1.8.1)
161
+ rack (3.1.18)
162
+ rack-session (2.1.1)
163
+ base64 (>= 0.1.0)
164
+ rack (>= 3.0.0)
165
+ rack-test (2.2.0)
130
166
  rack (>= 1.3)
131
- rails (7.0.4)
132
- actioncable (= 7.0.4)
133
- actionmailbox (= 7.0.4)
134
- actionmailer (= 7.0.4)
135
- actionpack (= 7.0.4)
136
- actiontext (= 7.0.4)
137
- actionview (= 7.0.4)
138
- activejob (= 7.0.4)
139
- activemodel (= 7.0.4)
140
- activerecord (= 7.0.4)
141
- activestorage (= 7.0.4)
142
- activesupport (= 7.0.4)
167
+ rackup (2.2.1)
168
+ rack (>= 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)
143
181
  bundler (>= 1.15.0)
144
- railties (= 7.0.4)
145
- rails-dom-testing (2.0.3)
146
- activesupport (>= 4.2.0)
182
+ railties (= 7.2.2.2)
183
+ rails-dom-testing (2.3.0)
184
+ activesupport (>= 5.0.0)
185
+ minitest
147
186
  nokogiri (>= 1.6)
148
- rails-html-sanitizer (1.4.3)
149
- loofah (~> 2.3)
150
- railties (7.0.4)
151
- actionpack (= 7.0.4)
152
- activesupport (= 7.0.4)
153
- method_source
187
+ rails-html-sanitizer (1.6.2)
188
+ loofah (~> 2.21)
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)
194
+ rackup (>= 1.0.0)
154
195
  rake (>= 12.2)
155
- thor (~> 1.0)
156
- zeitwerk (~> 2.5)
196
+ thor (~> 1.0, >= 1.2.2)
197
+ zeitwerk (~> 2.6)
157
198
  rainbow (3.1.1)
158
- rake (13.0.6)
159
- regexp_parser (2.6.0)
160
- rexml (3.2.5)
161
- rspec (3.11.0)
162
- rspec-core (~> 3.11.0)
163
- rspec-expectations (~> 3.11.0)
164
- rspec-mocks (~> 3.11.0)
165
- rspec-core (3.11.0)
166
- rspec-support (~> 3.11.0)
167
- rspec-expectations (3.11.1)
199
+ rake (13.3.0)
200
+ rdoc (6.15.0)
201
+ erb
202
+ psych (>= 4.0.0)
203
+ tsort
204
+ regexp_parser (2.11.3)
205
+ reline (0.6.2)
206
+ io-console (~> 0.5)
207
+ rspec (3.13.1)
208
+ rspec-core (~> 3.13.0)
209
+ rspec-expectations (~> 3.13.0)
210
+ rspec-mocks (~> 3.13.0)
211
+ rspec-core (3.13.6)
212
+ rspec-support (~> 3.13.0)
213
+ rspec-expectations (3.13.5)
168
214
  diff-lcs (>= 1.2.0, < 2.0)
169
- rspec-support (~> 3.11.0)
170
- rspec-mocks (3.11.1)
215
+ rspec-support (~> 3.13.0)
216
+ rspec-mocks (3.13.6)
171
217
  diff-lcs (>= 1.2.0, < 2.0)
172
- rspec-support (~> 3.11.0)
173
- rspec-rails (5.1.2)
174
- actionpack (>= 5.2)
175
- activesupport (>= 5.2)
176
- railties (>= 5.2)
177
- rspec-core (~> 3.10)
178
- rspec-expectations (~> 3.10)
179
- rspec-mocks (~> 3.10)
180
- rspec-support (~> 3.10)
181
- rspec-support (3.11.1)
182
- rubocop (1.36.0)
218
+ rspec-support (~> 3.13.0)
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)
183
229
  json (~> 2.3)
230
+ language_server-protocol (~> 3.17.0.2)
231
+ lint_roller (~> 1.1.0)
184
232
  parallel (~> 1.10)
185
- parser (>= 3.1.2.1)
233
+ parser (>= 3.3.0.2)
186
234
  rainbow (>= 2.2.2, < 4.0)
187
- regexp_parser (>= 1.8, < 3.0)
188
- rexml (>= 3.2.5, < 4.0)
189
- rubocop-ast (>= 1.20.1, < 2.0)
235
+ regexp_parser (>= 2.9.3, < 3.0)
236
+ rubocop-ast (>= 1.47.1, < 2.0)
190
237
  ruby-progressbar (~> 1.7)
191
- unicode-display_width (>= 1.4.0, < 3.0)
192
- rubocop-ast (1.21.0)
193
- parser (>= 3.1.1.0)
194
- rubocop-rails (2.16.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)
195
243
  activesupport (>= 4.2.0)
244
+ lint_roller (~> 1.1)
196
245
  rack (>= 1.1)
197
- rubocop (>= 1.33.0, < 2.0)
198
- rubocop-rake (0.6.0)
199
- rubocop (~> 1.0)
200
- rubocop-rspec (2.13.2)
201
- rubocop (~> 1.33)
202
- ruby-progressbar (1.11.0)
203
- thor (1.2.1)
204
- timeout (0.3.0)
205
- tzinfo (2.0.5)
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)
258
+ ruby-progressbar (1.13.0)
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)
264
+ tzinfo (2.0.6)
206
265
  concurrent-ruby (~> 1.0)
207
- unicode-display_width (2.3.0)
208
- webrick (1.7.0)
209
- websocket-driver (0.7.5)
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
210
272
  websocket-extensions (>= 0.1.0)
211
273
  websocket-extensions (0.1.5)
212
- yard (0.9.28)
213
- webrick (~> 1.7.0)
214
- zeitwerk (2.6.1)
274
+ yard (0.9.37)
275
+ zeitwerk (2.7.3)
215
276
 
216
277
  PLATFORMS
217
278
  ruby
@@ -219,6 +280,7 @@ PLATFORMS
219
280
 
220
281
  DEPENDENCIES
221
282
  combustion
283
+ nokogiri (~> 1.15.5)
222
284
  pry-byebug
223
285
  rails (~> 7.0)
224
286
  rake (~> 13.0)
@@ -228,8 +290,9 @@ DEPENDENCIES
228
290
  rubocop-rails
229
291
  rubocop-rake
230
292
  rubocop-rspec
293
+ rubocop-rspec_rails
231
294
  texd!
232
295
  yard
233
296
 
234
297
  BUNDLED WITH
235
- 2.3.9
298
+ 2.7.2