rack-jsonr 0.2.3 → 0.2.4

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
- ZjBkZGMwNWYyNzEwMjc1MDZiMDAzNWNjM2M5OTk0NmJiN2U3YjNkYw==
4
+ YzE0YzNlYmY1ZjJjZmYzYWU2YjVlMjA3ZGRjNWE1NjI2YzFhYzIyZg==
5
5
  data.tar.gz: !binary |-
6
- YjAwNmViZDgwNDA1MDNmZGMyODkzZjg4ODdkZGQ2NzhmNzZmNmVlNw==
6
+ Yzc2MGQ4NmJkNmU2ZjY3NjJmMjkzMmZmNTEyOTlhMjlhNjMyYWExMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OWVmOWEyYjczNzliZDI2M2ZiOGM1MTVlOWE2YWY0ZGJkN2NmYTlkNmQ5NDYz
10
- NWU1NzdiMWFkOTU3ZmM2MzFlYjNmZmFlN2VhYmI5MzkwOTBiYzA3NjAyMzdm
11
- NmQ0YTFjZjVhOGI5ZjJhYzViNjcwYjhiNmE0YzBiMjY5YzI0MWI=
9
+ N2ZiMzA3Mzc2NzU3ODliOGRkZTdiNjg3MTViZTAzM2U1MTdmMmFiMmMzMGQx
10
+ NWY4ZWUyZDM3YTQ4NTQ5Y2NiYzkwMDhhNDhiZTBmYWVjOGViOGQ2MjQ3MDNm
11
+ OTYzM2JlOGM5NTU4YzFlMDk3ZjdlYTMwZjY0MzgyOTk1ZmNlMTg=
12
12
  data.tar.gz: !binary |-
13
- Yzg0NzExOGUwZTBjNzlhY2QyZWVmNmZkMmQzZWIzYjY3YWQxOGE1ODAxNzhh
14
- ZTA2ZTMwYjk4ZGQzMTQ4MDg1YWE2YmMxZGUzZTYyZjYxNWZiMmZmNjliMzY4
15
- MzhlMmY3MTU0MGI5MWNkNjhkZWZkN2NiNTNhM2IyZDk3YTgzMmQ=
13
+ NjlkMWRmMDliMzM4ZmVjNWMyZTBiNTI2YjkxMWYzZjY1MTk2Y2Q4NTcxNzhh
14
+ N2Q2Y2FmZTQ3Nzc1N2IwOWViOTEzOTRlODU4MGY5NDg0ZjMyNGIzZTczYTRm
15
+ MWQzYzg4YzlkMjVhMzAxOGIwNWJiNjI3ZTcwMGM2YzU1MDBkODU=
@@ -74,7 +74,7 @@ module Rack
74
74
  def format_jsonp(callback, status, headers, response, x_headers={}, body='')
75
75
  headers.each {|k,v| x_headers[k] = v if (k =~ /^X-.+/i) }
76
76
  response.each {|v| body << v.to_s }
77
- ["#{callback}(#{body}, #{status}, #{x_headers.to_json})"]
77
+ ["#{callback}(#{body || 'null'}, #{status}, #{x_headers.to_json})"]
78
78
  end
79
79
 
80
80
  end
@@ -1,3 +1,3 @@
1
1
  class Rack::JSONR
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark