actionview 5.1.7 → 5.2.4.3

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 (109) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +87 -224
  3. data/MIT-LICENSE +1 -1
  4. data/README.rdoc +4 -4
  5. data/lib/action_view.rb +4 -3
  6. data/lib/action_view/base.rb +8 -10
  7. data/lib/action_view/buffers.rb +2 -0
  8. data/lib/action_view/context.rb +2 -2
  9. data/lib/action_view/dependency_tracker.rb +2 -0
  10. data/lib/action_view/digestor.rb +7 -7
  11. data/lib/action_view/flows.rb +2 -0
  12. data/lib/action_view/gem_version.rb +5 -3
  13. data/lib/action_view/helpers.rb +4 -0
  14. data/lib/action_view/helpers/active_model_helper.rb +9 -3
  15. data/lib/action_view/helpers/asset_tag_helper.rb +180 -34
  16. data/lib/action_view/helpers/asset_url_helper.rb +19 -17
  17. data/lib/action_view/helpers/atom_feed_helper.rb +3 -1
  18. data/lib/action_view/helpers/cache_helper.rb +24 -14
  19. data/lib/action_view/helpers/capture_helper.rb +9 -7
  20. data/lib/action_view/helpers/controller_helper.rb +3 -1
  21. data/lib/action_view/helpers/csp_helper.rb +24 -0
  22. data/lib/action_view/helpers/csrf_helper.rb +4 -2
  23. data/lib/action_view/helpers/date_helper.rb +7 -5
  24. data/lib/action_view/helpers/debug_helper.rb +4 -2
  25. data/lib/action_view/helpers/form_helper.rb +53 -70
  26. data/lib/action_view/helpers/form_options_helper.rb +23 -17
  27. data/lib/action_view/helpers/form_tag_helper.rb +23 -11
  28. data/lib/action_view/helpers/javascript_helper.rb +20 -5
  29. data/lib/action_view/helpers/number_helper.rb +2 -0
  30. data/lib/action_view/helpers/output_safety_helper.rb +2 -0
  31. data/lib/action_view/helpers/record_tag_helper.rb +3 -1
  32. data/lib/action_view/helpers/rendering_helper.rb +3 -1
  33. data/lib/action_view/helpers/sanitize_helper.rb +3 -1
  34. data/lib/action_view/helpers/tag_helper.rb +2 -2
  35. data/lib/action_view/helpers/tags.rb +3 -1
  36. data/lib/action_view/helpers/tags/base.rb +12 -10
  37. data/lib/action_view/helpers/tags/check_box.rb +3 -1
  38. data/lib/action_view/helpers/tags/checkable.rb +4 -2
  39. data/lib/action_view/helpers/tags/collection_check_boxes.rb +2 -0
  40. data/lib/action_view/helpers/tags/collection_helpers.rb +2 -0
  41. data/lib/action_view/helpers/tags/collection_radio_buttons.rb +2 -0
  42. data/lib/action_view/helpers/tags/collection_select.rb +3 -1
  43. data/lib/action_view/helpers/tags/color_field.rb +3 -1
  44. data/lib/action_view/helpers/tags/date_field.rb +2 -0
  45. data/lib/action_view/helpers/tags/date_select.rb +3 -1
  46. data/lib/action_view/helpers/tags/datetime_field.rb +3 -1
  47. data/lib/action_view/helpers/tags/datetime_local_field.rb +2 -0
  48. data/lib/action_view/helpers/tags/datetime_select.rb +2 -0
  49. data/lib/action_view/helpers/tags/email_field.rb +2 -0
  50. data/lib/action_view/helpers/tags/file_field.rb +2 -0
  51. data/lib/action_view/helpers/tags/grouped_collection_select.rb +3 -1
  52. data/lib/action_view/helpers/tags/hidden_field.rb +2 -0
  53. data/lib/action_view/helpers/tags/label.rb +2 -4
  54. data/lib/action_view/helpers/tags/month_field.rb +2 -0
  55. data/lib/action_view/helpers/tags/number_field.rb +2 -0
  56. data/lib/action_view/helpers/tags/password_field.rb +2 -0
  57. data/lib/action_view/helpers/tags/placeholderable.rb +2 -0
  58. data/lib/action_view/helpers/tags/radio_button.rb +3 -1
  59. data/lib/action_view/helpers/tags/range_field.rb +2 -0
  60. data/lib/action_view/helpers/tags/search_field.rb +2 -0
  61. data/lib/action_view/helpers/tags/select.rb +4 -2
  62. data/lib/action_view/helpers/tags/tel_field.rb +2 -0
  63. data/lib/action_view/helpers/tags/text_area.rb +3 -1
  64. data/lib/action_view/helpers/tags/text_field.rb +3 -1
  65. data/lib/action_view/helpers/tags/time_field.rb +2 -0
  66. data/lib/action_view/helpers/tags/time_select.rb +2 -0
  67. data/lib/action_view/helpers/tags/time_zone_select.rb +3 -1
  68. data/lib/action_view/helpers/tags/translator.rb +2 -0
  69. data/lib/action_view/helpers/tags/url_field.rb +2 -0
  70. data/lib/action_view/helpers/tags/week_field.rb +2 -0
  71. data/lib/action_view/helpers/text_helper.rb +9 -7
  72. data/lib/action_view/helpers/translation_helper.rb +5 -4
  73. data/lib/action_view/helpers/url_helper.rb +28 -4
  74. data/lib/action_view/layouts.rb +7 -5
  75. data/lib/action_view/log_subscriber.rb +5 -3
  76. data/lib/action_view/lookup_context.rb +4 -4
  77. data/lib/action_view/model_naming.rb +2 -0
  78. data/lib/action_view/path_set.rb +2 -0
  79. data/lib/action_view/railtie.rb +11 -2
  80. data/lib/action_view/record_identifier.rb +2 -0
  81. data/lib/action_view/renderer/abstract_renderer.rb +2 -0
  82. data/lib/action_view/renderer/partial_renderer.rb +13 -11
  83. data/lib/action_view/renderer/partial_renderer/collection_caching.rb +4 -2
  84. data/lib/action_view/renderer/renderer.rb +2 -0
  85. data/lib/action_view/renderer/streaming_template_renderer.rb +5 -1
  86. data/lib/action_view/renderer/template_renderer.rb +2 -0
  87. data/lib/action_view/rendering.rb +3 -5
  88. data/lib/action_view/routing_url_for.rb +2 -0
  89. data/lib/action_view/tasks/cache_digests.rake +2 -0
  90. data/lib/action_view/template.rb +6 -4
  91. data/lib/action_view/template/error.rb +2 -3
  92. data/lib/action_view/template/handlers.rb +3 -1
  93. data/lib/action_view/template/handlers/builder.rb +3 -4
  94. data/lib/action_view/template/handlers/erb.rb +5 -9
  95. data/lib/action_view/template/handlers/erb/erubi.rb +2 -0
  96. data/lib/action_view/template/handlers/html.rb +2 -0
  97. data/lib/action_view/template/handlers/raw.rb +2 -0
  98. data/lib/action_view/template/html.rb +3 -1
  99. data/lib/action_view/template/resolver.rb +7 -6
  100. data/lib/action_view/template/text.rb +3 -1
  101. data/lib/action_view/template/types.rb +3 -1
  102. data/lib/action_view/test_case.rb +21 -5
  103. data/lib/action_view/testing/resolvers.rb +3 -1
  104. data/lib/action_view/version.rb +2 -0
  105. data/lib/action_view/view_paths.rb +3 -3
  106. data/lib/assets/compiled/rails-ujs.js +52 -15
  107. metadata +12 -13
  108. data/lib/action_view/template/handlers/erb/deprecated_erubis.rb +0 -9
  109. data/lib/action_view/template/handlers/erb/erubis.rb +0 -81
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 653bc5c6f534a3b66e9bc0517e1dae96591c0afc046eb4af21c2bfde0aa5436d
4
- data.tar.gz: 3f6ac20820ff6a4d61dcf499bff23acf931f3a6ea65822720f63e0e522f1b77d
3
+ metadata.gz: 970fa5ee0784974b9e80c2704b8176f662061e74cb3130c239a17ceaf27039b2
4
+ data.tar.gz: 5e578501d9ec2274c1169fca0971b5fbb5aa7ac61a26feaa4583c7301ebdc4dc
5
5
  SHA512:
