rack-jsonr 0.1.2 → 0.1.3

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
- MWIzYzNkMGRhZmY5MDQxYzg2OTY3MWQyOGNmOTc2NGEzZmUyNTU0Zg==
4
+ YmVhODZiYzRmZDAxYTE3YTYxNDU5NTYyMjMwZDI1OTVmZTEwNmU5Zg==
5
5
  data.tar.gz: !binary |-
6
- Zjg5MzBjOGVjMzI4MDhkOTRhODE0NGE1MDlmMGYzYTBhNDZhYzYyNA==
6
+ OTAwNmRlNTMyY2E2OGU5NDcwMGRhYjVjY2UzYzNlMDhiZWU0ZDEzNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YmYzZWVlOGNjNGE3M2E2MDc2ZGNhM2JkOTMwMzgzZGNjZGQ2ZDdiMjczZDIz
10
- YzA1ZjFiY2E3NjM3NDNiYTY0MjAyMGRhYTI0NjdjYTNlY2JhYjExZWU0YTFj
11
- YzVlNWYyOTU2MjNjMDUzYzMxYjljMzc3OTc0MTdhOTk2ZDM3OTU=
9
+ Mzc1ZDIzNjkyYmQ5YmFmNGY1ZTc5NmNmZjJkZTc4YzFiNmZjZjk2ZjllMzYz
10
+ OWI0MWRjNWZjYzlkMTQ4M2JmNDlhODY0MWFiODA0M2FiNDk2MjU4MjkwMzBj
11
+ N2E3MzljYzIzNTJmMmQwODZjZDM3NmJiZTdkYjAwNjgyZWQ3NTU=
12
12
  data.tar.gz: !binary |-
13
- N2IzNjA0NzNlMzEzOTM3NDQxMjJjZWFiNDZmY2I2ZmYxYTU3NDE4YzM3MTE5
14
- ZGRjY2JjOTA5NTJiNDI1NThmMjFlNGRiNWIxMmE5MTI5ZWEzOGMwM2YwNDZl
15
- MmE3YzExNGE1MDRiYzk5NzRiYzYxYjZjN2UwZmU0NmRiY2VkOTY=
13
+ ZGYxYWIzZDE5MTBmYWVjYzE2MjVmMTY3MGM5ZjFhMWViN2FmOGE0MzQzYWIy
14
+ YjA5N2M4ZDQ5NjRhZWJkNWU5NTRlMTVhZmI3YmMyMjUzOGViOTYxNmE1M2Rk
15
+ OWY2YzY5NGVjZmJjZGJlMDI4NjRlOGUyOWNhYzBlYzg1ODg1ZTI=
@@ -64,7 +64,7 @@ module Rack
64
64
  def format_jsonp(callback, status, headers, response, x_headers={}, body='')
65
65
  headers.each {|k,v| x_headers[k] = v if (k =~ /^X-.+/i) }
66
66
  response.each {|v| body << v.to_s }
67
- ["#{callback}(#{body}, #{status}, #{x_headers})"]
67
+ ["#{callback}(#{body}, #{status}, #{x_headers.to_json})"]
68
68
  end
69
69
 
70
70
  end
@@ -1,3 +1,3 @@
1
1
  class Rack::JSONR
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark