actionpack 4.0.11.1 → 4.0.12
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/action_dispatch/http/request.rb +1 -1
- data/lib/action_dispatch/journey/formatter.rb +1 -1
- data/lib/action_dispatch/middleware/public_exceptions.rb +5 -1
- data/lib/action_pack/version.rb +1 -1
- data/lib/action_view/helpers/tags/base.rb +1 -1
- data/lib/action_view/helpers/translation_helper.rb +1 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82d6dcc940311b422bf9ce808108e1e94ac236e3
|
4
|
+
data.tar.gz: 0c5bce2d5f63158f709e2f00c2472557d035a68d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8bee8098159b28ced7c7c79bac253dd3a2eca13a1a5e57c3c34343b585956891c122bd26dfee45819f3b1be391547bffcd259f439ab4df07c6dd6786aabf979
|
7
|
+
data.tar.gz: 3d8b4124171b15426a2448a3c957f4506280d7b9a34982c6faa5092dadbb7203c218429ba20d03aefc87dcf1e680aba6d99736eb53b610ba7c92e90e84f0c3b6
|
data/CHANGELOG.md
CHANGED
@@ -324,7 +324,7 @@ module ActionDispatch
|
|
324
324
|
private
|
325
325
|
|
326
326
|
def check_method(name)
|
327
|
-
HTTP_METHOD_LOOKUP[name] || raise(ActionController::UnknownHttpMethod, "#{name}, accepted HTTP methods are #{HTTP_METHODS.
|
327
|
+
HTTP_METHOD_LOOKUP[name] || raise(ActionController::UnknownHttpMethod, "#{name}, accepted HTTP methods are #{HTTP_METHODS[0...-1].join(', ')}, and #{HTTP_METHODS[-1]}")
|
328
328
|
name
|
329
329
|
end
|
330
330
|
end
|
@@ -34,7 +34,7 @@ module ActionDispatch
|
|
34
34
|
end
|
35
35
|
|
36
36
|
message = "No route matches #{Hash[constraints.sort].inspect}"
|
37
|
-
message << " missing required keys: #{missing_keys.sort.inspect}"
|
37
|
+
message << " missing required keys: #{missing_keys.sort.inspect}" unless missing_keys.empty?
|
38
38
|
|
39
39
|
raise ActionController::UrlGenerationError, message
|
40
40
|
end
|
@@ -9,8 +9,12 @@ module ActionDispatch
|
|
9
9
|
def call(env)
|
10
10
|
status = env["PATH_INFO"][1..-1]
|
11
11
|
request = ActionDispatch::Request.new(env)
|
12
|
-
content_type = request.formats.first
|
13
12
|
body = { :status => status, :error => Rack::Utils::HTTP_STATUS_CODES.fetch(status.to_i, Rack::Utils::HTTP_STATUS_CODES[500]) }
|
13
|
+
content_type = begin
|
14
|
+
request.formats.first
|
15
|
+
rescue ActionController::BadRequest
|
16
|
+
Mime::HTML
|
17
|
+
end
|
14
18
|
|
15
19
|
render(status, content_type, body)
|
16
20
|
end
|
data/lib/action_pack/version.rb
CHANGED
@@ -5,6 +5,7 @@ module ActionView
|
|
5
5
|
# = Action View Translation Helpers
|
6
6
|
module Helpers
|
7
7
|
module TranslationHelper
|
8
|
+
include TagHelper
|
8
9
|
# Delegates to <tt>I18n#translate</tt> but also performs three additional functions.
|
9
10
|
#
|
10
11
|
# First, it will ensure that any thrown +MissingTranslation+ messages will be turned
|
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.
|
4
|
+
version: 4.0.12
|
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: 2014-11-
|
11
|
+
date: 2014-11-16 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.
|
19
|
+
version: 4.0.12
|
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.
|
26
|
+
version: 4.0.12
|
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.
|
89
|
+
version: 4.0.12
|
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.
|
96
|
+
version: 4.0.12
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: tzinfo
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -381,7 +381,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
381
381
|
requirements:
|
382
382
|
- none
|
383
383
|
rubyforge_project:
|
384
|
-
rubygems_version: 2.
|
384
|
+
rubygems_version: 2.4.2
|
385
385
|
signing_key:
|
386
386
|
specification_version: 4
|
387
387
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|