pusher-platform 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b90cf99d8d3d1e3adff8b2d2f8e1fdbfeb2ec8d9
4
- data.tar.gz: 1990850aafa0f6306e9ecc3237333a6a68fbe9d8
3
+ metadata.gz: b88108bc83be3d0cc6b2632badb4b70a48a490d3
4
+ data.tar.gz: aee040b32d24f26bd02d1f1b220ae2430d97e150
5
5
  SHA512:
6
- metadata.gz: d12def58a19cd9c0e799f233217cb5dcbaab05a7242c2382e57625d00e8730c2e40f80903ef8ecf0e52cf99ed1c593a4267dc203997f5630b50ebcbaef2dfbc4
7
- data.tar.gz: 6523d21ffbaeb34680828920b12c5e569da077bd2f759cf0444549c69f17f2267124b7ef97611edd2f80d1952ed88c7dc1ade95cc4778d567e911e6753773b2c
6
+ metadata.gz: 75211a57a17fb0ad21cd1399a8e358ff53c17064fde3569d23d3e251d061d59c8fb6c8bd2b07670dfa8d5cadd82a55d783540bde9af41c46953df06504160f97
7
+ data.tar.gz: 82908416dd2f6a385b4a8a0b06d04ad7e00c88fbdf3b2dad0c4652621a2fac8b989c3881f0473281e8afc9cc698898959bca93e549c869d85bf3728a2b019fbc
@@ -29,7 +29,9 @@ module Pusher
29
29
  end
30
30
 
31
31
  path = "services/#{@service_name}/#{@service_version}/#{@instance_id}/#{options[:path]}"
32
- body = options[:body].any? ? options[:body].to_json : nil
32
+ body = unless options[:body].nil?
33
+ options[:body].to_json
34
+ end
33
35
 
34
36
  response = @connection.request(
35
37
  method: options[:method],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher-platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pusher