6
- metadata.gz: c21cc5b6ec4a492a753325d9c732c9c8900ef7e07134bc259becbd040df51afd0ff3bb27141bcd9ac87c02537eae789161e7e5241f4bfadd230a29aabc3a36fa
7
- data.tar.gz: dcd3864b5a9216b19021272876564be5170b6d3e6af094a0a744517d01d89c58629156e6b4a87ebf593e37ae2478eb6687e9e923fe675d22d740e555ea91e64e
6
+ metadata.gz: 711725496a5ac1db4cfd2dc2755b16d765db5a43a5c6876cacd36bf3ccc4e851ca5b8281729b5f4e3b958f1c692f5dd84fc065a78d49ab9df37abb5557bd7bb2
7
+ data.tar.gz: 2ca971038b23b0f5a82aff0912cd7ffd3f8f24033e14d23cbad00874f6ff216fd1b09768168464b207bc7a1192b782cc7cfc6a7bedb7fdfa032dbef368d7513f
@@ -1,306 +1,169 @@
1
- ## Rails 5.1.7 (March 27, 2019) ##
1
+ ## Rails 5.2.4.3 (May 18, 2020) ##
2
2
 
3
- * Fix issue with `button_to`'s `to_form_params`
3
+ * [CVE-2020-8167] Check that request is same-origin prior to including CSRF token in XHRs
4
4
 
