actionpack 3.2.19 → 3.2.20

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.

@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4cb479f45ae3a51098b0d320b13c3f731c364205
4
+ data.tar.gz: f5d72deafc7e5b03ab0b1e298902edb4edaaf518
5
+ SHA512:
6
+ metadata.gz: 43d70c4f572a5047584209c6f3b927d10caddd55342606d04820961bf78871c2746f04946fa70a64c288709ad1b9d4aa9e01c8af85416f090663aedbc148cace
7
+ data.tar.gz: 61ffe18b143a17b1217e453146131640a47bf10f4f1aea1c983137b218edbbff0e458931fc4e483807b26b357e7fdb2df970df5fc5e95c428e8ee5c015df40bb
@@ -12,7 +12,7 @@ module ActionDispatch
12
12
  def match?(path)
13
13
  path = path.dup
14
14
 
15
- full_path = path.empty? ? @root : File.join(@root, escape_glob_chars(unescape_path(path)))
15
+ full_path = path.empty? ? @root : File.join(@root, escape_glob_chars(clean_path_info(unescape_path(path))))
16
16
  paths = "#{full_path}#{ext}"
17
17
 
18
18
  matches = Dir[paths]
@@ -42,6 +42,25 @@ module ActionDispatch
42
42
  path.force_encoding('binary') if path.respond_to? :force_encoding
43
43
  path.gsub(/[*?{}\[\]]/, "\\\\\\&")
44
44
  end
45
+
46
+ private
47
+
48
+ PATH_SEPS = Regexp.union(*[::File::SEPARATOR, ::File::ALT_SEPARATOR].compact)
49
+
50
+ def clean_path_info(path_info)
51
+ parts = path_info.split PATH_SEPS
52
+
53
+ clean = []
54
+
55
+ parts.each do |part|
56
+ next if part.empty? || part == '.'
57
+ part == '..' ? clean.pop : clean << part
58
+ end
59
+
60
+ clean.unshift '/' if parts.empty? || parts.first.empty?
61
+
62
+ ::File.join(*clean)
63
+ end
45
64
  end
46
65
 
47
66
  class Static
@@ -2,7 +2,7 @@ module ActionPack
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- TINY = 19
5
+ TINY = 20
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,194 +1,166 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: actionpack
3
- version: !ruby/object:Gem::Version
4
- hash: 41
5
- prerelease:
6
- segments:
7
- - 3
8
- - 2
9
- - 19
10
- version: 3.2.19
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.2.20
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - David Heinemeier Hansson
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2014-07-02 00:00:00 -03:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - "="
26
- - !ruby/object:Gem::Version
27
- hash: 41
28
- segments:
29
- - 3
30
- - 2
31
- - 19
32
- version: 3.2.19
33
- type: :runtime
34
- version_requirements: *id001
35
- prerelease: false
11
+ date: 2014-10-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
36
14
  name: activesupport
37
- - !ruby/object:Gem::Dependency
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - "="
42
- - !ruby/object:Gem::Version
43
- hash: 41
44
- segments:
45
- - 3
46
- - 2
47
- - 19
48
- version: 3.2.19
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.20
49
20
  type: :runtime
50
- version_requirements: *id002
51
21
  prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.20
27
+ - !ruby/object:Gem::Dependency
52
28
  name: activemodel
53
- - !ruby/object:Gem::Dependency
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 11
60
- segments:
61
- - 1
62
- - 2
63
- version: "1.2"
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 3.2.20
64
34
  type: :runtime
65
- version_requirements: *id003
66
35
  prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 3.2.20
41
+ - !ruby/object:Gem::Dependency
67
42
  name: rack-cache
68
- - !ruby/object:Gem::Dependency
69
- requirement: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 7
75
- segments:
76
- - 3
77
- - 0
78
- - 0
79
- version: 3.0.0
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.2'
80
48
  type: :runtime
81
- version_requirements: *id004
82
49
  prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.2'
55
+ - !ruby/object:Gem::Dependency
83
56
  name: builder
