actionpack 3.1.5 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
- data/CHANGELOG.md +6 -0
- data/lib/action_dispatch/http/request.rb +4 -2
- data/lib/action_pack/version.rb +1 -1
- metadata +10 -10
data/CHANGELOG.md
CHANGED
@@ -271,17 +271,19 @@ module ActionDispatch
|
|
271
271
|
|
272
272
|
# Remove nils from the params hash
|
273
273
|
def deep_munge(hash)
|
274
|
+
keys = hash.keys.find_all { |k| hash[k] == [nil] }
|
275
|
+
keys.each { |k| hash[k] = nil }
|
276
|
+
|
274
277
|
hash.each_value do |v|
|
275
278
|
case v
|
276
279
|
when Array
|
277
280
|
v.grep(Hash) { |x| deep_munge(x) }
|
281
|
+
v.compact!
|
278
282
|
when Hash
|
279
283
|
deep_munge(v)
|
280
284
|
end
|
281
285
|
end
|
282
286
|
|
283
|
-
keys = hash.keys.find_all { |k| hash[k] == [nil] }
|
284
|
-
keys.each { |k| hash[k] = nil }
|
285
287
|
hash
|
286
288
|
end
|
287
289
|
|
data/lib/action_pack/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 3.1.
|
9
|
+
- 6
|
10
|
+
version: 3.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Heinemeier Hansson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-06-12 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activesupport
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - "="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 15
|
29
29
|
segments:
|
30
30
|
- 3
|
31
31
|
- 1
|
32
|
-
-
|
33
|
-
version: 3.1.
|
32
|
+
- 6
|
33
|
+
version: 3.1.6
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
@@ -41,12 +41,12 @@ dependencies:
|
|
41
41
|
requirements:
|
42
42
|
- - "="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
44
|
+
hash: 15
|
45
45
|
segments:
|
46
46
|
- 3
|
47
47
|
- 1
|
48
|
-
-
|
49
|
-
version: 3.1.
|
48
|
+
- 6
|
49
|
+
version: 3.1.6
|
50
50
|
type: :runtime
|
51
51
|
version_requirements: *id002
|
52
52
|
- !ruby/object:Gem::Dependency
|