actionview 5.2.8.1 → 6.0.6.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionview might be problematic. Click here for more details.

Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +280 -94
  3. data/MIT-LICENSE +1 -1
  4. data/README.rdoc +5 -3
  5. data/lib/action_view/base.rb +108 -11
  6. data/lib/action_view/buffers.rb +15 -0
  7. data/lib/action_view/cache_expiry.rb +53 -0
  8. data/lib/action_view/context.rb +5 -9
  9. data/lib/action_view/digestor.rb +12 -20
  10. data/lib/action_view/flows.rb +0 -1
  11. data/lib/action_view/gem_version.rb +3 -3
  12. data/lib/action_view/helpers/active_model_helper.rb +0 -1
  13. data/lib/action_view/helpers/asset_tag_helper.rb +8 -31
  14. data/lib/action_view/helpers/asset_url_helper.rb +4 -3
  15. data/lib/action_view/helpers/cache_helper.rb +19 -12
  16. data/lib/action_view/helpers/capture_helper.rb +4 -0
  17. data/lib/action_view/helpers/csp_helper.rb +4 -2
  18. data/lib/action_view/helpers/csrf_helper.rb +1 -1
  19. data/lib/action_view/helpers/date_helper.rb +70 -27
  20. data/lib/action_view/helpers/form_helper.rb +240 -8
  21. data/lib/action_view/helpers/form_options_helper.rb +27 -18
  22. data/lib/action_view/helpers/form_tag_helper.rb +17 -15
  23. data/lib/action_view/helpers/javascript_helper.rb +9 -8
  24. data/lib/action_view/helpers/number_helper.rb +8 -2
  25. data/lib/action_view/helpers/output_safety_helper.rb +1 -1
  26. data/lib/action_view/helpers/rendering_helper.rb +6 -4
  27. data/lib/action_view/helpers/sanitize_helper.rb +12 -18
  28. data/lib/action_view/helpers/tag_helper.rb +8 -7
  29. data/lib/action_view/helpers/tags/base.rb +9 -6
  30. data/lib/action_view/helpers/tags/check_box.rb +0 -1
  31. data/lib/action_view/helpers/tags/collection_check_boxes.rb +0 -1
  32. data/lib/action_view/helpers/tags/collection_helpers.rb +0 -1
  33. data/lib/action_view/helpers/tags/collection_radio_buttons.rb +0 -1
  34. data/lib/action_view/helpers/tags/color_field.rb +1 -2
  35. data/lib/action_view/helpers/tags/date_field.rb +0 -1
  36. data/lib/action_view/helpers/tags/date_select.rb +0 -1
  37. data/lib/action_view/helpers/tags/datetime_field.rb +0 -1
  38. data/lib/action_view/helpers/tags/datetime_local_field.rb +0 -1
  39. data/lib/action_view/helpers/tags/label.rb +0 -1
  40. data/lib/action_view/helpers/tags/month_field.rb +0 -1
  41. data/lib/action_view/helpers/tags/radio_button.rb +0 -1
  42. data/lib/action_view/helpers/tags/select.rb +0 -1
  43. data/lib/action_view/helpers/tags/text_field.rb +0 -1
  44. data/lib/action_view/helpers/tags/time_field.rb +0 -1
  45. data/lib/action_view/helpers/tags/translator.rb +1 -6
  46. data/lib/action_view/helpers/tags/week_field.rb +0 -1
  47. data/lib/action_view/helpers/text_helper.rb +3 -4
  48. data/lib/action_view/helpers/translation_helper.rb +19 -17
  49. data/lib/action_view/helpers/url_helper.rb +14 -14
  50. data/lib/action_view/helpers.rb +0 -2
  51. data/lib/action_view/layouts.rb +5 -8
  52. data/lib/action_view/log_subscriber.rb +6 -7
  53. data/lib/action_view/lookup_context.rb +75 -32
  54. data/lib/action_view/path_set.rb +5 -11
  55. data/lib/action_view/railtie.rb +24 -1
  56. data/lib/action_view/record_identifier.rb +2 -3
  57. data/lib/action_view/renderer/abstract_renderer.rb +56 -4
  58. data/lib/action_view/renderer/partial_renderer/collection_caching.rb +63 -17
  59. data/lib/action_view/renderer/partial_renderer.rb +67 -57
  60. data/lib/action_view/renderer/renderer.rb +16 -4
  61. data/lib/action_view/renderer/streaming_template_renderer.rb +5 -7
  62. data/lib/action_view/renderer/template_renderer.rb +25 -20
  63. data/lib/action_view/rendering.rb +51 -32
  64. data/lib/action_view/routing_url_for.rb +12 -11
  65. data/lib/action_view/template/error.rb +30 -15
  66. data/lib/action_view/template/handlers/builder.rb +2 -2
  67. data/lib/action_view/template/handlers/erb/erubi.rb +7 -3
  68. data/lib/action_view/template/handlers/erb.rb +17 -8
  69. data/lib/action_view/template/handlers/html.rb +1 -1
  70. data/lib/action_view/template/handlers/raw.rb +2 -2
  71. data/lib/action_view/template/handlers.rb +27 -1
  72. data/lib/action_view/template/html.rb +14 -5
  73. data/lib/action_view/template/inline.rb +22 -0
  74. data/lib/action_view/template/raw_file.rb +28 -0
  75. data/lib/action_view/template/resolver.rb +134 -135
  76. data/lib/action_view/template/sources/file.rb +17 -0
  77. data/lib/action_view/template/sources.rb +13 -0
  78. data/lib/action_view/template/text.rb +5 -3
  79. data/lib/action_view/template.rb +102 -71
  80. data/lib/action_view/test_case.rb +3 -4
  81. data/lib/action_view/testing/resolvers.rb +33 -21
  82. data/lib/action_view/unbound_template.rb +31 -0
  83. data/lib/action_view/view_paths.rb +25 -2
  84. data/lib/action_view.rb +4 -2
  85. data/lib/assets/compiled/rails-ujs.js +30 -4
  86. metadata +27 -18
  87. data/lib/action_view/helpers/record_tag_helper.rb +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a732cbd8a2b766ebf37e375ffd2f97c71760de86cb46d9a70702896d07aeb73