84
- - !ruby/object:Gem::Dependency
85
- requirement: &id005 !ruby/object:Gem::Requirement
86
- none: false
87
- requirements:
88
- - - ~>
89
- - !ruby/object:Gem::Version
90
- hash: 13
91
- segments:
92
- - 1
93
- - 4
94
- - 5
95
- version: 1.4.5
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.0.0
96
62
  type: :runtime
97
- version_requirements: *id005
98
63
  prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.0.0
69
+ - !ruby/object:Gem::Dependency
99
70
  name: rack
100
- - !ruby/object:Gem::Dependency
101
- requirement: &id006 !ruby/object:Gem::Requirement
102
- none: false
103
- requirements:
104
- - - ~>
105
- - !ruby/object:Gem::Version
106
- hash: 5
107
- segments:
108
- - 0
109
- - 6
110
- - 1
111
- version: 0.6.1
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.4.5
112
76
  type: :runtime
113
- version_requirements: *id006
114
77
  prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.4.5
83
+ - !ruby/object:Gem::Dependency
115
84
  name: rack-test
116
- - !ruby/object:Gem::Dependency
117
- requirement: &id007 !ruby/object:Gem::Requirement
118
- none: false
119
- requirements:
120
- - - ~>
121
- - !ruby/object:Gem::Version
122
- hash: 31
123
- segments:
124
- - 1
125
- - 0
126
- - 4
127
- version: 1.0.4
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.6.1
128
90
  type: :runtime
129
- version_requirements: *id007
130
91
  prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.6.1
97
+ - !ruby/object:Gem::Dependency
131
98
  name: journey
132
- - !ruby/object:Gem::Dependency
133
- requirement: &id008 !ruby/object:Gem::Requirement
134
- none: false
135
- requirements:
136
- - - ~>
137
- - !ruby/object:Gem::Version
138
- hash: 5
139
- segments:
140
- - 2
141
- - 2
142
- - 1
143
- version: 2.2.1
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.0.4
144
104
  type: :runtime
145
- version_requirements: *id008
146
105
  prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.0.4
111
+ - !ruby/object:Gem::Dependency
147
112
  name: sprockets
148
- - !ruby/object:Gem::Dependency
149
- requirement: &id009 !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
152
- - - ~>
153
- - !ruby/object:Gem::Version
154
- hash: 19
155
- segments:
156
- - 2
157
- - 7
158
- - 0
159
- version: 2.7.0
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.2.1
160
118
  type: :runtime
161
- version_requirements: *id009
162
119
  prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.2.1
125
+ - !ruby/object:Gem::Dependency
163
126
  name: erubis
164
- - !ruby/object:Gem::Dependency
165
- requirement: &id010 !ruby/object:Gem::Requirement
166
- none: false
167
- requirements:
168
- - - ~>
169
- - !ruby/object:Gem::Version
170
- hash: 41
171
- segments:
172
- - 0
173
- - 3
174
- - 29
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 2.7.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 2.7.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: tzinfo
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
175
145
  version: 0.3.29
176
146
  type: :development
177
- version_requirements: *id010
178
147
  prerelease: false
179
- name: tzinfo
180
- description: Web apps on Rails. Simple, battle-tested conventions for building and testing MVC web applications. Works with any Rack-compatible server.
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.3.29
153
+ description: Web apps on Rails. Simple, battle-tested conventions for building and
154
+ testing MVC web applications. Works with any Rack-compatible server.
181
155
  email: david@loudthinking.com
182
156
  executables: []
183
-
184
157
  extensions: []
185
-
186
158
  extra_rdoc_files: []
187
-
188
- files:
159
+ files:
189
160
  - CHANGELOG.md
190
- - README.rdoc
191
161
  - MIT-LICENSE
162
+ - README.rdoc
163
+ - lib/abstract_controller.rb
192
164
  - lib/abstract_controller/asset_paths.rb
193
165
  - lib/abstract_controller/base.rb
194
166
  - lib/abstract_controller/callbacks.rb
@@ -201,17 +173,18 @@ files:
201
173
  - lib/abstract_controller/translation.rb
202
174
  - lib/abstract_controller/url_for.rb
