actionview 4.2.11.1 → 5.2.7

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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +108 -240
  3. data/MIT-LICENSE +1 -1
  4. data/README.rdoc +5 -6
  5. data/lib/action_view/base.rb +38 -28
  6. data/lib/action_view/buffers.rb +3 -1
  7. data/lib/action_view/context.rb +3 -3
  8. data/lib/action_view/dependency_tracker.rb +54 -20
  9. data/lib/action_view/digestor.rb +94 -83
  10. data/lib/action_view/flows.rb +11 -11
  11. data/lib/action_view/gem_version.rb +5 -3
  12. data/lib/action_view/helpers/active_model_helper.rb +17 -11
  13. data/lib/action_view/helpers/asset_tag_helper.rb +244 -62
  14. data/lib/action_view/helpers/asset_url_helper.rb +170 -67
  15. data/lib/action_view/helpers/atom_feed_helper.rb +19 -17
  16. data/lib/action_view/helpers/cache_helper.rb +105 -42
  17. data/lib/action_view/helpers/capture_helper.rb +16 -13
  18. data/lib/action_view/helpers/controller_helper.rb +15 -4
  19. data/lib/action_view/helpers/csp_helper.rb +24 -0
  20. data/lib/action_view/helpers/csrf_helper.rb +7 -5
  21. data/lib/action_view/helpers/date_helper.rb +170 -112
  22. data/lib/action_view/helpers/debug_helper.rb +7 -6
  23. data/lib/action_view/helpers/form_helper.rb +521 -127
  24. data/lib/action_view/helpers/form_options_helper.rb +109 -63
  25. data/lib/action_view/helpers/form_tag_helper.rb +110 -67
  26. data/lib/action_view/helpers/javascript_helper.rb +27 -12
  27. data/lib/action_view/helpers/number_helper.rb +77 -58
  28. data/lib/action_view/helpers/output_safety_helper.rb +36 -4
  29. data/lib/action_view/helpers/record_tag_helper.rb +14 -99
  30. data/lib/action_view/helpers/rendering_helper.rb +6 -5
  31. data/lib/action_view/helpers/sanitize_helper.rb +20 -15
  32. data/lib/action_view/helpers/tag_helper.rb +198 -73
  33. data/lib/action_view/helpers/tags/base.rb +134 -97
  34. data/lib/action_view/helpers/tags/check_box.rb +20 -18
  35. data/lib/action_view/helpers/tags/checkable.rb +4 -2
  36. data/lib/action_view/helpers/tags/collection_check_boxes.rb +12 -33
  37. data/lib/action_view/helpers/tags/collection_helpers.rb +70 -36
  38. data/lib/action_view/helpers/tags/collection_radio_buttons.rb +6 -11
  39. data/lib/action_view/helpers/tags/collection_select.rb +4 -2
  40. data/lib/action_view/helpers/tags/color_field.rb +3 -1
  41. data/lib/action_view/helpers/tags/date_field.rb +2 -0
  42. data/lib/action_view/helpers/tags/date_select.rb +38 -36
  43. data/lib/action_view/helpers/tags/datetime_field.rb +4 -2
  44. data/lib/action_view/helpers/tags/datetime_local_field.rb +2 -0
  45. data/lib/action_view/helpers/tags/datetime_select.rb +2 -0
  46. data/lib/action_view/helpers/tags/email_field.rb +2 -0
  47. data/lib/action_view/helpers/tags/file_field.rb +2 -0
  48. data/lib/action_view/helpers/tags/grouped_collection_select.rb +4 -2
  49. data/lib/action_view/helpers/tags/hidden_field.rb +2 -0
  50. data/lib/action_view/helpers/tags/label.rb +3 -1
  51. data/lib/action_view/helpers/tags/month_field.rb +2 -0
  52. data/lib/action_view/helpers/tags/number_field.rb +2 -0
  53. data/lib/action_view/helpers/tags/password_field.rb +3 -1
  54. data/lib/action_view/helpers/tags/placeholderable.rb +3 -1
  55. data/lib/action_view/helpers/tags/radio_button.rb +7 -5
  56. data/lib/action_view/helpers/tags/range_field.rb +2 -0
  57. data/lib/action_view/helpers/tags/search_field.rb +14 -9
  58. data/lib/action_view/helpers/tags/select.rb +11 -9
  59. data/lib/action_view/helpers/tags/tel_field.rb +2 -0
  60. data/lib/action_view/helpers/tags/text_area.rb +4 -2
  61. data/lib/action_view/helpers/tags/text_field.rb +8 -7
  62. data/lib/action_view/helpers/tags/time_field.rb +2 -0
  63. data/lib/action_view/helpers/tags/time_select.rb +2 -0
  64. data/lib/action_view/helpers/tags/time_zone_select.rb +3 -1
  65. data/lib/action_view/helpers/tags/translator.rb +17 -13
  66. data/lib/action_view/helpers/tags/url_field.rb +2 -0
  67. data/lib/action_view/helpers/tags/week_field.rb +2 -0
  68. data/lib/action_view/helpers/tags.rb +3 -1
  69. data/lib/action_view/helpers/text_helper.rb +55 -36
  70. data/lib/action_view/helpers/translation_helper.rb +74 -32
  71. data/lib/action_view/helpers/url_helper.rb +159 -104
  72. data/lib/action_view/helpers.rb +5 -1
  73. data/lib/action_view/layouts.rb +65 -58
  74. data/lib/action_view/log_subscriber.rb +60 -8
  75. data/lib/action_view/lookup_context.rb +80 -65
  76. data/lib/action_view/model_naming.rb +3 -1
  77. data/lib/action_view/path_set.rb +30 -19
  78. data/lib/action_view/railtie.rb +39 -6
  79. data/lib/action_view/record_identifier.rb +53 -25
  80. data/lib/action_view/renderer/abstract_renderer.rb +21 -15
  81. data/lib/action_view/renderer/partial_renderer/collection_caching.rb +57 -0
  82. data/lib/action_view/renderer/partial_renderer.rb +218 -214
  83. data/lib/action_view/renderer/renderer.rb +8 -6
  84. data/lib/action_view/renderer/streaming_template_renderer.rb +50 -48
  85. data/lib/action_view/renderer/template_renderer.rb +67 -66
  86. data/lib/action_view/rendering.rb +19 -14
  87. data/lib/action_view/routing_url_for.rb +27 -17
  88. data/lib/action_view/tasks/cache_digests.rake +25 -0
  89. data/lib/action_view/template/error.rb +16 -16
  90. data/lib/action_view/template/handlers/builder.rb +10 -11
  91. data/lib/action_view/template/handlers/erb/erubi.rb +83 -0
  92. data/lib/action_view/template/handlers/erb.rb +9 -80
  93. data/lib/action_view/template/handlers/html.rb +11 -0
  94. data/lib/action_view/template/handlers/raw.rb +3 -3
  95. data/lib/action_view/template/handlers.rb +11 -7
  96. data/lib/action_view/template/html.rb +5 -5
  97. data/lib/action_view/template/resolver.rb +140 -115
  98. data/lib/action_view/template/text.rb +8 -9
  99. data/lib/action_view/template/types.rb +18 -18
  100. data/lib/action_view/template.rb +56 -31
  101. data/lib/action_view/test_case.rb +50 -29
  102. data/lib/action_view/testing/resolvers.rb +31 -31
  103. data/lib/action_view/version.rb +3 -1
  104. data/lib/action_view/view_paths.rb +28 -34
  105. data/lib/action_view.rb +8 -7
  106. data/lib/assets/compiled/rails-ujs.js +720 -0
  107. metadata +25 -24
  108. data/lib/action_view/tasks/dependencies.rake +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71fb7b73001ccc9220ba0da089fc3336a3a18620ca13a18730fa91d4799fbf58
