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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85e2e9ad79e9b2427ae0b54b59e7cdb44e980bf1
4
- data.tar.gz: 19b79c1f9d98ece539c158f365bd072a135ca0dc
3
+ metadata.gz: 82d6dcc940311b422bf9ce808108e1e94ac236e3
4
+ data.tar.gz: 0c5bce2d5f63158f709e2f00c2472557d035a68d
5
5
  SHA512:
6
- metadata.gz: f6989a33921f43e1a56ec26131995d906e677012e053d9e002c4c1d08529c56f99645fdc919e0f0f7655e80878106004e3b540222deb1a400dee7055e7ff4a4b
7
- data.tar.gz: c335d5d026310d285e794fc67b03f5273e7e4a0adf8779a4a71b9c89687ff22f9cd3cb3f46ae592f26e177cc3cb7231d6231942f5cfcf15c1b7906f990329b09
6
+ metadata.gz: a8bee8098159b28ced7c7c79bac253dd3a2eca13a1a5e57c3c34343b585956891c122bd26dfee45819f3b1be391547bffcd259f439ab4df07c6dd6786aabf979
7
+ data.tar.gz: 3d8b4124171b15426a2448a3c957f4506280d7b9a34982c6faa5092dadbb7203c218429ba20d03aefc87dcf1e680aba6d99736eb53b610ba7c92e90e84f0c3b6
@@ -1,3 +1,10 @@
1
+ * Fix a bug where malformed query strings lead to 500.
2
+
3
+ fixes #11502.
4
+
5
+ *Yuki Nishijima*
6
+
7
+
1
8
  ## Rails 4.0.10 (September 11, 2014) ##
2
9
 
3
10
  * Return an absolute instead of relative path from an asset url in the case
@@ -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.to_sentence(:locale => :en)}")
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}" if name
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
@@ -1,7 +1,7 @@
1
1
  module ActionPack
2
2
  # Returns the version of the currently loaded ActionPack as a Gem::Version
3
3
  def self.version
4
- Gem::Version.new "4.0.11.1"
4
+ Gem::Version.new "4.0.12"
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
@@ -25,7 +25,7 @@ module ActionView
25
25
  private
26
26
 
27
27
  def value(object)
28
- object.send @method_name if object
28
+ object.public_send @method_name if object
29
29
  end
30
30
 
31
31
  def value_before_type_cast(object)
@@ -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.11.1
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-19 00:00:00.000000000 Z
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.11.1
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.11.1
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.11.1
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.11.1
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.2.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).