actionview 5.2.4.4 → 6.1.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 (92) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +221 -93
  3. data/MIT-LICENSE +1 -1
  4. data/README.rdoc +5 -3
  5. data/lib/action_view.rb +7 -2
  6. data/lib/action_view/base.rb +81 -15
  7. data/lib/action_view/buffers.rb +15 -0
  8. data/lib/action_view/cache_expiry.rb +52 -0
  9. data/lib/action_view/context.rb +5 -9
  10. data/lib/action_view/dependency_tracker.rb +10 -4
  11. data/lib/action_view/digestor.rb +15 -22
  12. data/lib/action_view/flows.rb +0 -1
  13. data/lib/action_view/gem_version.rb +4 -4
  14. data/lib/action_view/helpers.rb +0 -2
  15. data/lib/action_view/helpers/active_model_helper.rb +0 -1
  16. data/lib/action_view/helpers/asset_tag_helper.rb +63 -46
  17. data/lib/action_view/helpers/asset_url_helper.rb +9 -6
  18. data/lib/action_view/helpers/atom_feed_helper.rb +2 -1
  19. data/lib/action_view/helpers/cache_helper.rb +23 -22
  20. data/lib/action_view/helpers/capture_helper.rb +4 -0
  21. data/lib/action_view/helpers/csp_helper.rb +4 -2
  22. data/lib/action_view/helpers/csrf_helper.rb +1 -1
  23. data/lib/action_view/helpers/date_helper.rb +73 -30
  24. data/lib/action_view/helpers/form_helper.rb +305 -37
  25. data/lib/action_view/helpers/form_options_helper.rb +23 -23
  26. data/lib/action_view/helpers/form_tag_helper.rb +19 -16
  27. data/lib/action_view/helpers/javascript_helper.rb +12 -11
  28. data/lib/action_view/helpers/number_helper.rb +14 -8
  29. data/lib/action_view/helpers/output_safety_helper.rb +1 -1
  30. data/lib/action_view/helpers/rendering_helper.rb +17 -7
  31. data/lib/action_view/helpers/sanitize_helper.rb +12 -18
  32. data/lib/action_view/helpers/tag_helper.rb +98 -22
  33. data/lib/action_view/helpers/tags/base.rb +18 -11
  34. data/lib/action_view/helpers/tags/check_box.rb +0 -1
  35. data/lib/action_view/helpers/tags/collection_check_boxes.rb +0 -1
  36. data/lib/action_view/helpers/tags/collection_helpers.rb +0 -1
  37. data/lib/action_view/helpers/tags/collection_radio_buttons.rb +0 -1
  38. data/lib/action_view/helpers/tags/color_field.rb +1 -2
  39. data/lib/action_view/helpers/tags/date_field.rb +1 -2
  40. data/lib/action_view/helpers/tags/date_select.rb +2 -3
  41. data/lib/action_view/helpers/tags/datetime_field.rb +0 -1
  42. data/lib/action_view/helpers/tags/datetime_local_field.rb +1 -2
  43. data/lib/action_view/helpers/tags/label.rb +4 -1
  44. data/lib/action_view/helpers/tags/month_field.rb +1 -2
  45. data/lib/action_view/helpers/tags/radio_button.rb +0 -1
  46. data/lib/action_view/helpers/tags/select.rb +1 -2
  47. data/lib/action_view/helpers/tags/text_field.rb +0 -1
  48. data/lib/action_view/helpers/tags/time_field.rb +1 -2
  49. data/lib/action_view/helpers/tags/translator.rb +1 -6
  50. data/lib/action_view/helpers/tags/week_field.rb +1 -2
  51. data/lib/action_view/helpers/text_helper.rb +3 -4
  52. data/lib/action_view/helpers/translation_helper.rb +93 -55
  53. data/lib/action_view/helpers/url_helper.rb +121 -27
  54. data/lib/action_view/layouts.rb +8 -10
  55. data/lib/action_view/log_subscriber.rb +30 -15
  56. data/lib/action_view/lookup_context.rb +63 -35
  57. data/lib/action_view/path_set.rb +3 -12
  58. data/lib/action_view/railtie.rb +42 -26
  59. data/lib/action_view/record_identifier.rb +2 -3
  60. data/lib/action_view/renderer/abstract_renderer.rb +142 -11
  61. data/lib/action_view/renderer/collection_renderer.rb +196 -0
  62. data/lib/action_view/renderer/object_renderer.rb +34 -0
  63. data/lib/action_view/renderer/partial_renderer.rb +21 -273
  64. data/lib/action_view/renderer/partial_renderer/collection_caching.rb +61 -16
  65. data/lib/action_view/renderer/renderer.rb +59 -4
  66. data/lib/action_view/renderer/streaming_template_renderer.rb +10 -8
  67. data/lib/action_view/renderer/template_renderer.rb +35 -27
  68. data/lib/action_view/rendering.rb +54 -33
  69. data/lib/action_view/routing_url_for.rb +13 -12
  70. data/lib/action_view/template.rb +66 -75
  71. data/lib/action_view/template/error.rb +30 -15
  72. data/lib/action_view/template/handlers.rb +1 -1
  73. data/lib/action_view/template/handlers/builder.rb +2 -2
  74. data/lib/action_view/template/handlers/erb.rb +16 -11
  75. data/lib/action_view/template/handlers/erb/erubi.rb +15 -9
  76. data/lib/action_view/template/handlers/html.rb +1 -1
  77. data/lib/action_view/template/handlers/raw.rb +2 -2
  78. data/lib/action_view/template/html.rb +5 -6
  79. data/lib/action_view/template/inline.rb +22 -0
  80. data/lib/action_view/template/raw_file.rb +25 -0
  81. data/lib/action_view/template/renderable.rb +24 -0
  82. data/lib/action_view/template/resolver.rb +191 -150
  83. data/lib/action_view/template/sources.rb +13 -0
  84. data/lib/action_view/template/sources/file.rb +17 -0
  85. data/lib/action_view/template/text.rb +2 -3
  86. data/lib/action_view/test_case.rb +21 -29
  87. data/lib/action_view/testing/resolvers.rb +18 -27
  88. data/lib/action_view/unbound_template.rb +31 -0
  89. data/lib/action_view/view_paths.rb +59 -38
  90. data/lib/assets/compiled/rails-ujs.js +29 -3
  91. metadata +32 -21
  92. 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: 285d9a982fd985cc0c7b694548154f3e7b52dac3dfa42c9c7dbbd61d07f6ed81
