rack-jsonr 0.2.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/jsonr/jsonr.rb +0 -7
- data/lib/rack/jsonr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a52f3e20f47e28b9306397d7e66b6f55c19ca12
|
4
|
+
data.tar.gz: 3f99629f00e9fa2833a2604bb1fc7bbeb5e7d10f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11942cd37591da4d6f1773c23128dec621c2c6ed645f216b75e3ca1d5230dea31ecb4e30ea419f300a1777afeb858b379b90b7b788467c51a6a1c87027fc5de9
|
7
|
+
data.tar.gz: b6ee104032aa46a98f97153d6185c2f978a32039fc9a187fbf32f11e8c88e117113745cbafb8bd03fa59a9041551e4475d530d2259ced2c4302dcb686cb959e8
|
data/lib/rack/jsonr/jsonr.rb
CHANGED
@@ -51,13 +51,6 @@ module Rack
|
|
51
51
|
if HTTP_METHODS_TO_OVERRIDE.include?(method_override) and !env['rack.jsonr_method_override.original_method']
|
52
52
|
env['rack.jsonr_method_override.original_method'] = env['REQUEST_METHOD']
|
53
53
|
env['REQUEST_METHOD'] = method_override
|
54
|
-
if method_override == 'POST'
|
55
|
-
env['rack.request.query_hash'].each do |key,value|
|
56
|
-
next if !value.is_a?(Hash)
|
57
|
-
next if !value.all? {|k,v| k =~ /^[0-9]+$/ }
|
58
|
-
env['rack.request.query_hash'][key] = value.sort.inject([]) {|result, v| result << v[1] }
|
59
|
-
end
|
60
|
-
end
|
61
54
|
end
|
62
55
|
end
|
63
56
|
end
|
data/lib/rack/jsonr/version.rb
CHANGED