4
- data.tar.gz: d76fb4ed63f24c3e6b09b576fe3b945b7eb436059cb703e241da7d7d9343cf90
3
+ metadata.gz: 85ed7f3786ca26616ab0484acdfe55d872c9d8bd1951ecc417d4112909e3d596
4
+ data.tar.gz: 1219bad150f3ced43cd4527b60b392607d1506c502ec866b15c66887f183b703
5
5
  SHA512:
6
- metadata.gz: 69feb0b2c271b42c17c0bc55d0cee3f857aa4a177fe9e27edaf9a5cc101b2a92b5eb0cb678d89c7ea1f40fa1a1c28a6288c2ee9e5dee16db0859777259fce137
7
- data.tar.gz: a04fc509175c93512d6517742c283d617749b1498a422c05a6ab02da17ce0042e33011176c83b97e48638f7e2750921d04fd8855bbfb6fc29a1cb1bbbd63bf8b
6
+ metadata.gz: 785a601e59d00518c26fa3b5714e930c9747131443a980b9f05d8230453f9b5e62e3b54995eeb18ebbaa0b0a1480e3fff80669c3d29e26270f685fa6a93356dd
7
+ data.tar.gz: 34e1410363d3b99607f88993f350e441c502938c179ec114af0d3d63f9a72b25b18c8edc258586006e75fdffbdf112bbed5b1fc6beccba995610909a5b4b2873
data/CHANGELOG.md CHANGED
@@ -1,14 +1,24 @@
1
- ## Rails 5.2.8.1 (July 12, 2022) ##
1
+ ## Rails 6.0.6.1 (January 17, 2023) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 5.2.8 (May 09, 2022) ##
6
+ ## Rails 6.0.6 (September 09, 2022) ##
7
7
 
8
8
  * No changes.
9
9
 
10
10
 
11
- ## Rails 5.2.7.1 (April 26, 2022) ##
11
+ ## Rails 6.0.5.1 (July 12, 2022) ##
12
+
13
+ * No changes.
14
+
15
+
16
+ ## Rails 6.0.5 (May 09, 2022) ##
17
+
18
+ * No changes.
19
+
20
+
21
+ ## Rails 6.0.4.8 (April 26, 2022) ##
12
22
 