4
- data.tar.gz: e877ec1372d604047b00f5a665397a42952ca07f7ed470a7c64a7c8913630f1e
3
+ metadata.gz: a164a5f7ce09e84dfab86b45a2df631dc782f50fc22c0cbb92f967c95808de63
4
+ data.tar.gz: 9dd5e8614c436054ebb785df67171b16deb22bb8be3518d57ee8486613919d86
5
5
  SHA512:
6
- metadata.gz: 6293206a2f96b9a349fe3f40f1f42fa81727e38e8333149b60df3bfd56afb39fced4f23c2643eb6fd477bf5b8095e1b31b70cd8f5abbe9d7c577fab225fadfa5
7
- data.tar.gz: b5bffb0c64df5ba0640b1fbc0d4b75ca3e672f3172a4cd9c97280a35681be4419e82ac93b4093c6b2889c05fb26dd02e651e14c75e0aed98006ddadda2ca181d
6
+ metadata.gz: 3502d7dd7b2407ce4634afadcd61b2d654f248d91bf85d9f43bd6b1ad150fdd84a45b6f009a04d899be293d123be503a7e497b761c10a576bea6c9248140f599
7
+ data.tar.gz: 3b0695d10e6939424bf14a8cbcea85f6628de02d0a4de37266213883604be8a95daf65eb435cf32260dae4d8b8ad562af7c37a3b426a2589fd305056ec381361
data/CHANGELOG.md CHANGED
@@ -1,176 +1,304 @@
1
- ## Rails 5.2.4.4 (September 09, 2020) ##
1
+ ## Rails 6.1.1 (January 07, 2021) ##
2
2
 
3
- * [CVE-2020-15169] Fix potential XSS vulnerability in the `translate`/`t` helper
3
+ * Fix lazy translation in partial with block.
4
+
5
+ *Marek Kasztelnik*
6
+
7
+ * Avoid extra `SELECT COUNT` queries when rendering Active Record collections.
8
+
9
+ *aar0nr*
10
+
11
+ * Link preloading keep integrity hashes in the header.
12
+
13
+ *Étienne Barrié*
14
+
15
+ * Add `config.action_view.preload_links_header` to allow disabling of
16
+ the `Link` header being added by default when using `stylesheet_link_tag`
17
+ and `javascript_include_tag`.
18
+
19
+ *Andrew White*
20
+
21
+ * The `translate` helper now resolves `default` values when a `nil` key is
22
+ specified, instead of always returning `nil`.
4
23
 