4
- data.tar.gz: a87ef6a72900a81c7cff2d00f3fac65006c0f95935b7bf366c1f4bfa1210b6d1
3
+ metadata.gz: 9b5c95d9da13c30d994f7b054cbcf5d8857be02ed3853c6a0a9e9c9cfc92c437
4
+ data.tar.gz: 43a055a269ecefdfc2a7c2b1d65cdad59ecb6f3ec59712d2c7b46c2da408c741
5
5
  SHA512:
6
- metadata.gz: ea93cb6a5de3af579900cf1534b50842c6d197062ee7a01a9f499287dbbb8f6f3d9c32abfadba3c2d1868b8deddc70594c3e5767744031e47961d5da15cb5e54
7
- data.tar.gz: e59b44cf756ed5bf55ef96709055a04413dfba03fa083c32ef709eb266267ac774bc7d83c08c696a16c98e5dd93a412a531372eee7546bcc8e856e1304dcf618
6
+ metadata.gz: dda4aa565a765b022e9c428cdf52d8c7fd250b15d8cfb17b2bbb569b49249c0684515081f3dc6978c41d6c837c89d30dc33d129a6e300e8ef4b08caccae70840
7
+ data.tar.gz: a1e4cea4e509ebdfc60a69340c7796060786fc958d85b1ed1484447360260dff5697cbd86b95e10ab13fc15822e58be3a13066bb72f0e7a515b8ff60b02ba1ee
data/CHANGELOG.md CHANGED
@@ -1,357 +1,225 @@
1
- ## Rails 4.2.11.1 (March 11, 2019) ##
1
+ ## Rails 5.2.7 (March 10, 2022) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 4.2.11 (November 27, 2018) ##
6
+ ## Rails 5.2.6.3 (March 08, 2022) ##
7
7
 