5
- `button_to` was throwing exception when invoked with `params` hash that
6
- contains symbol and string keys. The reason for the exception was that
7
- `to_form_params` was comparing the given symbol and string keys.
8
5
 
9
- The issue is fixed by turning all keys to strings inside
10
- `to_form_params` before comparing them.
11
-
12
- *Georgi Georgiev*
13
-
14
- ## Rails 5.1.6.2 (March 11, 2019) ##
6
+ ## Rails 5.2.4.1 (December 18, 2019) ##
15
7
 
16
8
  * No changes.
17
9
 
18
10
 
19
- ## Rails 5.1.6.1 (November 27, 2018) ##
20
-
21
- * No changes.
11
+ ## Rails 5.2.4 (November 27, 2019) ##
22
12
 
13
+ * Allow programmatic click events to trigger Rails UJS click handlers.
14
+ 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.
23
15
 
24
- ## Rails 5.1.6 (March 29, 2018) ##
16
+ *Sudara Williams*
25
17
 
26
- * No changes.
27
18
 
19
+ ## Rails 5.2.3 (March 27, 2019) ##
28
20
 
29
- ## Rails 5.1.5 (February 14, 2018) ##
30
-
31
- * No changes.
21
+ * Prevent non-primary mouse keys from triggering Rails UJS click handlers.
22
+ Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
23
+ 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.
32
24
 
25
+ ```
26
+ <%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
27
+ ```
33
28
 
34
- ## Rails 5.1.4 (September 07, 2017) ##
29
+ Fixes #34541
35
30
 
36
- * No changes.
31
+ *Wolfgang Hobmaier*
37
32
 
38
33
 
39
- ## Rails 5.1.4.rc1 (August 24, 2017) ##
34
+ ## Rails 5.2.2.1 (March 11, 2019) ##
40
35
 
41
- * No changes.
36
+ * Only accept formats from registered mime types
42
37
 
38
+ A lack of filtering on mime types could allow an attacker to read
39
+ arbitrary files on the target server or to perform a denial of service
40
+ attack.
43
41
 
44
- ## Rails 5.1.3 (August 03, 2017) ##
42
+ Fixes CVE-2019-5418
43
+ Fixes CVE-2019-5419
45
44
 
46
- * No changes.
45
+ *John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
47
46
 
48
47
 
49
- ## Rails 5.1.3.rc3 (July 31, 2017) ##
48
+ ## Rails 5.2.2 (December 04, 2018) ##
50
49
 
51
50
  * No changes.
52
51
 
53
52
 
54
- ## Rails 5.1.3.rc2 (July 25, 2017) ##
53
+ ## Rails 5.2.1.1 (November 27, 2018) ##
55
54
 
56
55
  * No changes.
57
56
 
58
57
 
59
- ## Rails 5.1.3.rc1 (July 19, 2017) ##
58
+ ## Rails 5.2.1 (August 07, 2018) ##
60
59
 
61
- * No changes.
62
-
63
-
64
- ## Rails 5.1.2 (June 26, 2017) ##
60
+ * Fix leak of `skip_default_ids` and `allow_method_names_outside_object` options
61
+ to HTML attributes.
65
62
 
66
- * Fix issues with scopes and engine on `current_page?` method.
67
-
68
- Fixes #29401.
69
-
70
- *Nikita Savrov*
71
-
72
- * Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
73
-
74
- This makes sure that the labels are linked up with the fields.
75
-
76
- Fixes #29014.
77
-
78
- *Yuji Yaginuma*
79
-
80
- * Update distance_of_time_in_words helper to display better error messages
81
- for bad input.
82
-
83
- *Jay Hayes*
84
-
85
-
86
- ## Rails 5.1.1 (May 12, 2017) ##
87
-
88
- * No changes.
63
+ *Yurii Cherniavskyi*
89
64
 
65
+ * Fix issue with `button_to`'s `to_form_params`
90
66
 
91
- ## Rails 5.1.0 (April 27, 2017) ##
67
+ `button_to` was throwing exception when invoked with `params` hash that
68
+ contains symbol and string keys. The reason for the exception was that
69
+ `to_form_params` was comparing the given symbol and string keys.
92
70
 
93
- * Remove the option `encode_special_chars` misnomer from `strip_tags`
71
+ The issue is fixed by turning all keys to strings inside
72
+ `to_form_params` before comparing them.
94
73
 
95
- As of rails-html-sanitizer v1.0.3, the sanitizer will ignore the
96
- `encode_special_chars` option.
74
+ *Georgi Georgiev*
97
75
 
98
- Fixes #28060.
76
+ * Fix JavaScript views rendering does not work with Firefox when using
77
+ Content Security Policy.
99
78
 
100
- *Andrew Hood*
79
+ Fixes #32577.
101
80
 
102
- * Change the ERB handler from Erubis to Erubi.
81
+ *Yuji Yaginuma*
103
82
 
104
- Erubi is an Erubis fork that's svelte, simple, and currently maintained.
105
- Plus it supports `--enable-frozen-string-literal` in Ruby 2.3+.
83
+ * Add the `nonce: true` option for `javascript_include_tag` helper to
84
+ support automatic nonce generation for Content Security Policy.
85
+ Works the same way as `javascript_tag nonce: true` does.
106
86
 
107
- Compatibility: Drops support for `<%===` tags for debug output.
108
- These were an unused, undocumented side effect of the Erubis
109
- implementation.
87
+ *Yaroslav Markin*
110
88
 
111
- Deprecation: The Erubis handler will be removed in Rails 5.2, for the
112
- handful of folks using it directly.
113
89
 
114
- *Jeremy Evans*
90
+ ## Rails 5.2.0 (April 09, 2018) ##
115
91
 
116
- * Allow render locals to be assigned to instance variables in a view.
92
+ * Pass the `:skip_pipeline` option in `image_submit_tag` when calling `path_to_image`.
117
93
 
118
- Fixes #27480.
94
+ Fixes #32248.
119
95
 
120
96
  *Andrew White*
121
97
 
122
- * Add `check_parameters` option to `current_page?` which makes it more strict.
98
+ * Allow the use of callable objects as group methods for grouped selects.
123
99
 
124
- *Maksym Pugach*
100
+ Until now, the `option_groups_from_collection_for_select` method was only able to
101
+ handle method names as `group_method` and `group_label_method` parameters,
102
+ it is now able to receive procs and other callable objects too.
125
103
 
126
- * Return correct object name in form helper method after `fields_for`.
104
+ *Jérémie Bonal*
127
105
 
128
- Fixes #26931.
106
+ * Add `preload_link_tag` helper.
129
107
 
130
- *Yuji Yaginuma*
108
+ This helper that allows to the browser to initiate early fetch of resources
109
+ (different to the specified in `javascript_include_tag` and `stylesheet_link_tag`).
110
+ Additionally, this sends Early Hints if supported by browser.
131
111
 
132
- * Use `ActionView::Resolver.caching?` (`config.action_view.cache_template_loading`)
133
- to enable template recompilation.
112
+ *Guillermo Iguaran*
134
113
 
135
- Before it was enabled by `consider_all_requests_local`, which caused
136
- recompilation in tests.
114
+ * Change `form_with` to generates ids by default.
137
115
 
138
- *Max Melentiev*
116
+ When `form_with` was introduced we disabled the automatic generation of ids
117
+ that was enabled in `form_for`. This usually is not an good idea since labels don't work
118
+ when the input doesn't have an id and it made harder to test with Capybara.
139
119
 
