actionpack 3.2.22.2 → 3.2.22.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/lib/action_pack/version.rb +1 -1
- data/lib/action_view/helpers/tag_helper.rb +11 -4
- metadata +44 -68
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6e810f4d669a8211d81e97639dc30d2d6499173c
|
4
|
+
data.tar.gz: 897c10c9d1f6151a8dd1597bb89c07f20e1aeb4a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 53700c848b5565c4c32579806dcc8181e599283c97cc79e5983dbeb61f8f051d99431335a496e632e076da759df965fed5936c5d6702c13d9688217293a92587
|
7
|
+
data.tar.gz: c4840368674b43569c597f64945478beed72545358fd3de50c894e84ba5165142ffdd51ec1c5e95abd85104ffd68042c4005540420cdd8e52ce9b0f250f77aae
|
data/lib/action_pack/version.rb
CHANGED
@@ -141,20 +141,27 @@ module ActionView
|
|
141
141
|
unless v.is_a?(String) || v.is_a?(Symbol) || v.is_a?(BigDecimal)
|
142
142
|
v = v.to_json
|
143
143
|
end
|
144
|
-
|
145
|
-
attrs << %(data-#{k.to_s.dasherize}="#{v}")
|
144
|
+
attrs << tag_option("data-#{k.to_s.dasherize}", v, escape)
|
146
145
|
end
|
147
146
|
elsif BOOLEAN_ATTRIBUTES.include?(key)
|
148
147
|
attrs << %(#{key}="#{key}") if value
|
149
148
|
elsif !value.nil?
|
150
149
|
final_value = value.is_a?(Array) ? value.join(" ") : value
|
151
|
-
|
152
|
-
attrs << %(#{key}="#{final_value}")
|
150
|
+
attrs << tag_option(key, value, escape)
|
153
151
|
end
|
154
152
|
end
|
155
153
|
" #{attrs.sort * ' '}".html_safe unless attrs.empty?
|
156
154
|
end
|
157
155
|
end
|
156
|
+
|
157
|
+
def tag_option(key, value, escape)
|
158
|
+
if value.is_a?(Array)
|
159
|
+
value = escape ? safe_join(value, " ") : value.join(" ")
|
160
|
+
else
|
161
|
+
value = escape ? ERB::Util.html_escape(value) : value
|
162
|
+
end
|
163
|
+
%(#{key}="#{value.gsub(/"/, '"'.freeze)}")
|
164
|
+
end
|
158
165
|
end
|
159
166
|
end
|
160
167
|
end
|
metadata
CHANGED
@@ -1,174 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.22.
|
5
|
-
prerelease:
|
4
|
+
version: 3.2.22.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Heinemeier Hansson
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2016-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.22.
|
19
|
+
version: 3.2.22.3
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2.22.
|
26
|
+
version: 3.2.22.3
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: activemodel
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 3.2.22.
|
33
|
+
version: 3.2.22.3
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 3.2.22.
|
40
|
+
version: 3.2.22.3
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rack-cache
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '1.2'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '1.2'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: builder
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- - ~>
|
59
|
+
- - "~>"
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: 3.0.0
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- - ~>
|
66
|
+
- - "~>"
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: 3.0.0
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rack
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- - ~>
|
73
|
+
- - "~>"
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: 1.4.5
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- - ~>
|
80
|
+
- - "~>"
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: 1.4.5
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: rack-test
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- - ~>
|
87
|
+
- - "~>"
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: 0.6.1
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- - ~>
|
94
|
+
- - "~>"
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: 0.6.1
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: journey
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- - ~>
|
101
|
+
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: 1.0.4
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- - ~>
|
108
|
+
- - "~>"
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: 1.0.4
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: sprockets
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
|
-
- - ~>
|
115
|
+
- - "~>"
|
132
116
|
- !ruby/object:Gem::Version
|
133
117
|
version: 2.2.1
|
134
118
|
type: :runtime
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
|
-
- - ~>
|
122
|
+
- - "~>"
|
140
123
|
- !ruby/object:Gem::Version
|
141
124
|
version: 2.2.1
|
142
125
|
- !ruby/object:Gem::Dependency
|
143
126
|
name: erubis
|
144
127
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
128
|
requirements:
|
147
|
-
- - ~>
|
129
|
+
- - "~>"
|
148
130
|
- !ruby/object:Gem::Version
|
149
131
|
version: 2.7.0
|
150
132
|
type: :runtime
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
135
|
requirements:
|
155
|
-
- - ~>
|
136
|
+
- - "~>"
|
156
137
|
- !ruby/object:Gem::Version
|
157
138
|
version: 2.7.0
|
158
139
|
- !ruby/object:Gem::Dependency
|
159
140
|
name: tzinfo
|
160
141
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
142
|
requirements:
|
163
|
-
- - ~>
|
143
|
+
- - "~>"
|
164
144
|
- !ruby/object:Gem::Version
|
165
145
|
version: 0.3.29
|
166
146
|
type: :development
|
167
147
|
prerelease: false
|
168
148
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
149
|
requirements:
|
171
|
-
- - ~>
|
150
|
+
- - "~>"
|
172
151
|
- !ruby/object:Gem::Version
|
173
152
|
version: 0.3.29
|
174
153
|
description: Web apps on Rails. Simple, battle-tested conventions for building and
|
@@ -179,8 +158,9 @@ extensions: []
|
|
179
158
|
extra_rdoc_files: []
|
180
159
|
files:
|
181
160
|
- CHANGELOG.md
|
182
|
-
- README.rdoc
|
183
161
|
- MIT-LICENSE
|
162
|
+
- README.rdoc
|
163
|
+
- lib/abstract_controller.rb
|
184
164
|
- lib/abstract_controller/asset_paths.rb
|
185
165
|
- lib/abstract_controller/base.rb
|
186
166
|
- lib/abstract_controller/callbacks.rb
|
@@ -193,17 +173,18 @@ files:
|
|
193
173
|
- lib/abstract_controller/translation.rb
|
194
174
|
- lib/abstract_controller/url_for.rb
|
195
175
|
- lib/abstract_controller/view_paths.rb
|
196
|
-
- lib/
|
176
|
+
- lib/action_controller.rb
|
197
177
|
- lib/action_controller/base.rb
|
178
|
+
- lib/action_controller/caching.rb
|
198
179
|
- lib/action_controller/caching/actions.rb
|
199
180
|
- lib/action_controller/caching/fragments.rb
|
200
181
|
- lib/action_controller/caching/pages.rb
|
201
182
|
- lib/action_controller/caching/sweeping.rb
|
202
|
-
- lib/action_controller/
|
183
|
+
- lib/action_controller/deprecated.rb
|
203
184
|
- lib/action_controller/deprecated/integration_test.rb
|
204
185
|
- lib/action_controller/deprecated/performance_test.rb
|
205
|
-
- lib/action_controller/deprecated.rb
|
206
186
|
- lib/action_controller/log_subscriber.rb
|
187
|
+
- lib/action_controller/metal.rb
|
207
188
|
- lib/action_controller/metal/compatibility.rb
|
208
189
|
- lib/action_controller/metal/conditional_get.rb
|
209
190
|
- lib/action_controller/metal/cookies.rb
|
@@ -230,20 +211,19 @@ files:
|
|
230
211
|
- lib/action_controller/metal/streaming.rb
|
231
212
|
- lib/action_controller/metal/testing.rb
|
232
213
|
- lib/action_controller/metal/url_for.rb
|
233
|
-
- lib/action_controller/metal.rb
|
234
214
|
- lib/action_controller/middleware.rb
|
235
215
|
- lib/action_controller/railtie.rb
|
236
216
|
- lib/action_controller/railties/paths.rb
|
237
217
|
- lib/action_controller/record_identifier.rb
|
238
218
|
- lib/action_controller/test_case.rb
|
219
|
+
- lib/action_controller/vendor/html-scanner.rb
|
239
220
|
- lib/action_controller/vendor/html-scanner/html/document.rb
|
240
221
|
- lib/action_controller/vendor/html-scanner/html/node.rb
|
241
222
|
- lib/action_controller/vendor/html-scanner/html/sanitizer.rb
|
242
223
|
- lib/action_controller/vendor/html-scanner/html/selector.rb
|
243
224
|
- lib/action_controller/vendor/html-scanner/html/tokenizer.rb
|
244
225
|
- lib/action_controller/vendor/html-scanner/html/version.rb
|
245
|
-
- lib/
|
246
|
-
- lib/action_controller.rb
|
226
|
+
- lib/action_dispatch.rb
|
247
227
|
- lib/action_dispatch/http/cache.rb
|
248
228
|
- lib/action_dispatch/http/filter_parameters.rb
|
249
229
|
- lib/action_dispatch/http/headers.rb
|
@@ -287,32 +267,33 @@ files:
|
|
287
267
|
- lib/action_dispatch/middleware/templates/rescues/template_error.erb
|
288
268
|
- lib/action_dispatch/middleware/templates/rescues/unknown_action.erb
|
289
269
|
- lib/action_dispatch/railtie.rb
|
270
|
+
- lib/action_dispatch/routing.rb
|
290
271
|
- lib/action_dispatch/routing/mapper.rb
|
291
272
|
- lib/action_dispatch/routing/polymorphic_routes.rb
|
292
273
|
- lib/action_dispatch/routing/redirection.rb
|
293
274
|
- lib/action_dispatch/routing/route_set.rb
|
294
275
|
- lib/action_dispatch/routing/routes_proxy.rb
|
295
276
|
- lib/action_dispatch/routing/url_for.rb
|
296
|
-
- lib/action_dispatch/
|
277
|
+
- lib/action_dispatch/testing/assertions.rb
|
297
278
|
- lib/action_dispatch/testing/assertions/dom.rb
|
298
279
|
- lib/action_dispatch/testing/assertions/response.rb
|
299
280
|
- lib/action_dispatch/testing/assertions/routing.rb
|
300
281
|
- lib/action_dispatch/testing/assertions/selector.rb
|
301
282
|
- lib/action_dispatch/testing/assertions/tag.rb
|
302
|
-
- lib/action_dispatch/testing/assertions.rb
|
303
283
|
- lib/action_dispatch/testing/integration.rb
|
304
284
|
- lib/action_dispatch/testing/performance_test.rb
|
305
285
|
- lib/action_dispatch/testing/test_process.rb
|
306
286
|
- lib/action_dispatch/testing/test_request.rb
|
307
287
|
- lib/action_dispatch/testing/test_response.rb
|
308
|
-
- lib/action_dispatch.rb
|
309
|
-
- lib/action_pack/version.rb
|
310
288
|
- lib/action_pack.rb
|
289
|
+
- lib/action_pack/version.rb
|
290
|
+
- lib/action_view.rb
|
311
291
|
- lib/action_view/asset_paths.rb
|
312
292
|
- lib/action_view/base.rb
|
313
293
|
- lib/action_view/buffers.rb
|
314
294
|
- lib/action_view/context.rb
|
315
295
|
- lib/action_view/flows.rb
|
296
|
+
- lib/action_view/helpers.rb
|
316
297
|
- lib/action_view/helpers/active_model_helper.rb
|
317
298
|
- lib/action_view/helpers/asset_paths.rb
|
318
299
|
- lib/action_view/helpers/asset_tag_helper.rb
|
@@ -340,7 +321,6 @@ files:
|
|
340
321
|
- lib/action_view/helpers/text_helper.rb
|
341
322
|
- lib/action_view/helpers/translation_helper.rb
|
342
323
|
- lib/action_view/helpers/url_helper.rb
|
343
|
-
- lib/action_view/helpers.rb
|
344
324
|
- lib/action_view/locale/en.yml
|
345
325
|
- lib/action_view/log_subscriber.rb
|
346
326
|
- lib/action_view/lookup_context.rb
|
@@ -351,51 +331,47 @@ files:
|
|
351
331
|
- lib/action_view/renderer/renderer.rb
|
352
332
|
- lib/action_view/renderer/streaming_template_renderer.rb
|
353
333
|
- lib/action_view/renderer/template_renderer.rb
|
334
|
+
- lib/action_view/template.rb
|
354
335
|
- lib/action_view/template/error.rb
|
336
|
+
- lib/action_view/template/handlers.rb
|
355
337
|
- lib/action_view/template/handlers/builder.rb
|
356
338
|
- lib/action_view/template/handlers/erb.rb
|
357
|
-
- lib/action_view/template/handlers.rb
|
358
339
|
- lib/action_view/template/resolver.rb
|
359
340
|
- lib/action_view/template/text.rb
|
360
|
-
- lib/action_view/template.rb
|
361
341
|
- lib/action_view/test_case.rb
|
362
342
|
- lib/action_view/testing/resolvers.rb
|
363
|
-
- lib/action_view.rb
|
364
343
|
- lib/sprockets/assets.rake
|
365
344
|
- lib/sprockets/bootstrap.rb
|
366
345
|
- lib/sprockets/compressors.rb
|
346
|
+
- lib/sprockets/helpers.rb
|
367
347
|
- lib/sprockets/helpers/isolated_helper.rb
|
368
348
|
- lib/sprockets/helpers/rails_helper.rb
|
369
|
-
- lib/sprockets/helpers.rb
|
370
349
|
- lib/sprockets/railtie.rb
|
371
350
|
- lib/sprockets/static_compiler.rb
|
372
351
|
homepage: http://www.rubyonrails.org
|
373
352
|
licenses:
|
374
353
|
- MIT
|
354
|
+
metadata: {}
|
375
355
|
post_install_message:
|
376
356
|
rdoc_options: []
|
377
357
|
require_paths:
|
378
358
|
- lib
|
379
359
|
required_ruby_version: !ruby/object:Gem::Requirement
|
380
|
-
none: false
|
381
360
|
requirements:
|
382
|
-
- -
|
361
|
+
- - ">="
|
383
362
|
- !ruby/object:Gem::Version
|
384
363
|
version: 1.8.7
|
385
364
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
386
|
-
none: false
|
387
365
|
requirements:
|
388
|
-
- -
|
366
|
+
- - ">="
|
389
367
|
- !ruby/object:Gem::Version
|
390
368
|
version: '0'
|
391
|
-
segments:
|
392
|
-
- 0
|
393
|
-
hash: 1698012621721626715
|
394
369
|
requirements:
|
395
370
|
- none
|
396
371
|
rubyforge_project:
|
397
|
-
rubygems_version:
|
372
|
+
rubygems_version: 2.6.6
|
398
373
|
signing_key:
|
399
|
-
specification_version:
|
374
|
+
specification_version: 4
|
400
375
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|
401
376
|
test_files: []
|
377
|
+
has_rdoc:
|