8
8
  * No changes.
9
9
 
10
10
 
11
- ## Rails 4.2.10 (September 27, 2017) ##
11
+ ## Rails 5.2.6.2 (February 11, 2022) ##
12
12
 
13
13
  * No changes.
14
14
 
15
15
 
16
- ## Rails 4.2.9 (June 26, 2017) ##
16
+ ## Rails 5.2.6.1 (February 11, 2022) ##
17
17
 
18
18
  * No changes.
19
19
 
20
20
 
21
- ## Rails 4.2.8 (February 21, 2017) ##
21
+ ## Rails 5.2.6 (May 05, 2021) ##
22
22
 
23
23
  * No changes.
24
24
 
25
25
 
26
- ## Rails 4.2.7 (July 12, 2016) ##
26
+ ## Rails 5.2.5 (March 26, 2021) ##
27
27
 
28
28
  * No changes.
29
29
 
30
30
 
31
- ## Rails 4.2.6 (March 07, 2016) ##
31
+ ## Rails 5.2.4.6 (May 05, 2021) ##
32
32
 
33
- * Fix stripping the digest from the automatically generated img tag alt
34
- attribute when assets are handled by Sprockets >=3.0.
35
-
36
- *Bart de Water*
37
-
38
- * Create a new `ActiveSupport::SafeBuffer` instance when `content_for` is flushed.
39
-
40
- Fixes #19890
33
+ * No changes.
41
34
 
42
- *Yoong Kang Lim*
43
35
 
44
- * Respect value of `:object` if `:object` is false when rendering.
36
+ ## Rails 5.2.4.5 (February 10, 2021) ##
45
37
 
46
- Fixes #22260.
38
+ * No changes.
47
39
 
48
- *Yuichiro Kaneko*
49
40
 
50
- * Generate `week_field` input values using a 1-based index and not a 0-based index
51
- as per the W3 spec: http://www.w3.org/TR/html-markup/datatypes.html#form.data.week
41
+ ## Rails 5.2.4.4 (September 09, 2020) ##
52
42
 
53
- *Christoph Geschwind*
43
+ * [CVE-2020-15169] Fix potential XSS vulnerability in the `translate`/`t` helper
54
44
 
45
+ *Jonathan Hefner*
55
46
 
56
- ## Rails 4.2.5.2 (February 26, 2016) ##
57
47
 
58
- * Do not allow render with unpermitted parameter.
48
+ ## Rails 5.2.4.3 (May 18, 2020) ##
59
49
 
60
- Fixes CVE-2016-2098.
50
+ * [CVE-2020-8167] Check that request is same-origin prior to including CSRF token in XHRs
61
51
 