203
175
  - lib/abstract_controller/view_paths.rb
204
- - lib/abstract_controller.rb
176
+ - lib/action_controller.rb
205
177
  - lib/action_controller/base.rb
178
+ - lib/action_controller/caching.rb
206
179
  - lib/action_controller/caching/actions.rb
207
180
  - lib/action_controller/caching/fragments.rb
208
181
  - lib/action_controller/caching/pages.rb
209
182
  - lib/action_controller/caching/sweeping.rb
210
- - lib/action_controller/caching.rb
183
+ - lib/action_controller/deprecated.rb
211
184
  - lib/action_controller/deprecated/integration_test.rb
212
185
  - lib/action_controller/deprecated/performance_test.rb
213
- - lib/action_controller/deprecated.rb
214
186
  - lib/action_controller/log_subscriber.rb
187
+ - lib/action_controller/metal.rb
215
188
  - lib/action_controller/metal/compatibility.rb
216
189
  - lib/action_controller/metal/conditional_get.rb
217
190
  - lib/action_controller/metal/cookies.rb
@@ -238,20 +211,19 @@ files:
238
211
  - lib/action_controller/metal/streaming.rb
239
212
  - lib/action_controller/metal/testing.rb
240
213
  - lib/action_controller/metal/url_for.rb
241
- - lib/action_controller/metal.rb
242
214
  - lib/action_controller/middleware.rb
243
215
  - lib/action_controller/railtie.rb
244
216
  - lib/action_controller/railties/paths.rb
245
217
  - lib/action_controller/record_identifier.rb
246
218
  - lib/action_controller/test_case.rb
219
+ - lib/action_controller/vendor/html-scanner.rb
247
220
  - lib/action_controller/vendor/html-scanner/html/document.rb
248
221
  - lib/action_controller/vendor/html-scanner/html/node.rb
249
222
  - lib/action_controller/vendor/html-scanner/html/sanitizer.rb
250
223
  - lib/action_controller/vendor/html-scanner/html/selector.rb
251
224
  - lib/action_controller/vendor/html-scanner/html/tokenizer.rb
252
225
  - lib/action_controller/vendor/html-scanner/html/version.rb
253
- - lib/action_controller/vendor/html-scanner.rb
254
- - lib/action_controller.rb
226
+ - lib/action_dispatch.rb
255
227
  - lib/action_dispatch/http/cache.rb
256
228
  - lib/action_dispatch/http/filter_parameters.rb
257
229
  - lib/action_dispatch/http/headers.rb
@@ -295,32 +267,33 @@ files:
295
267
  - lib/action_dispatch/middleware/templates/rescues/template_error.erb
296
268
  - lib/action_dispatch/middleware/templates/rescues/unknown_action.erb
297
269
  - lib/action_dispatch/railtie.rb
270
+ - lib/action_dispatch/routing.rb
298
271
  - lib/action_dispatch/routing/mapper.rb
299
272
  - lib/action_dispatch/routing/polymorphic_routes.rb
300
273
  - lib/action_dispatch/routing/redirection.rb
301
274
  - lib/action_dispatch/routing/route_set.rb
302
275
  - lib/action_dispatch/routing/routes_proxy.rb
303
276
  - lib/action_dispatch/routing/url_for.rb
304
- - lib/action_dispatch/routing.rb
277
+ - lib/action_dispatch/testing/assertions.rb
305
278
  - lib/action_dispatch/testing/assertions/dom.rb
306
279
  - lib/action_dispatch/testing/assertions/response.rb
307
280
  - lib/action_dispatch/testing/assertions/routing.rb
308
281
  - lib/action_dispatch/testing/assertions/selector.rb
309
282
  - lib/action_dispatch/testing/assertions/tag.rb
310
- - lib/action_dispatch/testing/assertions.rb
311
283
  - lib/action_dispatch/testing/integration.rb
312
284
  - lib/action_dispatch/testing/performance_test.rb
313
285
  - lib/action_dispatch/testing/test_process.rb
314
286
  - lib/action_dispatch/testing/test_request.rb
315
287
  - lib/action_dispatch/testing/test_response.rb
316
- - lib/action_dispatch.rb
317
- - lib/action_pack/version.rb
318
288
  - lib/action_pack.rb
289
+ - lib/action_pack/version.rb
290
+ - lib/action_view.rb
319
291
  - lib/action_view/asset_paths.rb
320
292
  - lib/action_view/base.rb
321
293
  - lib/action_view/buffers.rb
322
294
  - lib/action_view/context.rb
323
295
  - lib/action_view/flows.rb
296
+ - lib/action_view/helpers.rb
324
297
  - lib/action_view/helpers/active_model_helper.rb
325
298
  - lib/action_view/helpers/asset_paths.rb
326
299
  - lib/action_view/helpers/asset_tag_helper.rb
@@ -348,7 +321,6 @@ files:
348
321
  - lib/action_view/helpers/text_helper.rb
349
322
  - lib/action_view/helpers/translation_helper.rb
350
323
  - lib/action_view/helpers/url_helper.rb
351
- - lib/action_view/helpers.rb
352
324
  - lib/action_view/locale/en.yml
353
325
  - lib/action_view/log_subscriber.rb
354
326
  - lib/action_view/lookup_context.rb
@@ -359,59 +331,46 @@ files:
359
331
  - lib/action_view/renderer/renderer.rb
360
332
  - lib/action_view/renderer/streaming_template_renderer.rb
361
333
  - lib/action_view/renderer/template_renderer.rb
334
+ - lib/action_view/template.rb
362
335
  - lib/action_view/template/error.rb
336
+ - lib/action_view/template/handlers.rb
363
337
  - lib/action_view/template/handlers/builder.rb
364
338
  - lib/action_view/template/handlers/erb.rb
365
- - lib/action_view/template/handlers.rb
366
339
  - lib/action_view/template/resolver.rb
367
340
  - lib/action_view/template/text.rb
368
- - lib/action_view/template.rb
369
341
  - lib/action_view/test_case.rb
370
342
  - lib/action_view/testing/resolvers.rb
371
- - lib/action_view.rb
372
343
  - lib/sprockets/assets.rake
373
344
  - lib/sprockets/bootstrap.rb
374
345
  - lib/sprockets/compressors.rb
346
+ - lib/sprockets/helpers.rb
375
347
  - lib/sprockets/helpers/isolated_helper.rb
376
348
  - lib/sprockets/helpers/rails_helper.rb
377
- - lib/sprockets/helpers.rb
378
349
  - lib/sprockets/railtie.rb
379
350
  - lib/sprockets/static_compiler.rb
380
- has_rdoc: true
381
351
  homepage: http://www.rubyonrails.org
382
- licenses:
352
+ licenses:
383
353
  - MIT
354
+ metadata: {}
384
355
  post_install_message:
385
356
  rdoc_options: []
386
-
387
- require_paths:
357
+ require_paths:
388
358
  - lib
389
- required_ruby_version: !ruby/object:Gem::Requirement
390
- none: false
391
- requirements:
359
+ required_ruby_version: !ruby/object:Gem::Requirement
360
+ requirements:
392
361
  - - ">="
393
- - !ruby/object:Gem::Version
394
- hash: 57
395
- segments:
396
- - 1
397
- - 8
398
- - 7
362
+ - !ruby/object:Gem::Version
399
363
  version: 1.8.7
400
- required_rubygems_version: !ruby/object:Gem::Requirement
401
- none: false
402
- requirements:
364
+ required_rubygems_version: !ruby/object:Gem::Requirement
365
+ requirements:
403
366
  - - ">="
404
- - !ruby/object:Gem::Version
405
- hash: 3
406
- segments:
407
- - 0
408
- version: "0"
409
- requirements:
367
+ - !ruby/object:Gem::Version
368
+ version: '0'
369
+ requirements:
410
370
  - none
411
371
  rubyforge_project:
412
- rubygems_version: 1.6.2
372
+ rubygems_version: 2.2.2
413
373
  signing_key:
414
- specification_version: 3
374
+ specification_version: 4
415
375
  summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
416
376
  test_files: []
417
-