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 +8 -8
- data/lib/rack/jsonr/jsonr.rb +1 -1
- data/lib/rack/jsonr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzE0YzNlYmY1ZjJjZmYzYWU2YjVlMjA3ZGRjNWE1NjI2YzFhYzIyZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yzc2MGQ4NmJkNmU2ZjY3NjJmMjkzMmZmNTEyOTlhMjlhNjMyYWExMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2ZiMzA3Mzc2NzU3ODliOGRkZTdiNjg3MTViZTAzM2U1MTdmMmFiMmMzMGQx
|
10
|
+
NWY4ZWUyZDM3YTQ4NTQ5Y2NiYzkwMDhhNDhiZTBmYWVjOGViOGQ2MjQ3MDNm
|
11
|
+
OTYzM2JlOGM5NTU4YzFlMDk3ZjdlYTMwZjY0MzgyOTk1ZmNlMTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjlkMWRmMDliMzM4ZmVjNWMyZTBiNTI2YjkxMWYzZjY1MTk2Y2Q4NTcxNzhh
|
14
|
+
N2Q2Y2FmZTQ3Nzc1N2IwOWViOTEzOTRlODU4MGY5NDg0ZjMyNGIzZTczYTRm
|
15
|
+
MWQzYzg4YzlkMjVhMzAxOGIwNWJiNjI3ZTcwMGM2YzU1MDBkODU=
|
data/lib/rack/jsonr/jsonr.rb
CHANGED
@@ -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
|
data/lib/rack/jsonr/version.rb
CHANGED