rack-jsonr 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDJiYzFiMzQ2NTQ3OWUxZjYzOTEzN2ZjNTY2YjI2MWI4YzFiNmJjOA==
4
+ YjZkYWNhODI3NGU0YjhhZDVkMzI4ZDU3YzBjMDBkZWNlN2JmNzdkYw==
5
5
  data.tar.gz: !binary |-
6
- NjU0MGMzYmI5MjUxNmNmOWIyNjE4NTg2Mzk3ZjExOGVmZWFkOTdmNA==
6
+ NjgwYWUzNjhmMzYwMDQ5ZmIwNzkwYTdhYmQ1MjZkNGQ1OTI2MDgwNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NmMzOWM0MDFkMmY5NzA5NGY3ZjlmYmI4N2ExZGQ0Y2Y2YTU1NzJmZDI0ZDhk
10
- N2IzZTBlYzU4ZDU5NTQyYzE0NTVjNjY3ZjNiMzE0YzgxMWYwZGUwMWNkYTIz
11
- MzVhMDM3MWE0ZmFlYTJjOTBiY2YxNjYyNDBhYzk3MTc5ODkwNzg=
9
+ OTlmZWFkZDlmZjYwNjJkNWM4ZGViZmQ5OGM2ZmFiN2Q2NTIyMmQ2OGU0NTY4
10
+ Mjc0ZDk2ZWJlOTI4NDJiYmI2N2ViNzNiMThlNjczMWNjNmJhOWE4ZDgyZDk2
11
+ MmY2NjkwN2Q0M2Y5MTc5ZTJmYmZiODFlNDhjNTQ0OWM4ZmU0Nzc=
12
12
  data.tar.gz: !binary |-
13
- NTY3YmYwYzdjMTg2ZjllYzk5ZjM1NTQ0ZGU2NzA3ZTQxMjc0MDMxY2YwOGNh
14
- OWY3YmRlNmQ3YjFlMmUwZTQ1NDMwYjk0NTg0MTAyMDBkMTE1NGM2OTg3NWE4
15
- OTdhM2RjZWYzYTViYWE0NWE5MjVkNWNjNjQxOWFjMDViZmQ2NWQ=
13
+ YjFmZTBhYzI2NDA1MDg1ODE1MTcyYmUxNjBlZjM1OWY1MzZiZTk2NTJkZWNi
14
+ ZmIzMmI4ZWViNzRlODI0ZjcxYTdjOTliMDMxOGI1YTAyNTE2ZGU2NmNjMmQx
15
+ YjBjOGU0ZGQ5ZGIyMzNiMDcxNzhjYzQzNDU0N2M1ZjQ3N2ViMzM=
@@ -56,7 +56,7 @@ module Rack
56
56
  end
57
57
 
58
58
  def self.is_jsonp_request?(request)
59
- (request.params.include?('callback') and request.get?)
59
+ (request.params.include?('callback') and (request.get? or request.env['rack.jsonr_method_override.original_method'] == 'GET'))
60
60
  end
61
61
 
62
62
  private
@@ -1,3 +1,3 @@
1
1
  class Rack::JSONR
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark