rack-jsonr 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZTEzNzM0ZDBmMDhkYmQ2ZDIzODIxNzZhMWUyYjIzODZkMGFlMGI1Yg==
5
- data.tar.gz: !binary |-
6
- M2VhZTNiNDYzYzcyMzkyOTY2NzE1Yzg3ZjcwZGU2ZDFmMWY2NTdiMw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZmFiN2IwMmVlYTExNjNlMDAzOTUzODdmMTY1NTNjMDdkOTM1NWU2NTVhMmQ0
10
- YWI2Mjk0MDNkMjkzN2Y5MzE1NWQzMDRlMGFhMGE4NThmODEzOWRkZTMxOGY1
11
- N2ZlN2M3Njc1MWUyNDA5MGExYjM5NTMyMmQ1OTAxZTkxMzM5NjU=
12
- data.tar.gz: !binary |-
13
- MDFhNTE1MjA1ZjZjNWY0OTQ2NzllNmE5ODgyNzk0ZWI1YTI4ODE2YWQyMmIy
14
- ZTNmYWE1MTQ0Y2UwOGYyZDUyNDYxNDAyM2ZhYjEwOTM3YTJlYThlOTI4MGY3
15
- OTc1ODk5YWVjMzg1NzkwNmVlMWM3ZWZhNTk2NzJkMGE4NTBhYmY=
2
+ SHA1:
3
+ metadata.gz: ef5239ef16970bde6321502b6a1b552a29d7f2be
4
+ data.tar.gz: 01f100bfa3250cf3fab1f355b68a68e9e9666999
5
+ SHA512:
6
+ metadata.gz: dc7e79f5538984f46764e76f06d7888d6adc01932fccccbef2107f0d0e2d5f9dd4107152f7e776ea6abd9405531883371c5f50bef7bee0a19658defdc2588a1c
7
+ data.tar.gz: bd9033329a171f1138a402510ee370939dfac3ac496004adc899589806c0dc4fa117858c98faa8a57a71aa10baf7aad561f01e4050357c90c4371121a1e9c9e1
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -51,6 +51,13 @@ 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
54
61
  end
55
62
  end
56
63
  end
@@ -1,3 +1,3 @@
1
1
  class Rack::JSONR
2
- VERSION = '0.2.7'
2
+ VERSION = '0.2.8'
3
3
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-jsonr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description:
@@ -48,20 +48,21 @@ require_paths:
48
48
  - lib
49
49
  required_ruby_version: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ! '>='
51
+ - - '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - ! '>='
56
+ - - '>='
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
60
60
  rubyforge_project:
61
- rubygems_version: 2.0.3
61
+ rubygems_version: 2.0.14
62
62
  signing_key:
63
63
  specification_version: 4
64
64
  summary: A Rack middleware for providing enhanced JSONP-type access, but with get,
65
65
  post, put, and delete verbs as well as http status, headers, and a json body that
66
66
  can be read when there are errors.
67
67
  test_files: []
68
+ has_rdoc: