ts_p8push 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb6241c6d144d5d9b02eb5db21bc6dc35d6871d1f9021c5fd4e32c452bbb1541
4
- data.tar.gz: de79a6b99b372c16dffd49c87ac1dd7a4be1a8df5e5eab2aeed7d3836b847586
3
+ metadata.gz: 0b7a23e2b2c147643de610af283df24b79e8d1044858f75b536ed646720ca52c
4
+ data.tar.gz: 397c9800e117aa52f8e00999251d0575b77903ee7bfc1ba895053b7086dcf08e
5
5
  SHA512:
6
- metadata.gz: 98b8e98e8c684b2ba8f424c0d4f602881ba587c875aefbbb92b87baf5813e01d0782f9a5b6dcf06d9947b0ba91f5f5851c55127d439a36010c14177be657305d
7
- data.tar.gz: 9cb446dfbd4b5bbe4995ebf14f0ea816160f8adb89ca67a6be46daeeeb7b5ad0226bdd45e6c1159549d9d7a6e1ddc1a1e848fc1c0852f4c099c1b6fbb61daff6
6
+ metadata.gz: 2af01065e809342e2393046dcb90a017e4f2205a3548f32f3e5da36292526a44b2ea3174b251c4105a6fc75f05c704f6abc493518636a8eb5f95bee0441162ce
7
+ data.tar.gz: 00f24c0d707c0081e107b9f2128c106212eccbca06e81d2e7828fda32a276513071789c949e9df02368b97ecc0288c977a874554e916f8de3cc221fc2b8ea45d
data/lib/p8push/client.rb CHANGED
@@ -45,7 +45,7 @@ module P8push
45
45
 
46
46
  puts payload.inspect
47
47
 
48
- res = client.call(:post, '/3/device/'+token, body: payload.as_json, timeout: @timeout,
48
+ res = client.call(:post, '/3/device/'+token, body: payload.to_json, timeout: @timeout,
49
49
  headers: h)
50
50
  client.close
51
51
  return nil if res.status.to_i == 200
@@ -56,7 +56,7 @@ module P8push
56
56
  json = {}.merge(@custom_data || {}).inject({}) { |h, (k, v)| h[k.to_s] = v; h }
57
57
 
58
58
  json['aps'] ||= {}
59
- json['aps']['alert'] = @alert.as_json if @alert
59
+ json['aps']['alert'] = @alert.to_json if @alert
60
60
  json['aps']['badge'] = @badge.to_i rescue 0 if @badge
61
61
  json['aps']['sound'] = @sound if @sound
62
62
  json['aps']['category'] = @category if @category
@@ -1,3 +1,3 @@
1
1
  module P8push
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ts_p8push
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Arrow
@@ -90,6 +90,7 @@ files:
90
90
  - "./ts_p8push-1.0.9.gem"
91
91
  - "./ts_p8push-1.1.0.gem"
92
92
  - "./ts_p8push-1.1.1.gem"
93
+ - "./ts_p8push-1.1.2.gem"
93
94
  homepage: https://talhashoaib.me
94
95
  licenses:
95
96
  - MIT