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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +87 -224
- data/MIT-LICENSE +1 -1
- data/README.rdoc +4 -4
- data/lib/action_view.rb +4 -3
- data/lib/action_view/base.rb +8 -10
- data/lib/action_view/buffers.rb +2 -0
- data/lib/action_view/context.rb +2 -2
- data/lib/action_view/dependency_tracker.rb +2 -0
- data/lib/action_view/digestor.rb +7 -7
- data/lib/action_view/flows.rb +2 -0
- data/lib/action_view/gem_version.rb +5 -3
- data/lib/action_view/helpers.rb +4 -0
- data/lib/action_view/helpers/active_model_helper.rb +9 -3
- data/lib/action_view/helpers/asset_tag_helper.rb +180 -34
- data/lib/action_view/helpers/asset_url_helper.rb +19 -17
- data/lib/action_view/helpers/atom_feed_helper.rb +3 -1
- data/lib/action_view/helpers/cache_helper.rb +24 -14
- data/lib/action_view/helpers/capture_helper.rb +9 -7
- data/lib/action_view/helpers/controller_helper.rb +3 -1
- data/lib/action_view/helpers/csp_helper.rb +24 -0
- data/lib/action_view/helpers/csrf_helper.rb +4 -2
- data/lib/action_view/helpers/date_helper.rb +7 -5
- data/lib/action_view/helpers/debug_helper.rb +4 -2
- data/lib/action_view/helpers/form_helper.rb +53 -70
- data/lib/action_view/helpers/form_options_helper.rb +23 -17
- data/lib/action_view/helpers/form_tag_helper.rb +23 -11
- data/lib/action_view/helpers/javascript_helper.rb +20 -5
- data/lib/action_view/helpers/number_helper.rb +2 -0
- data/lib/action_view/helpers/output_safety_helper.rb +2 -0
- data/lib/action_view/helpers/record_tag_helper.rb +3 -1
- data/lib/action_view/helpers/rendering_helper.rb +3 -1
- data/lib/action_view/helpers/sanitize_helper.rb +3 -1
- data/lib/action_view/helpers/tag_helper.rb +2 -2
- data/lib/action_view/helpers/tags.rb +3 -1
- data/lib/action_view/helpers/tags/base.rb +12 -10
- data/lib/action_view/helpers/tags/check_box.rb +3 -1
- data/lib/action_view/helpers/tags/checkable.rb +4 -2
- data/lib/action_view/helpers/tags/collection_check_boxes.rb +2 -0
- data/lib/action_view/helpers/tags/collection_helpers.rb +2 -0
- data/lib/action_view/helpers/tags/collection_radio_buttons.rb +2 -0
- data/lib/action_view/helpers/tags/collection_select.rb +3 -1
- data/lib/action_view/helpers/tags/color_field.rb +3 -1
- data/lib/action_view/helpers/tags/date_field.rb +2 -0
- data/lib/action_view/helpers/tags/date_select.rb +3 -1
- data/lib/action_view/helpers/tags/datetime_field.rb +3 -1
- data/lib/action_view/helpers/tags/datetime_local_field.rb +2 -0
- data/lib/action_view/helpers/tags/datetime_select.rb +2 -0
- data/lib/action_view/helpers/tags/email_field.rb +2 -0
- data/lib/action_view/helpers/tags/file_field.rb +2 -0
- data/lib/action_view/helpers/tags/grouped_collection_select.rb +3 -1
- data/lib/action_view/helpers/tags/hidden_field.rb +2 -0
- data/lib/action_view/helpers/tags/label.rb +2 -4
- data/lib/action_view/helpers/tags/month_field.rb +2 -0
- data/lib/action_view/helpers/tags/number_field.rb +2 -0
- data/lib/action_view/helpers/tags/password_field.rb +2 -0
- data/lib/action_view/helpers/tags/placeholderable.rb +2 -0
- data/lib/action_view/helpers/tags/radio_button.rb +3 -1
- data/lib/action_view/helpers/tags/range_field.rb +2 -0
- data/lib/action_view/helpers/tags/search_field.rb +2 -0
- data/lib/action_view/helpers/tags/select.rb +4 -2
- data/lib/action_view/helpers/tags/tel_field.rb +2 -0
- data/lib/action_view/helpers/tags/text_area.rb +3 -1
- data/lib/action_view/helpers/tags/text_field.rb +3 -1
- data/lib/action_view/helpers/tags/time_field.rb +2 -0
- data/lib/action_view/helpers/tags/time_select.rb +2 -0
- data/lib/action_view/helpers/tags/time_zone_select.rb +3 -1
- data/lib/action_view/helpers/tags/translator.rb +2 -0
- data/lib/action_view/helpers/tags/url_field.rb +2 -0
- data/lib/action_view/helpers/tags/week_field.rb +2 -0
- data/lib/action_view/helpers/text_helper.rb +9 -7
- data/lib/action_view/helpers/translation_helper.rb +5 -4
- data/lib/action_view/helpers/url_helper.rb +28 -4
- data/lib/action_view/layouts.rb +7 -5
- data/lib/action_view/log_subscriber.rb +5 -3
- data/lib/action_view/lookup_context.rb +4 -4
- data/lib/action_view/model_naming.rb +2 -0
- data/lib/action_view/path_set.rb +2 -0
- data/lib/action_view/railtie.rb +11 -2
- data/lib/action_view/record_identifier.rb +2 -0
- data/lib/action_view/renderer/abstract_renderer.rb +2 -0
- data/lib/action_view/renderer/partial_renderer.rb +13 -11
- data/lib/action_view/renderer/partial_renderer/collection_caching.rb +4 -2
- data/lib/action_view/renderer/renderer.rb +2 -0
- data/lib/action_view/renderer/streaming_template_renderer.rb +5 -1
- data/lib/action_view/renderer/template_renderer.rb +2 -0
- data/lib/action_view/rendering.rb +3 -5
- data/lib/action_view/routing_url_for.rb +2 -0
- data/lib/action_view/tasks/cache_digests.rake +2 -0
- data/lib/action_view/template.rb +6 -4
- data/lib/action_view/template/error.rb +2 -3
- data/lib/action_view/template/handlers.rb +3 -1
- data/lib/action_view/template/handlers/builder.rb +3 -4
- data/lib/action_view/template/handlers/erb.rb +5 -9
- data/lib/action_view/template/handlers/erb/erubi.rb +2 -0
- data/lib/action_view/template/handlers/html.rb +2 -0
- data/lib/action_view/template/handlers/raw.rb +2 -0
- data/lib/action_view/template/html.rb +3 -1
- data/lib/action_view/template/resolver.rb +7 -6
- data/lib/action_view/template/text.rb +3 -1
- data/lib/action_view/template/types.rb +3 -1
- data/lib/action_view/test_case.rb +21 -5
- data/lib/action_view/testing/resolvers.rb +3 -1
- data/lib/action_view/version.rb +2 -0
- data/lib/action_view/view_paths.rb +3 -3
- data/lib/assets/compiled/rails-ujs.js +52 -15
- metadata +12 -13
- data/lib/action_view/template/handlers/erb/deprecated_erubis.rb +0 -9
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 970fa5ee0784974b9e80c2704b8176f662061e74cb3130c239a17ceaf27039b2
|
4
|
+
data.tar.gz: 5e578501d9ec2274c1169fca0971b5fbb5aa7ac61a26feaa4583c7301ebdc4dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 711725496a5ac1db4cfd2dc2755b16d765db5a43a5c6876cacd36bf3ccc4e851ca5b8281729b5f4e3b958f1c692f5dd84fc065a78d49ab9df37abb5557bd7bb2
|
7
|
+
data.tar.gz: 2ca971038b23b0f5a82aff0912cd7ffd3f8f24033e14d23cbad00874f6ff216fd1b09768168464b207bc7a1192b782cc7cfc6a7bedb7fdfa032dbef368d7513f
|
data/CHANGELOG.md
CHANGED
@@ -1,306 +1,169 @@
|
|
1
|
-
## Rails 5.
|
1
|
+
## Rails 5.2.4.3 (May 18, 2020) ##
|
2
2
|
|
3
|
-
*
|
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
|
-
|
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.
|
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
|
-
|
16
|
+
*Sudara Williams*
|
25
17
|
|
26
|
-
* No changes.
|
27
18
|
|
19
|
+
## Rails 5.2.3 (March 27, 2019) ##
|
28
20
|
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
29
|
+
Fixes #34541
|
35
30
|
|
36
|
-
*
|
31
|
+
*Wolfgang Hobmaier*
|
37
32
|
|
38
33
|
|
39
|
-
## Rails 5.
|
34
|
+
## Rails 5.2.2.1 (March 11, 2019) ##
|
40
35
|
|
41
|
-
*
|
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
|
-
|
42
|
+
Fixes CVE-2019-5418
|
43
|
+
Fixes CVE-2019-5419
|
45
44
|
|
46
|
-
*
|
45
|
+
*John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
|
47
46
|
|
48
47
|
|
49
|
-
## Rails 5.
|
48
|
+
## Rails 5.2.2 (December 04, 2018) ##
|
50
49
|
|
51
50
|
* No changes.
|
52
51
|
|
53
52
|
|
54
|
-
## Rails 5.1.
|
53
|
+
## Rails 5.2.1.1 (November 27, 2018) ##
|
55
54
|
|
56
55
|
* No changes.
|
57
56
|
|
58
57
|
|
59
|
-
## Rails 5.1
|
58
|
+
## Rails 5.2.1 (August 07, 2018) ##
|
60
59
|
|
61
|
-
*
|
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
|
-
*
|
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
|
-
|
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
|
-
|
71
|
+
The issue is fixed by turning all keys to strings inside
|
72
|
+
`to_form_params` before comparing them.
|
94
73
|
|
95
|
-
|
96
|
-
`encode_special_chars` option.
|
74
|
+
*Georgi Georgiev*
|
97
75
|
|
98
|
-
|
76
|
+
* Fix JavaScript views rendering does not work with Firefox when using
|
77
|
+
Content Security Policy.
|
99
78
|
|
100
|
-
|
79
|
+
Fixes #32577.
|
101
80
|
|
102
|
-
*
|
81
|
+
*Yuji Yaginuma*
|
103
82
|
|
104
|
-
|
105
|
-
|
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
|
-
|
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
|
-
|
90
|
+
## Rails 5.2.0 (April 09, 2018) ##
|
115
91
|
|
116
|
-
*
|
92
|
+
* Pass the `:skip_pipeline` option in `image_submit_tag` when calling `path_to_image`.
|
117
93
|
|
118
|
-
Fixes #
|
94
|
+
Fixes #32248.
|
119
95
|
|
120
96
|
*Andrew White*
|
121
97
|
|
122
|
-
*
|
98
|
+
* Allow the use of callable objects as group methods for grouped selects.
|
123
99
|
|
124
|
-
|
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
|
-
*
|
104
|
+
*Jérémie Bonal*
|
127
105
|
|
128
|
-
|
106
|
+
* Add `preload_link_tag` helper.
|
129
107
|
|
130
|
-
|
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
|
-
*
|
133
|
-
to enable template recompilation.
|
112
|
+
*Guillermo Iguaran*
|
134
113
|
|
135
|
-
|
136
|
-
recompilation in tests.
|
114
|
+
* Change `form_with` to generates ids by default.
|
137
115
|
|
138
|
-
|
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
|
-
|
120
|
+
You can still disable the automatic generation of ids setting `config.action_view.form_with_generates_ids`
|
121
|
+
to `false.`
|
141
122
|
|
142
|
-
|
123
|
+
*Nick Pezza*
|
143
124
|
|
144
|
-
|
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
|
-
|
127
|
+
Fixes #31088
|
149
128
|
|
150
|
-
|
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
|
-
|
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
|
-
*
|
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
|
-
|
137
|
+
Fixes #30096
|
257
138
|
|
258
|
-
|
259
|
-
tag.br
|
260
|
-
tag.div tag.p("Hello world!"), class: "strong"
|
139
|
+
*Cameron Cundiff*
|
261
140
|
|
262
|
-
|
263
|
-
Hello world!
|
264
|
-
<% end %>
|
265
|
-
```
|
141
|
+
* Add `srcset` option to `image_tag` helper.
|
266
142
|
|
267
|
-
*
|
143
|
+
*Roberto Miranda*
|
268
144
|
|
269
|
-
*
|
145
|
+
* Fix issues with scopes and engine on `current_page?` method.
|
270
146
|
|
271
|
-
|
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
|
-
*
|
149
|
+
*Nikita Savrov*
|
276
150
|
|
277
|
-
*
|
278
|
-
HTML-safe strings.
|
151
|
+
* Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
|
279
152
|
|
280
|
-
|
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
|
-
|
155
|
+
Fixes #29014.
|
287
156
|
|
288
|
-
*
|
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
|
-
|
159
|
+
* Add `:json` type to `auto_discovery_link_tag` to support [JSON Feeds](https://jsonfeed.org/version/1).
|
293
160
|
|
294
|
-
|
295
|
-
<option value=""></option>
|
296
|
-
```
|
161
|
+
*Mike Gunderloy*
|
297
162
|
|
298
|
-
|
163
|
+
* Update `distance_of_time_in_words` helper to display better error messages
|
164
|
+
for bad input.
|
299
165
|
|
300
|
-
|
301
|
-
<option value="" label=" "></option>
|
302
|
-
```
|
166
|
+
*Jay Hayes*
|
303
167
|
|
304
|
-
*Vipul A M*
|
305
168
|
|
306
|
-
Please check [5-
|
169
|
+
Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actionview/CHANGELOG.md) for previous changes.
|
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -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/
|
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
|
-
*
|
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
|
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
|
|
data/lib/action_view.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#--
|
2
|
-
# Copyright (c) 2004-
|
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 <<
|
96
|
+
I18n.load_path << File.expand_path("action_view/locale/en.yml", __dir__)
|
96
97
|
end
|