140
- * Add `form_with` to unify `form_tag` and `form_for` usage.
120
+ You can still disable the automatic generation of ids setting `config.action_view.form_with_generates_ids`
121
+ to `false.`
141
122
 
142
- Used like `form_tag` (where just the open tag is output):
123
+ *Nick Pezza*
143
124
 
144
- ```erb
145
- <%= form_with scope: :post, url: super_special_posts_path %>
146
- ```
125
+ * Fix issues with `field_error_proc` wrapping `optgroup` and select divider `option`.
147
126
 
148
- Used like `form_for`:
127
+ Fixes #31088
149
128
 
150
- ```erb
151
- <%= form_with model: @post do |form| %>
152
- <%= form.text_field :title %>
153
- <% end %>
154
- ```
155
-
156
- *Kasper Timm Hansen*, *Marek Kirejczyk*
157
-
158
- * Add `fields` form helper method.
159
-
160
- ```erb
161
- <%= fields :comment, model: @comment do |fields| %>
162
- <%= fields.text_field :title %>
163
- <% end %>
164
- ```
165
-
166
- Can also be used within form helpers such as `form_with`.
129
+ *Matthias Neumayr*
167
130
 
168
- *Kasper Timm Hansen*
169
-
170
- * Removed deprecated `#original_exception` in `ActionView::Template::Error`.
131
+ * Remove deprecated Erubis ERB handler.
171
132
 
172
133
  *Rafael Mendonça França*
173
134
 
174
- * Render now accepts any keys for locals, including reserved keywords.
175
-
176
- Only locals with valid variable names get set directly. Others
177
- will still be available in `local_assigns`.
178
-
179
- Example of render with reserved keywords:
180
-
181
- ```erb
182
- <%= render "example", class: "text-center", message: "Hello world!" %>
183
-
184
- <!-- _example.html.erb: -->
185
- <%= tag.div class: local_assigns[:class] do %>
186
- <p><%= message %></p>
187
- <% end %>
188
- ```
189
-
190
- *Peter Schilling*, *Matthew Draper*
191
-
192
- * Add `:skip_pipeline` option to several asset tag helpers
193
-
194
- `javascript_include_tag`, `stylesheet_link_tag`, `favicon_link_tag`,
195
- `image_tag` and `audio_tag` now accept a `:skip_pipeline` option which can
196
- be set to true to bypass the asset pipeline and serve the assets from the
197
- public folder.
198
-
199
- *Richard Schneeman*
200
-
201
- * Add `:poster_skip_pipeline` option to the `video_tag` helper
202
-
203
- `video_tag` now accepts a `:poster_skip_pipeline` option which can be used
204
- in combination with the `:poster` option to bypass the asset pipeline and
205
- serve the poster image for the video from the public folder.
206
-
207
- *Richard Schneeman*
208
-
209
- * Show cache hits and misses when rendering partials.
210
-
211
- Partials using the `cache` helper will show whether a render hit or missed
212
- the cache:
213
-
214
- ```
215
- Rendered messages/_message.html.erb in 1.2 ms [cache hit]
216
- Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
217
- ```
218
-
219
- This removes the need for the old fragment cache logging:
220
-
221
- ```
222
- Read fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/d0bdf2974e1ef6d31685c3b392ad0b74 (0.6ms)
223
- Rendered messages/_message.html.erb in 1.2 ms [cache hit]
224
- Write fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/3b4e249ac9d168c617e32e84b99218b5 (1.1ms)
225
- Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
226
- ```
227
-
228
- Though that full output can be reenabled with
229
- `config.action_controller.enable_fragment_cache_logging = true`.
230
-
231
- *Stan Lo*
232
-
233
- * Changed partial rendering with a collection to allow collections which
234
- implement `to_a`.
235
-
236
- Extracting the collection option had an optimization to avoid unnecessary
237
- queries of ActiveRecord Relations by calling `#to_ary` on the given
238
- collection. Instances of `Enumerator` or `Enumerable` are valid
239
- collections, but they do not implement `#to_ary`. By changing this to
240
- `#to_a`, they will now be extracted and rendered as expected.
241
-
242
- *Steven Harman*
243
-
244
- * New syntax for tag helpers. Avoid positional parameters and support HTML5 by default.
245
- Example usage of tag helpers before:
246
-
247
- ```ruby
248
- tag(:br, nil, true)
249
- content_tag(:div, content_tag(:p, "Hello world!"), class: "strong")
250
-
251
- <%= content_tag :div, class: "strong" do -%>
252
- Hello world!
253
- <% end -%>
254
- ```
135
+ * Remove default `alt` text generation.
255
136
 