62
- *Arthur Neves*
63
52
 
53
+ ## Rails 5.2.4.2 (March 19, 2020) ##
64
54
 
65
- ## Rails 4.2.5.1 (January 25, 2015) ##
55
+ * Fix possible XSS vector in `escape_javascript` helper
66
56
 
67
- * Adds boolean argument outside_app_allowed to `ActionView::Resolver#find_templates`
68
- method.
57
+ CVE-2020-5267
69
58
 
70
59
  *Aaron Patterson*
71
60
 
72
61
 
73
- ## Rails 4.2.5 (November 12, 2015) ##
74
-
75
- * Fix `mail_to` when called with `nil` as argument.
76
-
77
- *Rafael Mendonça França*
78
-
79
- * `url_for` does not modify its arguments when generating polymorphic URLs.
80
-
81
- *Bernerd Schaefer*
82
-
83
-
84
- ## Rails 4.2.4 (August 24, 2015) ##
85
-
86
- * No Changes *
87
-
88
-
89
- ## Rails 4.2.3 (June 25, 2015) ##
90
-
91
- * `translate` should handle `raise` flag correctly in case of both main and default
92
- translation is missing.
93
-
94
- Fixes #19967
95
-
96
- *Bernard Potocki*
97
-
98
- * `translate` allows `default: [[]]` again for a default value of `[]`.
99
-
100
- Fixes #19640.
101
-
102
- *Adam Prescott*
103
-
104
- * `translate` should accept nils as members of the `:default`
105
- parameter without raising a translation missing error. Fixes a
106
- regression introduced 362557e.
107
-
108
- Fixes #19419
109
-
110
- *Justin Coyne*
111
-
112
- * `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
113
- as input when `precision: 0` is used.
114
-
115
- Fixes #19227.
116
-
117
- *Yves Senn*
118
-
119
-
120
- ## Rails 4.2.2 (June 16, 2015) ##
121
-
122
- * No Changes *
123
-
62
+ ## Rails 5.2.4.1 (December 18, 2019) ##
124
63
 
125
- ## Rails 4.2.1 (March 19, 2015) ##
126
-
127
- * Default translations that have a lower precedence than an html safe default,
128
- but are not themselves safe, should not be marked as html_safe.
129
-
130
- *Justin Coyne*
131
-
132
- * Added an explicit error message, in `ActionView::PartialRenderer`
133
- for partial `rendering`, when the value of option `as` has invalid characters.
134
-
135
- *Angelo Capilleri*
136
-
137
-
138
- ## Rails 4.2.0 (December 20, 2014) ##
139
-
140
- * Local variable in a partial is now available even if a falsy value is
141
- passed to `:object` when rendering a partial.
142
-
143
- Fixes #17373.
144
-
145
- *Agis Anastasopoulos*
146
-
147
- * Add support for `:enforce_utf8` option in `form_for`.
148
-
149
- This is the same option that was added in 06388b0 to `form_tag` and allows
150
- users to skip the insertion of the UTF8 enforcer tag in a form.
151
-
152
- * claudiob *
153
-
154
- * Fix a bug that <%= foo(){ %> and <%= foo()do %> in view templates were not regarded
155
- as Ruby block calls.
156
-
157
- * Akira Matsuda *
158
-
159
- * Update `select_tag` to work correctly with `:include_blank` option passing a string.
160
-
161
- Fixes #16483.
162
-
163
- *Frank Groeneveld*
164
-
165
- * Changed the meaning of `render "foo/bar"`.
166
-
167
- Previously, calling `render "foo/bar"` in a controller action is equivalent
168
- to `render file: "foo/bar"`. In Rails 4.2, this has been changed to mean
169
- `render template: "foo/bar"` instead. If you need to render a file, please
170
- change your code to use the explicit form (`render file: "foo/bar"`) instead.
171
-
172
- *Jeremy Jackson*
173
-
174
- * Add support for ARIA attributes in tags.
175
-
176
- Example:
177
-
178
- <%= f.text_field :name, aria: { required: "true", hidden: "false" } %>
179
-
180
- now generates:
181
-
182
- <input aria-hidden="false" aria-required="true" id="user_name" name="user[name]" type="text">
183
-
184
- *Paola Garcia Casadiego*
64
+ * No changes.
185
65
 
186
- * Provide a `builder` object when using the `label` form helper in block form.
187
66
 
188
- The new `builder` object responds to `translation`, allowing I18n fallback support
189
- when you want to customize how a particular label is presented.
67
+ ## Rails 5.2.4 (November 27, 2019) ##
190
68
 
191
- *Alex Robbin*
69
+ * Allow programmatic click events to trigger Rails UJS click handlers.
70
+ 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.
192
71
 
193
- * Add I18n support for input/textarea placeholder text.
72
+ *Sudara Williams*
194
73
 
195
- Placeholder I18n follows the same convention as `label` I18n.
196
74
 
197
- *Alex Robbin*
75
+ ## Rails 5.2.3 (March 27, 2019) ##
198
76
 
199
- * Fix that render layout: 'messages/layout' should also be added to the dependency tracker tree.
77
+ * Prevent non-primary mouse keys from triggering Rails UJS click handlers.
78
+ Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
79
+ 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.
200
80
 
201
- *DHH*
81
+ ```
82
+ <%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
83
+ ```
202
84
 
203
- * Add `PartialIteration` object used when rendering collections.
85
+ Fixes #34541
204
86
 
205
- The iteration object is available as the local variable
206
- `#{template_name}_iteration` when rendering partials with collections.
87
+ *Wolfgang Hobmaier*
207
88
 