13
23
  * Fix and add protections for XSS in `ActionView::Helpers` and `ERB::Util`.
14
24
 
@@ -20,96 +30,172 @@
20
30
  *Álvaro Martín Fraguas*
21
31
 
22
32
 
23
- ## Rails 5.2.7 (March 10, 2022) ##
33
+ ## Rails 6.0.4.7 (March 08, 2022) ##
24
34
 
25
35
  * No changes.
26
36
 
27
37
 
28
- ## Rails 5.2.6.3 (March 08, 2022) ##
38
+ ## Rails 6.0.4.6 (February 11, 2022) ##
29
39
 
30
40
  * No changes.
31
41
 
32
42
 
33
- ## Rails 5.2.6.2 (February 11, 2022) ##
43
+ ## Rails 6.0.4.5 (February 11, 2022) ##
34
44
 
35
45
  * No changes.
36
46
 
37
47
 
38
- ## Rails 5.2.6.1 (February 11, 2022) ##
48
+ ## Rails 6.0.4.4 (December 15, 2021) ##
39
49
 
40
50
  * No changes.
41
51
 
42
52
 
43
- ## Rails 5.2.6 (May 05, 2021) ##
53
+ ## Rails 6.0.4.3 (December 14, 2021) ##
44
54
 
45
55
  * No changes.
46
56
 
47
57
 
48
- ## Rails 5.2.5 (March 26, 2021) ##
58
+ ## Rails 6.0.4.2 (December 14, 2021) ##
49
59
 
50
60
  * No changes.
51
61
 
52
62
 
53
- ## Rails 5.2.4.6 (May 05, 2021) ##
63
+ ## Rails 6.0.4.1 (August 19, 2021) ##
54
64
 
55
65
  * No changes.
56
66
 
57
67
 
58
- ## Rails 5.2.4.5 (February 10, 2021) ##
68
+ ## Rails 6.0.4 (June 15, 2021) ##
69
+
70
+ * SanitizeHelper.sanitized_allowed_attributes and SanitizeHelper.sanitized_allowed_tags
71
+ call safe_list_sanitizer's class method
72
+
73
+ Fixes #39586
74
+
75
+ *Taufiq Muhammadi*
76
+
77
+
78
+ ## Rails 6.0.3.7 (May 05, 2021) ##
59
79
 
60
80
  * No changes.
61
81
 
62
82
 
63
- ## Rails 5.2.4.4 (September 09, 2020) ##
83
+ ## Rails 6.0.3.6 (March 26, 2021) ##
84
+
85
+ * No changes.
64
86
 
65
- * [CVE-2020-15169] Fix potential XSS vulnerability in the `translate`/`t` helper
87
+
88
+ ## Rails 6.0.3.5 (February 10, 2021) ##
89
+
90
+ * No changes.
91
+
92
+
93
+ ## Rails 6.0.3.4 (October 07, 2020) ##
94
+
95
+ * No changes.
96
+
97
+
98
+ ## Rails 6.0.3.3 (September 09, 2020) ##
99
+
100
+ * [CVE-2020-8185] Fix potential XSS vulnerability in the `translate`/`t` helper.
66
101
 
67
102
  *Jonathan Hefner*
68
103
 
69
104
 
70
- ## Rails 5.2.4.3 (May 18, 2020) ##
105
+ ## Rails 6.0.3.2 (June 17, 2020) ##
106
+
107
+ * No changes.
108
+
109
+
110
+ ## Rails 6.0.3.1 (May 18, 2020) ##
71
111
 
72
112
  * [CVE-2020-8167] Check that request is same-origin prior to including CSRF token in XHRs
73
113
 
74
114
 
75
- ## Rails 5.2.4.2 (March 19, 2020) ##
115
+ ## Rails 6.0.3 (May 06, 2020) ##
116
+
117
+ * annotated_source_code returns an empty array so TemplateErrors without a
118
+ template in the backtrace are surfaced properly by DebugExceptions.
119
+
120
+ *Guilherme Mansur*, *Kasper Timm Hansen*
121
+
122
+ * Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
123
+
124
+ *Guilherme Mansur*, *Gannon McGibbon*
76
125
 
