actionpack 4.1.9 → 4.1.10.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: db10782d837eef0e09b1e170e4f44fc747a5ac69
4
- data.tar.gz: 08366ec637eee7308307e4bb95e443b28ff9d8cc
3
+ metadata.gz: 9ff1846274fffd434b5c9726d31e059befafe52f
4
+ data.tar.gz: 52f39796bc3785ab7519c08e5484cfde22390c7a
5
5
  SHA512:
6
- metadata.gz: 4062ad340cd1a94d719fb2aa978a19456dbc9863177120fd3473ba36f1624e52391eae5cd04a997cffd5db750a1f63c8fab373b06bc4d5ccc480406cd2724c67
7
- data.tar.gz: 6f10b6e27d69b0d9f4365b49d7660c7cbcf1d1a898b72d213890937aa2184805df51f7f52756bb67be387f37ef8d561f90a25e42db7192f8b132c40803df5723
6
+ metadata.gz: 91b73ecea8b7e94750998e0819f5383be20d7b5db133f075244d727c7c43b38407286ca563e7a4e7aab3224493907aed51e24915e64e6f893a1b418ec7b920f4
7
+ data.tar.gz: 2c7e9279ab25749193a6441f64c37c430e05fce12ff3bfcf6d14466948d42ec2b93f7a78b368a27563019458c4b4231d4e3097d96f653a926c91c1e06e81a808
@@ -1,3 +1,30 @@
1
+ * Preserve default format when generating URLs
2
+
3
+ Fixes an issue that would cause the format set in default_url_options to be
4
+ lost when generating URLs with fewer positional arguments than parameters in
5
+ the route definition.
6
+
7
+ Backport of #18627
8
+
9
+ *Tekin Suleyman*, *Dominic Baggott*
10
+
11
+ * Default headers, removed in controller actions, are no longer reapplied on
12
+ the test response.
13
+
14
+ *Jonas Baumann*
15
+
16
+ * Ensure `append_info_to_payload` is called even if an exception is raised.
17
+
18
+ Fixes an issue where when an exception is raised in the request the additonal
19
+ payload data is not available.
20
+
21
+ See:
22
+ * #14903
23
+ * https://github.com/roidrage/lograge/issues/37
24
+
25
+ *Dieter Komendera*, *Margus Pärt*
26
+
27
+
1
28
  ## Rails 4.1.9 (January 6, 2015) ##
2
29
 
3
30
  * Fixed handling of positional url helper arguments when `format: false`.
@@ -28,10 +28,13 @@ module ActionController
28
28
  ActiveSupport::Notifications.instrument("start_processing.action_controller", raw_payload.dup)
29
29
 
30
30
  ActiveSupport::Notifications.instrument("process_action.action_controller", raw_payload) do |payload|
31
- result = super
32
- payload[:status] = response.status
33
- append_info_to_payload(payload)
34
- result
31
+ begin
32
+ result = super
33
+ payload[:status] = response.status
34
+ result
35
+ ensure
36
+ append_info_to_payload(payload)
37
+ end
35
38
  end
36
39
  end
37
40
 
@@ -247,7 +247,14 @@ module ActionDispatch
247
247
  keys -= options.keys
248
248
  end
249
249
  keys -= inner_options.keys
250
- result.merge!(Hash[keys.zip(args)])
250
+
251
+ keys.each do |key|
252
+ value = inner_options.fetch(key) { args.shift }
253
+
254
+ unless key == :format && value.nil?
255
+ result[key] = value
256
+ end
257
+ end
251
258
  end
252
259
 
253
260
  result.merge!(inner_options)
@@ -25,5 +25,12 @@ module ActionDispatch
25
25
 
26
26
  # Was there a server-side error?
27
27
  alias_method :error?, :server_error?
28
+
29
+ def merge_default_headers(original, *args)
30
+ # Default headers are already applied, no need to merge them a second time.
31
+ # This makes sure that default headers, removed in controller actions, will
32
+ # not be reapplied to the test response.
33
+ original
34
+ end
28
35
  end
29
36
  end
@@ -7,8 +7,8 @@ module ActionPack
7
7
  module VERSION
8
8
  MAJOR = 4
9
9
  MINOR = 1
10
- TINY = 9
11
- PRE = nil
10
+ TINY = 10
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
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.1.9
4
+ version: 4.1.10.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: 2015-01-06 00:00:00.000000000 Z
11
+ date: 2015-02-20 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.1.9
19
+ version: 4.1.10.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.1.9
26
+ version: 4.1.10.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 4.1.9
61
+ version: 4.1.10.rc1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 4.1.9
68
+ version: 4.1.10.rc1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activemodel
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 4.1.9
75
+ version: 4.1.10.rc1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 4.1.9
82
+ version: 4.1.10.rc1
83
83
  description: Web apps on Rails. Simple, battle-tested conventions for building and
84
84
  testing MVC web applications. Works with any Rack-compatible server.
85
85
  email: david@loudthinking.com
@@ -252,9 +252,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
252
252
  version: 1.9.3
253
253
  required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  requirements:
255
- - - ">="
255
+ - - ">"
256
256
  - !ruby/object:Gem::Version
257
- version: '0'
257
+ version: 1.3.1
258
258
  requirements:
259
259
  - none
260
260
  rubyforge_project: