actionpack 4.0.0.rc2 → 4.0.0
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: 6f4ecbcfd3111cc54096fa65af027af557e6b7e3
|
4
|
+
data.tar.gz: dfdfd55057a638b0c95f434b70ec14864c444f15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69dbb3d11bbc52495acb69ac846abad0f6263b17c2284837860d56cd2a22a18ee785d9e1f1e3c3fc4bf8a39eb7d9a982168d3bb42392629af75f9c80bcf64f68
|
7
|
+
data.tar.gz: cf4e149fe77d767835201792e56a7744f9ee83dba081b1f807082d4991aba60caf3f54d1f676b10e3dd82cb91438a979aa1499d041af53116f29268b0be47f35
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,38 @@
|
|
1
|
-
## Rails 4.0.0
|
1
|
+
## Rails 4.0.0 (June 25, 2013) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Merge `:action` from routing scope and assign endpoint if both `:controller`
|
4
|
+
and `:action` are present. The endpoint assignment only occurs if there is
|
5
|
+
no `:to` present in the options hash so should only affect routes using the
|
6
|
+
shorthand syntax (i.e. endpoint is inferred from the the path).
|
4
7
|
|
5
|
-
|
8
|
+
Fixes #9856
|
9
|
+
|
10
|
+
*Yves Senn*, *Andrew White*
|
11
|
+
|
12
|
+
* Use a case insensitive URI Regexp for #asset_path.
|
13
|
+
|
14
|
+
This fix a problem where the same asset path using different case are generating
|
15
|
+
different URIs.
|
16
|
+
|
17
|
+
Before:
|
18
|
+
|
19
|
+
image_tag("HTTP://google.com")
|
20
|
+
# => "<img alt=\"Google\" src=\"/assets/HTTP://google.com\" />"
|
21
|
+
image_tag("http://google.com")
|
22
|
+
# => "<img alt=\"Google\" src=\"http://google.com\" />"
|
6
23
|
|
24
|
+
After:
|
25
|
+
|
26
|
+
image_tag("HTTP://google.com")
|
27
|
+
# => "<img alt=\"Google\" src=\"HTTP://google.com\" />"
|
28
|
+
image_tag("http://google.com")
|
29
|
+
# => "<img alt=\"Google\" src=\"http://google.com\" />"
|
30
|
+
|
31
|
+
*David Celis*
|
32
|
+
|
33
|
+
* Fix an issue where partials with a number in the filename weren't being digested for cache dependencies.
|
7
34
|
|
8
|
-
|
35
|
+
*Bryan Ricker*
|
9
36
|
|
10
37
|
* Add support for passing custom url options other than `:host` and custom
|
11
38
|
status and flash options to `force_ssl`.
|
@@ -188,9 +215,6 @@
|
|
188
215
|
|
189
216
|
*Thierry Zires*
|
190
217
|
|
191
|
-
|
192
|
-
## Rails 4.0.0.beta1 (February 25, 2013) ##
|
193
|
-
|
194
218
|
* Fix `respond_to` not using formats that have no block if all is present. *Michael Grosser*
|
195
219
|
|
196
220
|
* New applications use an encrypted session store by default.
|
@@ -77,7 +77,7 @@ module ActionDispatch
|
|
77
77
|
# domain and subdomains.
|
78
78
|
#
|
79
79
|
# * <tt>:expires</tt> - The time at which this cookie expires, as a \Time object.
|
80
|
-
# * <tt>:secure</tt> - Whether this cookie is
|
80
|
+
# * <tt>:secure</tt> - Whether this cookie is only transmitted to HTTPS servers.
|
81
81
|
# Default is +false+.
|
82
82
|
# * <tt>:httponly</tt> - Whether this cookie is accessible via scripting or
|
83
83
|
# only HTTP. Defaults to +false+.
|
@@ -11,8 +11,8 @@ module ActionDispatch
|
|
11
11
|
class Mapper
|
12
12
|
URL_OPTIONS = [:protocol, :subdomain, :domain, :host, :port]
|
13
13
|
SCOPE_OPTIONS = [:path, :shallow_path, :as, :shallow_prefix, :module,
|
14
|
-
:controller, :
|
15
|
-
:shallow, :blocks, :options]
|
14
|
+
:controller, :action, :path_names, :constraints,
|
15
|
+
:shallow, :blocks, :defaults, :options]
|
16
16
|
|
17
17
|
class Constraints #:nodoc:
|
18
18
|
def self.new(app, constraints, request = Rack::Request)
|
@@ -869,6 +869,10 @@ module ActionDispatch
|
|
869
869
|
child
|
870
870
|
end
|
871
871
|
|
872
|
+
def merge_action_scope(parent, child) #:nodoc:
|
873
|
+
child
|
874
|
+
end
|
875
|
+
|
872
876
|
def merge_path_names_scope(parent, child) #:nodoc:
|
873
877
|
merge_options_scope(parent, child)
|
874
878
|
end
|
@@ -1378,6 +1382,10 @@ module ActionDispatch
|
|
1378
1382
|
raise ArgumentError, "Unknown scope #{on.inspect} given to :on"
|
1379
1383
|
end
|
1380
1384
|
|
1385
|
+
if @scope[:controller] && @scope[:action]
|
1386
|
+
options[:to] ||= "#{@scope[:controller]}##{@scope[:action]}"
|
1387
|
+
end
|
1388
|
+
|
1381
1389
|
paths.each do |_path|
|
1382
1390
|
route_options = options.dup
|
1383
1391
|
route_options[:path] ||= _path if _path.is_a?(String)
|
data/lib/action_pack/version.rb
CHANGED
@@ -105,7 +105,7 @@ module ActionView
|
|
105
105
|
# )
|
106
106
|
#
|
107
107
|
module AssetUrlHelper
|
108
|
-
URI_REGEXP = %r{^[-a-z]+://|^(?:cid|data):|^//}
|
108
|
+
URI_REGEXP = %r{^[-a-z]+://|^(?:cid|data):|^//}i
|
109
109
|
|
110
110
|
# Computes the path to asset in public directory. If :type
|
111
111
|
# options is set, a file extension will be appended and scoped
|
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.0.0
|
4
|
+
version: 4.0.0
|
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: 2013-06-
|
11
|
+
date: 2013-06-25 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.0.0
|
19
|
+
version: 4.0.0
|
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.0.0
|
26
|
+
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: builder
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 4.0.0
|
89
|
+
version: 4.0.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 4.0.0
|
96
|
+
version: 4.0.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: tzinfo
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -374,9 +374,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
374
374
|
version: 1.9.3
|
375
375
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
376
376
|
requirements:
|
377
|
-
- - '
|
377
|
+
- - '>='
|
378
378
|
- !ruby/object:Gem::Version
|
379
|
-
version:
|
379
|
+
version: '0'
|
380
380
|
requirements:
|
381
381
|
- none
|
382
382
|
rubyforge_project:
|