77
- * Fix possible XSS vector in `escape_javascript` helper
126
+
127
+ ## Rails 6.0.2.2 (March 19, 2020) ##
128
+
129
+ * Fix possible XSS vector in escape_javascript helper
78
130
 
79
131
  CVE-2020-5267
80
132
 
81
133
  *Aaron Patterson*
82
134
 
83
135
 
84
- ## Rails 5.2.4.1 (December 18, 2019) ##
136
+ ## Rails 6.0.2.1 (December 18, 2019) ##
85
137
 
86
138
  * No changes.
87
139
 
88
140
 
89
- ## Rails 5.2.4 (November 27, 2019) ##
141
+ ## Rails 6.0.2 (December 13, 2019) ##
90
142
 
91
- * Allow programmatic click events to trigger Rails UJS click handlers.
92
- Programmatic click events (eg. ones generated by `Rails.fire(link, "click")`) don't specify a button. These events were being incorrectly stopped by code meant to ignore scroll wheel and right clicks introduced in #34573.
143
+ * No changes.
93
144
 
94
- *Sudara Williams*
95
145
 
146
+ ## Rails 6.0.1 (November 5, 2019) ##
96
147
 
97
- ## Rails 5.2.3 (March 27, 2019) ##
148
+ * UJS avoids `Element.closest()` for IE 9 compatibility.
98
149
 
99
- * Prevent non-primary mouse keys from triggering Rails UJS click handlers.
100
- Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
101
- For example, right-clicking a link such as the one described below (with an underlying ajax request registered on click) should not cause that request to occur.
150
+ *George Claghorn*
102
151
 
103
- ```
104
- <%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
105
- ```
106
152
 
107
- Fixes #34541
153
+ ## Rails 6.0.0 (August 16, 2019) ##
108
154
 
109
- *Wolfgang Hobmaier*
155
+ * ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
156
+
157
+ *Juanito Fatas*
158
+
159
+
160
+ ## Rails 6.0.0.rc2 (July 22, 2019) ##
161
+
162
+ * Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
163
+
164
+ *Younes SERRAJ*
165
+
166
+
167
+ ## Rails 6.0.0.rc1 (April 24, 2019) ##
110
168
 
169
+ * Fix partial caching skips same item issue
111
170
 
112
- ## Rails 5.2.2.1 (March 11, 2019) ##
171
+ If we render cached collection partials with repeated items, those repeated items
172
+ will get skipped. For example, if you have 5 identical items in your collection, Rails
173
+ only renders the first one when `cached` is set to true. But it should render all
174
+ 5 items instead.
175
+
176
+ Fixes #35114.
177
+
178
+ *Stan Lo*
179
+
180
+ * Only clear ActionView cache in development on file changes
181
+
182
+ To speed up development mode, view caches are only cleared when files in
183
+ the view paths have changed. Applications which have implemented custom
184
+ `ActionView::Resolver` subclasses may need to add their own cache clearing.
185
+
186
+ *John Hawthorn*
187
+
188
+ * Fix `ActionView::FixtureResolver` so that it handles template variants correctly.
189
+
190
+ *Edward Rudd*
191
+
192
+ * `ActionView::TemplateRender.render(file: )` now renders the file directly,
193
+ without using any handlers, using the new `Template::RawFile` class.
194
+
195
+ *John Hawthorn*, *Cliff Pruitt*
196
+
197
+
198
+ ## Rails 6.0.0.beta3 (March 11, 2019) ##
113
199
 
114
200
  * Only accept formats from registered mime types
115
201
 
@@ -123,22 +209,109 @@
123
209
  *John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
124
210
 
125
211
 
126
- ## Rails 5.2.2 (December 04, 2018) ##
212
+ ## Rails 6.0.0.beta2 (February 25, 2019) ##
127
213
 
128
- * No changes.
214
+ * `ActionView::Template.finalize_compiled_template_methods` is deprecated with
215
+ no replacement.
129
216
 
217
+ *tenderlove*
130
218
 
