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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14b10b26c7e67ffb371a6442938de71bc7f39eb5
4
- data.tar.gz: b9c86adbaf020c1542dedf6ae910574007ccea0f
3
+ metadata.gz: 3857d40a7261f4ca3d56a4336a8a11068934d33f
4
+ data.tar.gz: 99caf436591a77c7f24d9f74373d9580b25f91e3
5
5
  SHA512:
6
- metadata.gz: 2f5f4edbe59262b8bc4c540b2f0c638b2bbc37dfa9b8285b8342fab9553969d8cd5a904b3950d032ce6b8a19e6b1de6994f371d7637c934f70da1ce5ee2f9424
7
- data.tar.gz: 13d240c9674c7b0c114f27cb4750b22339a36f9a399654a4040c4d8a43eef48101a3d2eae35d29d4fa57b39207ed105b1cae72ae843dfc8e5045b2c8bc7d5d81
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
- #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.1"
4
+ VERSION = "0.16.2"
5
5
  end
6
6
  end
7
7
  end
@@ -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.0'
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
- # 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
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.1
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-18 00:00:00.000000000 Z
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.0
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.0
41
+ version: 0.7.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: connection_pool
44
44
  requirement: !ruby/object:Gem::Requirement