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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e5f4841e095e7ea307029f7292e8e22f5a1a21e
4
- data.tar.gz: 3ca1ad0d68c572c998e08743717737e03c81711f
3
+ metadata.gz: 14b10b26c7e67ffb371a6442938de71bc7f39eb5
4
+ data.tar.gz: b9c86adbaf020c1542dedf6ae910574007ccea0f
5
5
  SHA512:
6
- metadata.gz: 89a8d9cdb1b09ae72c328de828829dd7157b1c0726ee149f9ec2c28c38c5e0013634b18ae12830d1d84b7a2a4a1b2d093564052721387a6b2fa88bc0a7298595
7
- data.tar.gz: 87f7e49e40767d157602b79534d00675e792aafe1ebcaa9b1aa04595bf82cf00ffaa7fbedb516b7ba982549f6c38daf90226dc224d107b7d4e09ceec7e0b0f35
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
@@ -1,7 +1,7 @@
1
1
  module Notifiable
2
2
  module Apns
3
3
  module Grocer
4
- VERSION = "0.16.0"
4
+ VERSION = "0.16.1"
5
5
  end
6
6
  end
7
7
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-apns-grocer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Kocemba