actionpack 3.0.13 → 3.0.14
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.
- data/CHANGELOG +6 -0
- data/lib/action_dispatch/http/request.rb +4 -2
- data/lib/action_pack/version.rb +1 -1
- metadata +10 -10
data/CHANGELOG
CHANGED
|
@@ -262,17 +262,19 @@ module ActionDispatch
|
|
|
262
262
|
|
|
263
263
|
# Remove nils from the params hash
|
|
264
264
|
def deep_munge(hash)
|
|
265
|
+
keys = hash.keys.find_all { |k| hash[k] == [nil] }
|
|
266
|
+
keys.each { |k| hash[k] = nil }
|
|
267
|
+
|
|
265
268
|
hash.each_value do |v|
|
|
266
269
|
case v
|
|
267
270
|
when Array
|
|
268
271
|
v.grep(Hash) { |x| deep_munge(x) }
|
|
272
|
+
v.compact!
|
|
269
273
|
when Hash
|
|
270
274
|
deep_munge(v)
|
|
271
275
|
end
|
|
272
276
|
end
|
|
273
277
|
|
|
274
|
-
keys = hash.keys.find_all { |k| hash[k] == [nil] }
|
|
275
|
-
keys.each { |k| hash[k] = nil }
|
|
276
278
|
hash
|
|
277
279
|
end
|
|
278
280
|
|
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: 27
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 3.0.
|
|
9
|
+
- 14
|
|
10
|
+
version: 3.0.14
|
|
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: 27
|
|
29
29
|
segments:
|
|
30
30
|
- 3
|
|
31
31
|
- 0
|
|
32
|
-
-
|
|
33
|
-
version: 3.0.
|
|
32
|
+
- 14
|
|
33
|
+
version: 3.0.14
|
|
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: 27
|
|
45
45
|
segments:
|
|
46
46
|
- 3
|
|
47
47
|
- 0
|
|
48
|
-
-
|
|
49
|
-
version: 3.0.
|
|
48
|
+
- 14
|
|
49
|
+
version: 3.0.14
|
|
50
50
|
type: :runtime
|
|
51
51
|
version_requirements: *id002
|
|
52
52
|
- !ruby/object:Gem::Dependency
|