actionpack 4.2.5.2 → 4.2.6.rc1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d67ef5f0216f1e7ba490dff008a6a5fb9e01ce9f
|
4
|
+
data.tar.gz: 9ecc0b48650bb37c6a6c71a06331d5da595e8fd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bb3509523b4f2d47b7ef96da662cdf16956a1e5c221adb48e35a1f7748ff16b8340880cba4e37dc4a66b27641b777131ff2effd0466115658b67fbedbf907a2
|
7
|
+
data.tar.gz: 9ea9d82637ec3cddd6ce7a9eeb634338e12973d404418d9fa4095500bcac3ab97492b80c1a8a387bfcfb229f7d4b8b1a4b11c3bf4ad0e8d24026bd667eb1319e
|
data/CHANGELOG.md
CHANGED
@@ -22,7 +22,7 @@ module ActionDispatch
|
|
22
22
|
|
23
23
|
def match?(path)
|
24
24
|
path = URI.parser.unescape(path)
|
25
|
-
return false unless path
|
25
|
+
return false unless valid_path?(path)
|
26
26
|
|
27
27
|
paths = [path, "#{path}#{ext}", "#{path}/index#{ext}"].map { |v|
|
28
28
|
Rack::Utils.clean_path_info v
|
@@ -86,6 +86,10 @@ module ActionDispatch
|
|
86
86
|
false
|
87
87
|
end
|
88
88
|
end
|
89
|
+
|
90
|
+
def valid_path?(path)
|
91
|
+
path.valid_encoding? && !path.include?("\0")
|
92
|
+
end
|
89
93
|
end
|
90
94
|
|
91
95
|
# This middleware will attempt to return the contents of a file's body from
|
@@ -469,9 +469,11 @@ module ActionDispatch
|
|
469
469
|
return if MountedHelpers.method_defined?(name)
|
470
470
|
|
471
471
|
routes = self
|
472
|
+
helpers = routes.url_helpers
|
473
|
+
|
472
474
|
MountedHelpers.class_eval do
|
473
475
|
define_method "_#{name}" do
|
474
|
-
RoutesProxy.new(routes, _routes_context)
|
476
|
+
RoutesProxy.new(routes, _routes_context, helpers)
|
475
477
|
end
|
476
478
|
end
|
477
479
|
|
@@ -8,8 +8,9 @@ module ActionDispatch
|
|
8
8
|
attr_accessor :scope, :routes
|
9
9
|
alias :_routes :routes
|
10
10
|
|
11
|
-
def initialize(routes, scope)
|
11
|
+
def initialize(routes, scope, helpers)
|
12
12
|
@routes, @scope = routes, scope
|
13
|
+
@helpers = helpers
|
13
14
|
end
|
14
15
|
|
15
16
|
def url_options
|
@@ -19,16 +20,16 @@ module ActionDispatch
|
|
19
20
|
end
|
20
21
|
|
21
22
|
def respond_to?(method, include_private = false)
|
22
|
-
super ||
|
23
|
+
super || @helpers.respond_to?(method)
|
23
24
|
end
|
24
25
|
|
25
26
|
def method_missing(method, *args)
|
26
|
-
if
|
27
|
+
if @helpers.respond_to?(method)
|
27
28
|
self.class.class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
28
29
|
def #{method}(*args)
|
29
30
|
options = args.extract_options!
|
30
31
|
args << url_options.merge((options || {}).symbolize_keys)
|
31
|
-
|
32
|
+
@helpers.#{method}(*args)
|
32
33
|
end
|
33
34
|
RUBY
|
34
35
|
send(method, *args)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.6.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2.
|
19
|
+
version: 4.2.6.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.2.
|
26
|
+
version: 4.2.6.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,28 +98,28 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - '='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 4.2.
|
101
|
+
version: 4.2.6.rc1
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - '='
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 4.2.
|
108
|
+
version: 4.2.6.rc1
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: activemodel
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - '='
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 4.2.
|
115
|
+
version: 4.2.6.rc1
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - '='
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 4.2.
|
122
|
+
version: 4.2.6.rc1
|
123
123
|
description: Web apps on Rails. Simple, battle-tested conventions for building and
|
124
124
|
testing MVC web applications. Works with any Rack-compatible server.
|
125
125
|
email: david@loudthinking.com
|
@@ -294,9 +294,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: 1.9.3
|
295
295
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
296
|
requirements:
|
297
|
-
- - "
|
297
|
+
- - ">"
|
298
298
|
- !ruby/object:Gem::Version
|
299
|
-
version:
|
299
|
+
version: 1.3.1
|
300
300
|
requirements:
|
301
301
|
- none
|
302
302
|
rubyforge_project:
|