notifiable-apns-grocer 0.16.2 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifiable/apns/grocer/stream.rb +1 -0
- data/lib/notifiable/apns/grocer/version.rb +1 -1
- data/notifiable-apns-grocer.gemspec +1 -1
- data/spec/stream_spec.rb +8 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdf399f7d7fb85596779c48744787bd18d1c6521
|
4
|
+
data.tar.gz: f97a4991753316dc7327996e302f2e74682fa387
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e0c70935e414a3cc14b5a178189e8908c5f0238027176d51d1f45c85c55282cf2cccb4adbda7cc6606487218c5a352f08c0b8ade866d98f352c6ba0a60cfd5d
|
7
|
+
data.tar.gz: 664904486efe25d90e15b1cfe958e68965e0eca6402c763607f82dfb0bff3f532300ecabe03830d374017ea84e73fc3d0995fced8d3e2ddd770838806277ded1
|
@@ -95,6 +95,7 @@ module Notifiable
|
|
95
95
|
payload[:content_available] = notification.content_available if notification.content_available
|
96
96
|
payload[:mutable_content] = notification.mutable_content if notification.mutable_content
|
97
97
|
payload[:expiry] = notification.expiry if notification.expiry
|
98
|
+
payload[:category] = notification.category if notification.category
|
98
99
|
payload
|
99
100
|
end
|
100
101
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "notifiable-rails", "~> 0.
|
21
|
+
spec.add_dependency "notifiable-rails", "~> 0.29.0"
|
22
22
|
spec.add_dependency "grocer", '~> 0.7.2'
|
23
23
|
spec.add_dependency "connection_pool", '~> 2.0.0'
|
24
24
|
|
data/spec/stream_spec.rb
CHANGED
@@ -89,6 +89,14 @@ describe Notifiable::Apns::Grocer::Stream do
|
|
89
89
|
it { expect(@grocer_payload).to include(thread_id: "threadabc123") }
|
90
90
|
it { expect(@grocer_payload[:custom]).to include(n_id: n1.id) }
|
91
91
|
end
|
92
|
+
|
93
|
+
context "category" do
|
94
|
+
let(:category) { "INVITATION" }
|
95
|
+
let(:n1) { Notifiable::Notification.create! app: a1, category: category}
|
96
|
+
it { expect(@grocer_payload).to include(device_token: "abc123") }
|
97
|
+
it { expect(@grocer_payload).to include(category: "INVITATION") }
|
98
|
+
it { expect(@grocer_payload[:custom]).to include(n_id: n1.id) }
|
99
|
+
end
|
92
100
|
end
|
93
101
|
|
94
102
|
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.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Kocemba
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-06-
|
12
|
+
date: 2018-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: notifiable-rails
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 0.29.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: 0.29.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: grocer
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|