256
- Example usage of tag helpers after:
137
+ Fixes #30096
257
138
 
258
- ```ruby
259
- tag.br
260
- tag.div tag.p("Hello world!"), class: "strong"
139
+ *Cameron Cundiff*
261
140
 
262
- <%= tag.div class: "strong" do %>
263
- Hello world!
264
- <% end %>
265
- ```
141
+ * Add `srcset` option to `image_tag` helper.
266
142
 
267
- *Marek Kirejczyk*, *Kasper Timm Hansen*
143
+ *Roberto Miranda*
268
144
 
269
- * Change `datetime_field` and `datetime_field_tag` to generate `datetime-local` fields.
145
+ * Fix issues with scopes and engine on `current_page?` method.
270
146
 
271
- As a new specification of the HTML 5 the text field type `datetime` will no longer exist
272
- and it is recommended to use `datetime-local`.
273
- Ref: https://html.spec.whatwg.org/multipage/forms.html#local-date-and-time-state-(type=datetime-local)
147
+ Fixes #29401.
274
148
 
275
- *Herminio Torres*
149
+ *Nikita Savrov*
276
150
 
277
- * Raw template handler (which is also the default template handler in Rails 5) now outputs
278
- HTML-safe strings.
151
+ * Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
279
152
 
280
- In Rails 5 the default template handler was changed to the raw template handler. Because
281
- the ERB template handler escaped strings by default this broke some applications that
282
- expected plain JS or HTML files to be rendered unescaped. This fixes the issue caused
283
- by changing the default handler by changing the Raw template handler to output HTML-safe
284
- strings.
153
+ This makes sure that the labels are linked up with the fields.
285
154
 
286
- *Eileen M. Uchitelle*
155
+ Fixes #29014.
287
156
 
288
- * `select_tag`'s `include_blank` option for generation for blank option tag, now adds an empty space label,
289
- when the value as well as content for option tag are empty, so that we conform with html specification.
290
- Ref: https://www.w3.org/TR/html5/forms.html#the-option-element.
157
+ *Yuji Yaginuma*
291
158
 
292
- Generation of option before:
159
+ * Add `:json` type to `auto_discovery_link_tag` to support [JSON Feeds](https://jsonfeed.org/version/1).
293
160
 
294
- ```html
295
- <option value=""></option>
296
- ```
161
+ *Mike Gunderloy*
297
162
 
298
- Generation of option after:
163
+ * Update `distance_of_time_in_words` helper to display better error messages
164
+ for bad input.
299
165
 
300
- ```html
301
- <option value="" label=" "></option>
302
- ```
166
+ *Jay Hayes*
303
167
 
304
- *Vipul A M*
305
168
 
306
- Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/actionview/CHANGELOG.md) for previous changes.
169
+ Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actionview/CHANGELOG.md) for previous changes.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2004-2017 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
@@ -11,16 +11,16 @@ The latest version of Action View can be installed with RubyGems:
11
11
 
12
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/master/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,7 +29,7 @@ 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
 
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  #--
2
- # Copyright (c) 2004-2017 David Heinemeier Hansson
4
+ # Copyright (c) 2004-2018 David Heinemeier Hansson
3
5
  #
4
6
  # Permission is hereby granted, free of charge, to any person obtaining
5
7
  # a copy of this software and associated documentation files (the
@@ -74,7 +76,6 @@ module ActionView
74
76
  autoload :MissingTemplate
75
77
  autoload :ActionViewError
76
78
  autoload :EncodingError
77
- autoload :MissingRequestError
78
79
  autoload :TemplateError
79
80
  autoload :WrongEncodingError
80
81
  end
@@ -92,5 +93,5 @@ end
92
93
  require "active_support/core_ext/string/output_safety"
93
94
 
94
95
  ActiveSupport.on_load(:i18n) do
95
- I18n.load_path << "#{File.dirname(__FILE__)}/action_view/locale/en.yml"
96
+ I18n.load_path << File.expand_path("action_view/locale/en.yml", __dir__)
96
97
  end