notifiable-apns-grocer 0.16.2 → 0.17.0

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: 3857d40a7261f4ca3d56a4336a8a11068934d33f
4
- data.tar.gz: 99caf436591a77c7f24d9f74373d9580b25f91e3
3
+ metadata.gz: cdf399f7d7fb85596779c48744787bd18d1c6521
4
+ data.tar.gz: f97a4991753316dc7327996e302f2e74682fa387
5
5
  SHA512:
6
- metadata.gz: 01ded1332832283ce817952e7c007fb5c53529cb7206c862360949ac5416acb09ec2bfba43f960368ab784aa5a43dbeb0025b2d0cebf37358d77a7aa9b52011f
7
- data.tar.gz: 64e5919357da04837e0aeed5996a8feff25a2c67f39535516635203ccc24b064321455e0b2ca0b49e117e3c4161e0a04656e42440a5b31cd5a37acbd5ab5bf47
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
 
@@ -1,7 +1,7 @@
1
1
  module Notifiable
2
2
  module Apns
3
3
  module Grocer
4
- VERSION = "0.16.2"
4
+ VERSION = "0.17.0"
5
5
  end
6
6
  end
7
7
  end
@@ -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.28.1"
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.16.2
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-19 00:00:00.000000000 Z
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.28.1
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.28.1
27
+ version: 0.29.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: grocer
30
30
  requirement: !ruby/object:Gem::Requirement