5
24
  *Jonathan Hefner*
6
25
 
7
26
 
8
- ## Rails 5.2.4.3 (May 18, 2020) ##
27
+ ## Rails 6.1.0 (December 09, 2020) ##
9
28
 
10
- * [CVE-2020-8167] Check that request is same-origin prior to including CSRF token in XHRs
29
+ * SanitizeHelper.sanitized_allowed_attributes and SanitizeHelper.sanitized_allowed_tags
30
+ call safe_list_sanitizer's class method
11
31
 
32
+ Fixes #39586
12
33
 
13
- ## Rails 5.2.4.1 (December 18, 2019) ##
34
+ *Taufiq Muhammadi*
14
35
 
15
- * No changes.
36
+ * Change form_with to generate non-remote forms by default.
16
37
 
38
+ `form_with` would generate a remote form by default. This would confuse
39
+ users because they were forced to handle remote requests.
17
40
 
18
- ## Rails 5.2.4 (November 27, 2019) ##
41
+ All new 6.1 applications will generate non-remote forms by default.
42
+ When upgrading a 6.0 application you can enable remote forms by default by
43
+ setting `config.action_view.form_with_generates_remote_forms` to `true`.
19
44
 
20
- * Allow programmatic click events to trigger Rails UJS click handlers.
21
- 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.
45
+ *Petrik de Heus*
22
46
 
23
- *Sudara Williams*
47
+ * Yield translated strings to calls of `ActionView::FormBuilder#button`
48
+ when a block is given.
24
49
 
50
+ *Sean Doyle*
25
51
 
26
- ## Rails 5.2.3 (March 27, 2019) ##
52
+ * Alias `ActionView::Helpers::Tags::Label::LabelBuilder#translation` to
53
+ `#to_s` so that `form.label` calls can yield that value to their blocks.
27
54
 
28
- * Prevent non-primary mouse keys from triggering Rails UJS click handlers.
29
- Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
30
- 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.
55
+ *Sean Doyle*
31
56
 
32
- ```
33
- <%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
34
- ```
57
+ * Rename the new `TagHelper#class_names` method to `TagHelper#token_list`,
58
+ and make the original available as an alias.
59
+
60
+ token_list("foo", "foo bar")
61
+ # => "foo bar"
62
+
63
+ *Sean Doyle*
64
+
65
+ * ARIA Array and Hash attributes are treated as space separated `DOMTokenList`
66
+ values. This is useful when declaring lists of label text identifiers in
67
+ `aria-labelledby` or `aria-describedby`.
68
+
69
+ tag.input type: 'checkbox', name: 'published', aria: {
70
+ invalid: @post.errors[:published].any?,
71
+ labelledby: ['published_context', 'published_label'],
72
+ describedby: { published_errors: @post.errors[:published].any? }
73
+ }
74
+ #=> <input
75
+ type="checkbox" name="published" aria-invalid="true"
76
+ aria-labelledby="published_context published_label"
77
+ aria-describedby="published_errors"
78
+ >
79
+
80
+ *Sean Doyle*
81
+
82
+ * Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`.
83
+
84
+ *Rafael Mendonça França*
35
85
 
36
- Fixes #34541
86
+ * Remove deprecated `find_all_anywhere` from `ActionView::Resolver`.
37
87
 
38
- *Wolfgang Hobmaier*
88
+ *Rafael Mendonça França*
39
89
 
90
+ * Remove deprecated `formats` from `ActionView::Template::HTML`.
40
91
 
41
- ## Rails 5.2.2.1 (March 11, 2019) ##
92
+ *Rafael Mendonça França*
42
93
 
43
- * Only accept formats from registered mime types
94
+ * Remove deprecated `formats` from `ActionView::Template::RawFile`.
44
95
 
45
- A lack of filtering on mime types could allow an attacker to read
46
- arbitrary files on the target server or to perform a denial of service
47
- attack.
96
+ *Rafael Mendonça França*
48
97
 
49
- Fixes CVE-2019-5418
50
- Fixes CVE-2019-5419
98
+ * Remove deprecated `formats` from `ActionView::Template::Text`.
51
99
 
52
- *John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
100
+ *Rafael Mendonça França*
53
101
 
102
+ * Remove deprecated `find_file` from `ActionView::PathSet`.
54
103
 
55
- ## Rails 5.2.2 (December 04, 2018) ##
104
+ *Rafael Mendonça França*
56
105
 
57
- * No changes.
106
+ * Remove deprecated `rendered_format` from `ActionView::LookupContext`.
58
107
 
108
+ *Rafael Mendonça França*
59
109
 
60
- ## Rails 5.2.1.1 (November 27, 2018) ##
110
+ * Remove deprecated `find_file` from `ActionView::ViewPaths`.
61
111
 
62
- * No changes.
112
+ *Rafael Mendonça França*
63
113
 
114
+ * Require that `ActionView::Base` subclasses implement `#compiled_method_container`.
64
115
 
