notifiable-apns-grocer 0.16.0 → 0.16.1
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/notifiable/apns/grocer/stream.rb +1 -1
- data/lib/notifiable/apns/grocer/version.rb +1 -1
- data/spec/stream_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14b10b26c7e67ffb371a6442938de71bc7f39eb5
|
4
|
+
data.tar.gz: b9c86adbaf020c1542dedf6ae910574007ccea0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f5f4edbe59262b8bc4c540b2f0c638b2bbc37dfa9b8285b8342fab9553969d8cd5a904b3950d032ce6b8a19e6b1de6994f371d7637c934f70da1ce5ee2f9424
|
7
|
+
data.tar.gz: 13d240c9674c7b0c114f27cb4750b22339a36f9a399654a4040c4d8a43eef48101a3d2eae35d29d4fa57b39207ed105b1cae72ae843dfc8e5045b2c8bc7d5d81
|
@@ -89,7 +89,7 @@ module Notifiable
|
|
89
89
|
payload[:alert][:title] = notification.title if notification.title
|
90
90
|
payload[:alert][:body] = notification.message if notification.message
|
91
91
|
payload[:sound] = notification.sound || 'default'
|
92
|
-
payload[:'thread-id'] = notification.thread_id if notification.thread_id
|
92
|
+
#payload[:'thread-id'] = notification.thread_id if notification.thread_id
|
93
93
|
payload[:badge] = notification.badge_count if notification.badge_count
|
94
94
|
payload[:identifier] = notification.identifier if notification.identifier
|
95
95
|
payload[:content_available] = notification.content_available if notification.content_available
|
data/spec/stream_spec.rb
CHANGED
@@ -81,6 +81,14 @@ describe Notifiable::Apns::Grocer::Stream do
|
|
81
81
|
it { expect(@grocer_payload[:custom]).to include(n_id: n1.id) }
|
82
82
|
it { expect(@grocer_payload).to include(expiry: expiry) }
|
83
83
|
end
|
84
|
+
|
85
|
+
# context "thread id" do
|
86
|
+
# let(:thread_id) { "threadabc123" }
|
87
|
+
# let(:n1) { Notifiable::Notification.create! app: a1, thread_id: thread_id}
|
88
|
+
# it { expect(@grocer_payload).to include(device_token: "abc123") }
|
89
|
+
# it { expect(@grocer_payload).to include("thread-id": "threadabc123") }
|
90
|
+
# it { expect(@grocer_payload[:custom]).to include(n_id: n1.id) }
|
91
|
+
# end
|
84
92
|
end
|
85
93
|
|
86
94
|
describe "#gateway_host" do
|