208
- It gives access to the `size` of the collection being iterated over,
209
- the current `index` and two convenience methods `first?` and `last?`.
210
89
 
211
- *Joel Junström*, *Lucas Uyezu*
90
+ ## Rails 5.2.2.1 (March 11, 2019) ##
212
91
 
213
- * Return an absolute instead of relative path from an asset url in the case
214
- of the `asset_host` proc returning nil.
92
+ * Only accept formats from registered mime types
215
93
 
216
- *Jolyon Pawlyn*
94
+ A lack of filtering on mime types could allow an attacker to read
95
+ arbitrary files on the target server or to perform a denial of service
96
+ attack.
217
97
 
218
- * Fix `html_escape_once` to properly handle hex escape sequences (e.g. &#x1a2b;).
98
+ Fixes CVE-2019-5418
99
+ Fixes CVE-2019-5419
219
100
 
220
- *John F. Douthat*
101
+ *John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
221
102
 
222
- * Added String support for min and max properties for date field helpers.
223
103
 
224
- *Todd Bealmear*
104
+ ## Rails 5.2.2 (December 04, 2018) ##
225
105
 
226
- * The `highlight` helper now accepts a block to be used instead of the `highlighter`
227
- option.
106
+ * No changes.
228
107
 
229
- *Lucas Mazza*
230
108
 
231
- * The `except` and `highlight` helpers now accept regular expressions.
109
+ ## Rails 5.2.1.1 (November 27, 2018) ##
232
110
 
233
- *Jan Szumiec*
111
+ * No changes.
234
112
 
235
- * Flatten the array parameter in `safe_join`, so it behaves consistently with
236
- `Array#join`.
237
113
 
238
- *Paul Grayson*
114
+ ## Rails 5.2.1 (August 07, 2018) ##
239
115
 
240
- * Honor `html_safe` on array elements in tag values, as we do for plain string
241
- values.
116
+ * Fix leak of `skip_default_ids` and `allow_method_names_outside_object` options
117
+ to HTML attributes.
242
118
 
243
- *Paul Grayson*
119
+ *Yurii Cherniavskyi*
244
120
 
245
- * Add `ActionView::Template::Handler.unregister_template_handler`.
121
+ * Fix issue with `button_to`'s `to_form_params`
246
122
 
247
- It performs the opposite of `ActionView::Template::Handler.register_template_handler`.
123
+ `button_to` was throwing exception when invoked with `params` hash that
124
+ contains symbol and string keys. The reason for the exception was that
125
+ `to_form_params` was comparing the given symbol and string keys.
248
126
 
249
- *Zuhao Wan*
127
+ The issue is fixed by turning all keys to strings inside
128
+ `to_form_params` before comparing them.
250
129
 
251
- * Bring `cache_digest` rake tasks up-to-date with the latest API changes.
130
+ *Georgi Georgiev*
252
131
 
253
- *Jiri Pospisil*
132
+ * Fix JavaScript views rendering does not work with Firefox when using
133
+ Content Security Policy.
254
134
 
255
- * Allow custom `:host` option to be passed to `asset_url` helper that
256
- overwrites `config.action_controller.asset_host` for particular asset.
135
+ Fixes #32577.
257
136
 
258
- *Hubert Łępicki*
137
+ *Yuji Yaginuma*
259
138
 
260
- * Deprecate `AbstractController::Base.parent_prefixes`.
261
- Override `AbstractController::Base.local_prefixes` when you want to change
262
- where to find views.
139
+ * Add the `nonce: true` option for `javascript_include_tag` helper to
140
+ support automatic nonce generation for Content Security Policy.
141
+ Works the same way as `javascript_tag nonce: true` does.
263
142
 
264
- *Nick Sutterer*
143
+ *Yaroslav Markin*
265
144
 
266
- * Take label values into account when doing I18n lookups for model attributes.
267
145
 
268
- The following:
146
+ ## Rails 5.2.0 (April 09, 2018) ##
269
147
 
270
- # form.html.erb
271
- <%= form_for @post do |f| %>
272
- <%= f.label :type, value: "long" %>
273
- <% end %>
148
+ * Pass the `:skip_pipeline` option in `image_submit_tag` when calling `path_to_image`.
274
149
 
275
- # en.yml
276
- en:
277
- activerecord:
278
- attributes:
279
- post/long: "Long-form Post"
150
+ Fixes #32248.
280
151
 
281
- Used to simply return "long", but now it will return "Long-form
282
- Post".
152
+ *Andrew White*
283
153
 
284
- *Joshua Cody*
154
+ * Allow the use of callable objects as group methods for grouped selects.
285
155
 
286
- * Change `asset_path` to use File.join to create proper paths:
156
+ Until now, the `option_groups_from_collection_for_select` method was only able to
157
+ handle method names as `group_method` and `group_label_method` parameters,
158
+ it is now able to receive procs and other callable objects too.
287
159
 
288
- Before:
160
+ *Jérémie Bonal*
289
161
 
290
- https://some.host.com//assets/some.js
162
+ * Add `preload_link_tag` helper.
291
163
 
292
- After:
164
+ This helper that allows to the browser to initiate early fetch of resources
165
+ (different to the specified in `javascript_include_tag` and `stylesheet_link_tag`).
166
+ Additionally, this sends Early Hints if supported by browser.
293
167
 
294
- https://some.host.com/assets/some.js
168
+ *Guillermo Iguaran*
295
169
 
296
- *Peter Schröder*
170
+ * Change `form_with` to generates ids by default.
297
171
 
298
- * Change `favicon_link_tag` default mimetype from `image/vnd.microsoft.icon` to
299
- `image/x-icon`.
172
+ When `form_with` was introduced we disabled the automatic generation of ids
173
+ that was enabled in `form_for`. This usually is not an good idea since labels don't work
174
+ when the input doesn't have an id and it made harder to test with Capybara.
300
175
 
301
- Before:
176
+ You can still disable the automatic generation of ids setting `config.action_view.form_with_generates_ids`
177
+ to `false.`
302
178
 
303
- # => favicon_link_tag 'myicon.ico'
304
- <link href="/assets/myicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
179
+ *Nick Pezza*
305
180
 
306
- After:
181
+ * Fix issues with `field_error_proc` wrapping `optgroup` and select divider `option`.
307
182
 
308
- # => favicon_link_tag 'myicon.ico'
309
- <link href="/assets/myicon.ico" rel="shortcut icon" type="image/x-icon" />
183
+ Fixes #31088
310
184
 
311
- *Geoffroy Lorieux*
185
+ *Matthias Neumayr*
312
186
 
313
- * Remove wrapping div with inline styles for hidden form fields.
187
+ * Remove deprecated Erubis ERB handler.
314
188
 
315
- We are dropping HTML 4.01 and XHTML strict compliance since input tags directly
316
- inside a form are valid HTML5, and the absence of inline styles help in validating
317
- for Content Security Policy.
189
+ *Rafael Mendonça França*
318
190
 
319
- *Joost Baaij*
191
+ * Remove default `alt` text generation.
320
192
 
321
- * `collection_check_boxes` respects `:index` option for the hidden field name.
193
+ Fixes #30096
322
194
 
323
- Fixes #14147.
195
+ *Cameron Cundiff*
324
196
 
325
- *Vasiliy Ermolovich*
197
+ * Add `srcset` option to `image_tag` helper.
326
198
 
327
- * `date_select` helper with option `with_css_classes: true` does not overwrite other classes.
199
+ *Roberto Miranda*
328
200
 
329
- *Izumi Wong-Horiuchi*
201
+ * Fix issues with scopes and engine on `current_page?` method.
330
202
 
331
- * `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
332
- as input.
203
+ Fixes #29401.
333
204
 
334
- Fixes #14405.
205
+ *Nikita Savrov*
335
206
 
336
- *Yves Senn*
207
+ * Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
337
208
 
338
- * Add `include_hidden` option to `collection_check_boxes` helper.
209
+ This makes sure that the labels are linked up with the fields.
339
210
 
340
- *Vasiliy Ermolovich*
211
+ Fixes #29014.
341
212
 
342
- * Fixed a problem where the default options for the `button_tag` helper are not
343
- applied correctly.
213
+ *Yuji Yaginuma*
344
214
 
345
- Fixes #14254.
215
+ * Add `:json` type to `auto_discovery_link_tag` to support [JSON Feeds](https://jsonfeed.org/version/1).
346
216
 
347
- *Sergey Prikhodko*
217
+ *Mike Gunderloy*
348
218
 
349
- * Take variants into account when calculating template digests in ActionView::Digestor.
219
+ * Update `distance_of_time_in_words` helper to display better error messages
220
+ for bad input.
350
221
 
351
- The arguments to ActionView::Digestor#digest are now being passed as a hash
352
- to support variants and allow more flexibility in the future. The support for
353
- regular (required) arguments is deprecated and will be removed in Rails 5.0 or later.
222
+ *Jay Hayes*
354
223
 
355
- *Piotr Chmolowski, Łukasz Strzałkowski*
356
224
 
357
- Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/actionview/CHANGELOG.md) for previous changes.
225
+ Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actionview/CHANGELOG.md) for previous changes.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2004-2014 David Heinemeier Hansson
1
+ Copyright (c) 2004-2018 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
@@ -9,18 +9,18 @@ used to inline short Ruby snippets inside HTML), and XML Builder.
9
9
 
10
10
  The latest version of Action View can be installed with RubyGems:
11
11
 
12
- % [sudo] gem install actionview
12
+ $ gem install actionview
13
13
 
14
- Source code can be downloaded as part of the Rails project on GitHub
14
+ Source code can be downloaded as part of the Rails project on GitHub:
15
15
 
16
- * https://github.com/rails/rails/tree/4-2-stable/actionview
16
+ * https://github.com/rails/rails/tree/5-2-stable/actionview
17
17
 
18
18
 
19
19
  == License
20
20
 
21
21
  Action View is released under the MIT license:
22
22
 
23
- * http://www.opensource.org/licenses/MIT
23
+ * https://opensource.org/licenses/MIT
24
24
 
25
25
 
26
26
  == Support
@@ -29,11 +29,10 @@ API documentation is at
29
29
 
30
30
  * http://api.rubyonrails.org
31
31
 
32
- Bug reports can be filed for the Ruby on Rails project here:
32
+ Bug reports for the Ruby on Rails project can be filed here:
33
33
 
34
34
  * https://github.com/rails/rails/issues
35
35
 
36
36
  Feature requests should be discussed on the rails-core mailing list here:
37
37
 
38
38
  * https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core
39
-