65
- ## Rails 5.2.1 (August 07, 2018) ##
116
+ *Rafael Mendonça França*
66
117
 
67
- * Fix leak of `skip_default_ids` and `allow_method_names_outside_object` options
68
- to HTML attributes.
118
+ * Remove deprecated support to pass an object that is not a `ActionView::LookupContext` as the first argument
119
+ in `ActionView::Base#initialize`.
69
120
 
70
- *Yurii Cherniavskyi*
121
+ *Rafael Mendonça França*
71
122
 
72
- * Fix issue with `button_to`'s `to_form_params`
123
+ * Remove deprecated `format` argument `ActionView::Base#initialize`.
73
124
 
74
- `button_to` was throwing exception when invoked with `params` hash that
75
- contains symbol and string keys. The reason for the exception was that
76
- `to_form_params` was comparing the given symbol and string keys.
125
+ *Rafael Mendonça França*
77
126
 
78
- The issue is fixed by turning all keys to strings inside
79
- `to_form_params` before comparing them.
127
+ * Remove deprecated `ActionView::Template#refresh`.
80
128
 
81
- *Georgi Georgiev*
129
+ *Rafael Mendonça França*
82
130
 
83
- * Fix JavaScript views rendering does not work with Firefox when using
84
- Content Security Policy.
131
+ * Remove deprecated `ActionView::Template#original_encoding`.
85
132
 
86
- Fixes #32577.
133
+ *Rafael Mendonça França*
87
134
 
88
- *Yuji Yaginuma*
135
+ * Remove deprecated `ActionView::Template#variants`.
89
136
 
90
- * Add the `nonce: true` option for `javascript_include_tag` helper to
91
- support automatic nonce generation for Content Security Policy.
92
- Works the same way as `javascript_tag nonce: true` does.
137
+ *Rafael Mendonça França*
93
138
 
94
- *Yaroslav Markin*
139
+ * Remove deprecated `ActionView::Template#formats`.
95
140
 
141
+ *Rafael Mendonça França*
96
142
 
97
- ## Rails 5.2.0 (April 09, 2018) ##
143
+ * Remove deprecated `ActionView::Template#virtual_path=`.
98
144
 
99
- * Pass the `:skip_pipeline` option in `image_submit_tag` when calling `path_to_image`.
145
+ *Rafael Mendonça França*
100
146
 
101
- Fixes #32248.
147
+ * Remove deprecated `ActionView::Template#updated_at`.
102
148
 
103
- *Andrew White*
149
+ *Rafael Mendonça França*
150
+
151
+ * Remove deprecated `updated_at` argument required on `ActionView::Template#initialize`.
152
+
153
+ *Rafael Mendonça França*
104
154
 
105
- * Allow the use of callable objects as group methods for grouped selects.
155
+ * Make `locals` argument required on `ActionView::Template#initialize`.
106
156
 
107
- Until now, the `option_groups_from_collection_for_select` method was only able to
108
- handle method names as `group_method` and `group_label_method` parameters,
109
- it is now able to receive procs and other callable objects too.
157
+ *Rafael Mendonça França*
110
158
 
111
- *Jérémie Bonal*
159
+ * Remove deprecated `ActionView::Template.finalize_compiled_template_methods`.
112
160
 
113
- * Add `preload_link_tag` helper.
161
+ *Rafael Mendonça França*
114
162
 
115
- This helper that allows to the browser to initiate early fetch of resources
116
- (different to the specified in `javascript_include_tag` and `stylesheet_link_tag`).
117
- Additionally, this sends Early Hints if supported by browser.
163
+ * Remove deprecated `config.action_view.finalize_compiled_template_methods`
164
+
165
+ *Rafael Mendonça França*
118
166
 