131
- ## Rails 5.2.1.1 (November 27, 2018) ##
219
+ * `config.action_view.finalize_compiled_template_methods` is deprecated with
220
+ no replacement.
132
221
 
133
- * No changes.
222
+ *tenderlove*
223
+
224
+ * Ensure unique DOM IDs for collection inputs with float values.
225
+
226
+ Fixes #34974.
227
+
228
+ *Mark Edmondson*
134
229
 
230
+ * Single arity template handlers are deprecated. Template handlers must
231
+ now accept two parameters, the view object and the source for the view object.
135
232
 
136
- ## Rails 5.2.1 (August 07, 2018) ##
233
+ *tenderlove*
137
234
 
138
- * Fix leak of `skip_default_ids` and `allow_method_names_outside_object` options
139
- to HTML attributes.
140
235
 
141
- *Yurii Cherniavskyi*
236
+ ## Rails 6.0.0.beta1 (January 18, 2019) ##
237
+
238
+ * [Rename npm package](https://github.com/rails/rails/pull/34905) from
239
+ [`rails-ujs`](https://www.npmjs.com/package/rails-ujs) to
240
+ [`@rails/ujs`](https://www.npmjs.com/package/@rails/ujs).
241
+
242
+ *Javan Makhmali*
243
+
244
+ * Remove deprecated `image_alt` helper.
245
+
246
+ *Rafael Mendonça França*
247
+
248
+ * Fix the need of `#protect_against_forgery?` method defined in
249
+ `ActionView::Base` subclasses. This prevents the use of forms and buttons.
250
+
251
+ *Genadi Samokovarov*
252
+
253
+ * Fix UJS permanently showing disabled text in a[data-remote][data-disable-with] elements within forms.
254
+
255
+ Fixes #33889.
256
+
257
+ *Wolfgang Hobmaier*
258
+
259
+ * Prevent non-primary mouse keys from triggering Rails UJS click handlers.
260
+ Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
261
+ For example, right-clicking a link such as the one described below (with an underlying ajax request registered on click) should not cause that request to occur.
262
+
263
+ ```
264
+ <%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
265
+ ```
266
+
267
+ Fixes #34541.
268
+
269
+ *Wolfgang Hobmaier*
270
+
271
+ * Prevent `ActionView::TextHelper#word_wrap` from unexpectedly stripping white space from the _left_ side of lines.
272
+
273
+ For example, given input like this:
274
+
275
+ ```
276
+ This is a paragraph with an initial indent,
277
+ followed by additional lines that are not indented,
278
+ and finally terminated with a blockquote:
279
+ "A pithy saying"
280
+ ```
281
+
282
+ Calling `word_wrap` should not trim the indents on the first and last lines.
283
+
284
+ Fixes #34487.
285
+
286
+ *Lyle Mullican*
287
+
288
+ * Add allocations to template rendering instrumentation.
289
+
290
+ Adds the allocations for template and partial rendering to the server output on render.
291
+
292
+ ```
293
+ Rendered posts/_form.html.erb (Duration: 7.1ms | Allocations: 6004)
294
+ Rendered posts/new.html.erb within layouts/application (Duration: 8.3ms | Allocations: 6654)
295
+ Completed 200 OK in 858ms (Views: 848.4ms | ActiveRecord: 0.4ms | Allocations: 1539564)
296
+ ```
297
+
298
+ *Eileen M. Uchitelle*, *Aaron Patterson*
299
+
300
+ * Respect the `only_path` option passed to `url_for` when the options are passed in as an array
301
+
302
+ Fixes #33237.
303
+
304
+ *Joel Ambass*
305
+
306
+ * Deprecate calling private model methods from view helpers.
307
+
308
+ For example, in methods like `options_from_collection_for_select`
309
+ and `collection_select` it is possible to call private methods from
310
+ the objects used.
311
+
312
+ Fixes #33546.
313
+
314
+ *Ana María Martínez Gómez*
142
315
 
143
316
  * Fix issue with `button_to`'s `to_form_params`
144
317
 
@@ -151,97 +324,110 @@
151
324
 
152
325
  *Georgi Georgiev*
153
326
 
154
- * Fix JavaScript views rendering does not work with Firefox when using
155
- Content Security Policy.
327
+ * Mark arrays of translations as trusted safe by using the `_html` suffix.
156
328
 
157
- Fixes #32577.
329
+ Example:
158
330
 
159
- *Yuji Yaginuma*
331
+ en:
332
+ foo_html:
333
+ - "One"
334
+ - "<strong>Two</strong>"
335
+ - "Three &#128075; &#128578;"
160
336
 
161
- * Add the `nonce: true` option for `javascript_include_tag` helper to
162
- support automatic nonce generation for Content Security Policy.
163
- Works the same way as `javascript_tag nonce: true` does.
337
+ *Juan Broullon*
164
338
 
165
- *Yaroslav Markin*
166
-
167
-
168
- ## Rails 5.2.0 (April 09, 2018) ##
169
-
170
- * Pass the `:skip_pipeline` option in `image_submit_tag` when calling `path_to_image`.
339
+ * Add `year_format` option to date_select tag. This option makes it possible to customize year
340
+ names. Lambda should be passed to use this option.
171
341
 
172
- Fixes #32248.
342
+ Example:
173
343
 
174
- *Andrew White*
344
+ date_select('user_birthday', '', start_year: 1998, end_year: 2000, year_format: ->year { "Heisei #{year - 1988}" })
175
345
 
176
- * Allow the use of callable objects as group methods for grouped selects.
346
+ The HTML produced:
177
347
 
178
- Until now, the `option_groups_from_collection_for_select` method was only able to
179
- handle method names as `group_method` and `group_label_method` parameters,
180
- it is now able to receive procs and other callable objects too.
348
+ <select id="user_birthday__1i" name="user_birthday[(1i)]">
349
+ <option value="1998">Heisei 10</option>
350
+ <option value="1999">Heisei 11</option>
351
+ <option value="2000">Heisei 12</option>
352
+ </select>
353
+ /* The rest is omitted */
181
354
 
182
- *Jérémie Bonal*
355
+ *Koki Ryu*
183
356
 
184
- * Add `preload_link_tag` helper.
357
+ * Fix JavaScript views rendering does not work with Firefox when using
358
+ Content Security Policy.
185
359
 
186
- This helper that allows to the browser to initiate early fetch of resources
187
- (different to the specified in `javascript_include_tag` and `stylesheet_link_tag`).
188
- Additionally, this sends Early Hints if supported by browser.
360
+ Fixes #32577.
189
361
 
190
- *Guillermo Iguaran*
362
+ *Yuji Yaginuma*
191
363
 
192
- * Change `form_with` to generates ids by default.
364
+ * Add the `nonce: true` option for `javascript_include_tag` helper to
365
+ support automatic nonce generation for Content Security Policy.
366
+ Works the same way as `javascript_tag nonce: true` does.
193
367
 
194
- When `form_with` was introduced we disabled the automatic generation of ids
195
- that was enabled in `form_for`. This usually is not an good idea since labels don't work
196
- when the input doesn't have an id and it made harder to test with Capybara.
368
+ *Yaroslav Markin*
197
369
 
198
- You can still disable the automatic generation of ids setting `config.action_view.form_with_generates_ids`
199
- to `false.`
370
+ * Remove `ActionView::Helpers::RecordTagHelper`.
200
371
 
201
- *Nick Pezza*
372
+ *Yoshiyuki Hirano*
202
373
 
203
- * Fix issues with `field_error_proc` wrapping `optgroup` and select divider `option`.
374
+ * Disable `ActionView::Template` finalizers in test environment.
204
375
 
205
- Fixes #31088
376
+ Template finalization can be expensive in large view test suites.
377
+ Add a configuration option,
378
+ `action_view.finalize_compiled_template_methods`, and turn it off in
379
+ the test environment.
206
380
 
207
- *Matthias Neumayr*
381
+ *Simon Coffey*
208
382
 
209
- * Remove deprecated Erubis ERB handler.
383
+ * Extract the `confirm` call in its own, overridable method in `rails_ujs`.
210
384
 
211
- *Rafael Mendonça França*
385
+ Example:
212
386
 
213
- * Remove default `alt` text generation.
387
+ Rails.confirm = function(message, element) {
388
+ return (my_bootstrap_modal_confirm(message));
389
+ }
214
390
 
215
- Fixes #30096
391
+ *Mathieu Mahé*
216
392
 
217
- *Cameron Cundiff*
393
+ * Enable select tag helper to mark `prompt` option as `selected` and/or `disabled` for `required`
394
+ field.
218
395
 
219
- * Add `srcset` option to `image_tag` helper.
396
+ Example:
220
397
 
221
- *Roberto Miranda*
398
+ select :post,
399
+ :category,
400
+ ["lifestyle", "programming", "spiritual"],
401
+ { selected: "", disabled: "", prompt: "Choose one" },
402
+ { required: true }
222
403
 
223
- * Fix issues with scopes and engine on `current_page?` method.
404
+ Placeholder option would be selected and disabled.
224
405
 
225
- Fixes #29401.
406
+ The HTML produced:
226
407
 
227
- *Nikita Savrov*
408
+ <select required="required" name="post[category]" id="post_category">
409
+ <option disabled="disabled" selected="selected" value="">Choose one</option>
410
+ <option value="lifestyle">lifestyle</option>
411
+ <option value="programming">programming</option>
412
+ <option value="spiritual">spiritual</option></select>
228
413
 
229
- * Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
414
+ *Sergey Prikhodko*
230
415
 
231
- This makes sure that the labels are linked up with the fields.
416
+ * Don't enforce UTF-8 by default.
232
417
 
233
- Fixes #29014.
418
+ With the disabling of TLS 1.0 by most major websites, continuing to run
419
+ IE8 or lower becomes increasingly difficult so default to not enforcing
420
+ UTF-8 encoding as it's not relevant to other browsers.
234
421
 
235
- *Yuji Yaginuma*
422
+ *Andrew White*
236
423
 
237
- * Add `:json` type to `auto_discovery_link_tag` to support [JSON Feeds](https://jsonfeed.org/version/1).
424
+ * Change translation key of `submit_tag` from `module_name_class_name` to `module_name/class_name`.
238
425
 
239
- *Mike Gunderloy*
426
+ *Rui Onodera*
240
427
 
241
- * Update `distance_of_time_in_words` helper to display better error messages
242
- for bad input.
428
+ * Rails 6 requires Ruby 2.5.0 or newer.
243
429
 
244
- *Jay Hayes*
430
+ *Jeremy Daer*, *Kasper Timm Hansen*
245
431
 
246
432
 
247
- Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actionview/CHANGELOG.md) for previous changes.
433
+ Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actionview/CHANGELOG.md) for previous changes.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2004-2018 David Heinemeier Hansson
1
+ Copyright (c) 2004-2019 David Heinemeier Hansson
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -5,6 +5,8 @@ view helpers that assist when building HTML forms, Atom feeds and more.
5
5
  Template formats that Action View handles are ERB (embedded Ruby, typically
6
6
  used to inline short Ruby snippets inside HTML), and XML Builder.
7
7
 
8
+ You can read more about Action View in the {Action View Overview}[https://edgeguides.rubyonrails.org/action_view_overview.html] guide.
9
+
8
10
  == Download and installation
9
11
 
10
12
  The latest version of Action View can be installed with RubyGems:
@@ -13,7 +15,7 @@ The latest version of Action View can be installed with RubyGems:
13
15
 
14
16
  Source code can be downloaded as part of the Rails project on GitHub:
15
17
 
16
- * https://github.com/rails/rails/tree/5-2-stable/actionview
18
+ * https://github.com/rails/rails/tree/main/actionview
17
19
 
18
20
 
19
21
  == License
@@ -27,7 +29,7 @@ Action View is released under the MIT license:
27
29
 
28
30
  API documentation is at
29
31
 
30
- * http://api.rubyonrails.org
32
+ * https://api.rubyonrails.org
31
33
 
32
34
  Bug reports for the Ruby on Rails project can be filed here:
33
35
 
@@ -35,4 +37,4 @@ Bug reports for the Ruby on Rails project can be filed here:
35
37
 
36
38
  Feature requests should be discussed on the rails-core mailing list here:
37
39
 
38
- * https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core
40
+ * https://discuss.rubyonrails.org/c/rubyonrails-core