notifiable-apns-grocer 0.16.1 → 0.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -1
- data/lib/notifiable/apns/grocer/stream.rb +1 -1
- data/lib/notifiable/apns/grocer/version.rb +1 -1
- data/notifiable-apns-grocer.gemspec +1 -1
- data/spec/stream_spec.rb +7 -7
- 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: 3857d40a7261f4ca3d56a4336a8a11068934d33f
|
4
|
+
data.tar.gz: 99caf436591a77c7f24d9f74373d9580b25f91e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01ded1332832283ce817952e7c007fb5c53529cb7206c862360949ac5416acb09ec2bfba43f960368ab784aa5a43dbeb0025b2d0cebf37358d77a7aa9b52011f
|
7
|
+
data.tar.gz: 64e5919357da04837e0aeed5996a8feff25a2c67f39535516635203ccc24b064321455e0b2ca0b49e117e3c4161e0a04656e42440a5b31cd5a37acbd5ab5bf47
|
data/Gemfile
CHANGED
@@ -2,5 +2,12 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
ruby '2.3.1'
|
4
4
|
|
5
|
+
git_source(:github) do |repo_name|
|
6
|
+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
|
7
|
+
"https://github.com/#{repo_name}.git"
|
8
|
+
end
|
9
|
+
|
5
10
|
# Specify your gem's dependencies in notifiable-apns-grocer.gemspec
|
6
|
-
gemspec
|
11
|
+
gemspec
|
12
|
+
|
13
|
+
gem 'grocer', github: 'FutureWorkshops/grocer', ref: 'd574d5adca5d800eee2fac47f4ba64ce9a2d4a93'
|
@@ -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
|
-
|
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
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency "notifiable-rails", "~> 0.28.1"
|
22
|
-
spec.add_dependency "grocer", '~> 0.7.
|
22
|
+
spec.add_dependency "grocer", '~> 0.7.2'
|
23
23
|
spec.add_dependency "connection_pool", '~> 2.0.0'
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
data/spec/stream_spec.rb
CHANGED
@@ -82,13 +82,13 @@ describe Notifiable::Apns::Grocer::Stream do
|
|
82
82
|
it { expect(@grocer_payload).to include(expiry: expiry) }
|
83
83
|
end
|
84
84
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
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
|
92
92
|
end
|
93
93
|
|
94
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.
|
4
|
+
version: 0.16.2
|
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-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: notifiable-rails
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.7.
|
34
|
+
version: 0.7.2
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.7.
|
41
|
+
version: 0.7.2
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: connection_pool
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|