119
- *Guillermo Iguaran*
167
+ * Remove deprecated support to calling `ActionView::ViewPaths#with_fallback` with a block.
120
168
 
121
- * Change `form_with` to generates ids by default.
169
+ *Rafael Mendonça França*
122
170
 
123
- When `form_with` was introduced we disabled the automatic generation of ids
124
- that was enabled in `form_for`. This usually is not an good idea since labels don't work
125
- when the input doesn't have an id and it made harder to test with Capybara.
171
+ * Remove deprecated support to passing absolute paths to `render template:`.
126
172
 
127
- You can still disable the automatic generation of ids setting `config.action_view.form_with_generates_ids`
128
- to `false.`
173
+ *Rafael Mendonça França*
129
174
 
130
- *Nick Pezza*
175
+ * Remove deprecated support to passing relative paths to `render file:`.
131
176
 
132
- * Fix issues with `field_error_proc` wrapping `optgroup` and select divider `option`.
177
+ *Rafael Mendonça França*
133
178
 
134
- Fixes #31088
179
+ * Remove support to template handlers that don't accept two arguments.
135
180
 
136
- *Matthias Neumayr*
181
+ *Rafael Mendonça França*
137
182
 
138
- * Remove deprecated Erubis ERB handler.
183
+ * Remove deprecated pattern argument in `ActionView::Template::PathResolver`.
139
184
 
140
185
  *Rafael Mendonça França*
141
186
 
142
- * Remove default `alt` text generation.
187
+ * Remove deprecated support to call private methods from object in some view helpers.
188
+
189
+ *Rafael Mendonça França*
190
+
191
+ * `ActionView::Helpers::TranslationHelper#translate` accepts a block, yielding
192
+ the translated text and the fully resolved translation key:
193
+
194
+ <%= translate(".relative_key") do |translation, resolved_key| %>
195
+ <span title="<%= resolved_key %>"><%= translation %></span>
196
+ <% end %>
197
+
198
+ *Sean Doyle*
199
+
200
+ * Ensure cache fragment digests include all relevant template dependencies when
201
+ fragments are contained in a block passed to the render helper. Remove the
202
+ virtual_path keyword arguments found in CacheHelper as they no longer possess
203
+ any function following 1581cab.
204
+
205
+ Fixes #38984.
206
+
207
+ *Aaron Lipman*
208
+
209
+ * Deprecate `config.action_view.raise_on_missing_translations` in favor of
210
+ `config.i18n.raise_on_missing_translations`.
211
+
212
+ New generalized configuration option now determines whether an error should be raised
213
+ for missing translations in controllers and views.
214
+
215
+ *fatkodima*
216
+
217
+ * Instrument layout rendering in `TemplateRenderer#render_with_layout` as `render_layout.action_view`,
218
+ and include (when necessary) the layout's virtual path in notification payloads for collection and partial renders.
219
+
220
+ *Zach Kemp*
221
+
222
+ * `ActionView::Base.annotate_rendered_view_with_filenames` annotates HTML output with template file names.
223
+
224
+ *Joel Hawksley*, *Aaron Patterson*
225
+
226
+ * `ActionView::Helpers::TranslationHelper#translate` returns nil when
227
+ passed `default: nil` without a translation matching `I18n#translate`.
228
+
229
+ *Stefan Wrobel*
230
+
231
+ * `OptimizedFileSystemResolver` prefers template details in order of locale,
232
+ formats, variants, handlers.
233
+
234
+ *Iago Pimenta*
235
+
236
+ * Added `class_names` helper to create a CSS class value with conditional classes.
237
+
238
+ *Joel Hawksley*, *Aaron Patterson*
239
+
240
+ * Add support for conditional values to TagBuilder.
241
+
242
+ *Joel Hawksley*
243
+
244
+ * `ActionView::Helpers::FormOptionsHelper#select` should mark option for `nil` as selected.
245
+
246
+ ```ruby
247
+ @post = Post.new
248
+ @post.category = nil
249
+
250
+ # Before
251
+ select("post", "category", none: nil, programming: 1, economics: 2)
252
+ # =>
253
+ # <select name="post[category]" id="post_category">
254
+ # <option value="">none</option>
255
+ # <option value="1">programming</option>
256
+ # <option value="2">economics</option>
257
+ # </select>
258
+
259
+ # After
260
+ select("post", "category", none: nil, programming: 1, economics: 2)
261
+ # =>
262
+ # <select name="post[category]" id="post_category">
263
+ # <option selected="selected" value="">none</option>
264
+ # <option value="1">programming</option>
265
+ # <option value="2">economics</option>
266
+ # </select>
267
+ ```
268
+
269
+ *bogdanvlviv*
143
270
 
