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 +4 -4
- data/lib/p8push/client.rb +1 -1
- data/lib/p8push/notification.rb +1 -1
- data/lib/p8push/version.rb +1 -1
- data/ts_p8push-1.1.2.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b7a23e2b2c147643de610af283df24b79e8d1044858f75b536ed646720ca52c
|
4
|
+
data.tar.gz: 397c9800e117aa52f8e00999251d0575b77903ee7bfc1ba895053b7086dcf08e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/p8push/notification.rb
CHANGED
@@ -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.
|
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
|
data/lib/p8push/version.rb
CHANGED
data/ts_p8push-1.1.2.gem
ADDED
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.
|
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
|