144
- Fixes #30096
271
+ * Log lines for partial renders and started template renders are now
272
+ emitted at the `DEBUG` level instead of `INFO`.
145
273
 
146
- *Cameron Cundiff*
274
+ Completed template renders are still logged at the `INFO` level.
147
275
 
148
- * Add `srcset` option to `image_tag` helper.
276
+ *DHH*
149
277
 
150
- *Roberto Miranda*
278
+ * ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
151
279
 
152
- * Fix issues with scopes and engine on `current_page?` method.
280
+ *Juanito Fatas*
153
281
 
154
- Fixes #29401.
282
+ * Added `phone_to` helper method to create a link from mobile numbers.
155
283
 
156
- *Nikita Savrov*
284
+ *Pietro Moro*
157
285
 
158
- * Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
286
+ * annotated_source_code returns an empty array so TemplateErrors without a
287
+ template in the backtrace are surfaced properly by DebugExceptions.
159
288
 
160
- This makes sure that the labels are linked up with the fields.
289
+ *Guilherme Mansur*, *Kasper Timm Hansen*
161
290
 
162
- Fixes #29014.
291
+ * Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
163
292
 
164
- *Yuji Yaginuma*
293
+ *Guilherme Mansur*, *Gannon McGibbon*
165
294
 
166
- * Add `:json` type to `auto_discovery_link_tag` to support [JSON Feeds](https://jsonfeed.org/version/1).
295
+ * `RenderingHelper` supports rendering objects that `respond_to?` `:render_in`.
167
296
 
168
- *Mike Gunderloy*
297
+ *Joel Hawksley*, *Natasha Umer*, *Aaron Patterson*, *Shawn Allen*, *Emily Plummer*, *Diana Mounter*, *John Hawthorn*, *Nathan Herald*, *Zaid Zawaideh*, *Zach Ahn*
169
298
 
170
- * Update `distance_of_time_in_words` helper to display better error messages
171
- for bad input.
299
+ * Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
172
300
 
173
- *Jay Hayes*
301
+ *Younes SERRAJ*
174
302
 
175
303
 
176
- Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actionview/CHANGELOG.md) for previous changes.
304
+ Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-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-2020 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/master/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
data/lib/action_view.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  #--
4
- # Copyright (c) 2004-2018 David Heinemeier Hansson
4
+ # Copyright (c) 2004-2020 David Heinemeier Hansson
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining
7
7
  # a copy of this software and associated documentation files (the
@@ -35,7 +35,6 @@ module ActionView
35
35
  eager_autoload do
36
36
  autoload :Base
37
37
  autoload :Context
38
- autoload :CompiledTemplates, "action_view/context"
39
38
  autoload :Digestor
40
39
  autoload :Helpers
41
40
  autoload :LookupContext
@@ -45,12 +44,15 @@ module ActionView
45
44
  autoload :Rendering
46
45
  autoload :RoutingUrlFor
47
46
  autoload :Template
47
+ autoload :UnboundTemplate
48
48
  autoload :ViewPaths
49
49
 
50
50
  autoload_under "renderer" do
51
51
  autoload :Renderer
52
52
  autoload :AbstractRenderer
53
53
  autoload :PartialRenderer
54
+ autoload :CollectionRenderer
55
+ autoload :ObjectRenderer
54
56
  autoload :TemplateRenderer
55
57
  autoload :StreamingTemplateRenderer
56
58
  end
@@ -58,6 +60,7 @@ module ActionView
58
60
  autoload_at "action_view/template/resolver" do
59
61
  autoload :Resolver
60
62
  autoload :PathResolver
63
+ autoload :FileSystemResolver
61
64
  autoload :OptimizedFileSystemResolver
62
65
  autoload :FallbackFileSystemResolver
63
66
  end
@@ -77,10 +80,12 @@ module ActionView
77
80
  autoload :ActionViewError
78
81
  autoload :EncodingError
79
82
  autoload :TemplateError
83
+ autoload :SyntaxErrorInTemplate
80
84
  autoload :WrongEncodingError
81
85
  end
82
86
  end
83
87
 
88
+ autoload :CacheExpiry
84
89
  autoload :TestCase
85
90
 
86
91
  def self.eager_load!