hertz-fcm 1.1.4 → 1.2.0

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
  SHA256:
3
- metadata.gz: 1aaaae6f312fc2bbe6e8906424e445988955c0e31bebcfe9a1dbb15e41eab23f
4
- data.tar.gz: dc6917277ec6f067d139554f4f6bd3485d7a65772ea31837518897536fb81c59
3
+ metadata.gz: 450482feeaf438c98ef26dd1e6f7e77033ba0996e6addfdbf38649afd89bc303
4
+ data.tar.gz: 505d83fa8eb10c250d98960d998742bb3c45dc95ba8fa9fb642a3536c9bd2374
5
5
  SHA512:
6
- metadata.gz: 39221bd8c63ad7255a6245789f4aed1e1d1ea6c6fc0deab27236ce56bd66e412d2fc88360fe82757bdb9115a401ffb04f9a3ed67e2acd2aa366326e2b9651c27
7
- data.tar.gz: 39e3aa0387355ffa8a47c72f9037368323f677c1012b440ec727ac520166e1b43881f55540c2dc0d261e090d431f4d896ee2ac026edb1c266b24c7bf94caef7b
6
+ metadata.gz: cb02bab3236ad55efe059696f17944ac4f2b6b0d6f5fc83f2188c85436b8f38d9b3e346bc98bf78a434b19a9b5ac68896247fbe4ab0a28ae2cb97f400735d47a
7
+ data.tar.gz: 9b0fbd630f17b1a018250cded5e38cd74fa1e5de4d61754d3ff8a301aaa013a1d24d8de18998264fb771623fd258e395760a028eb69e281125699f1445f035b3
data/Gemfile.lock CHANGED
@@ -9,43 +9,43 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (5.2.2)
13
- actionpack (= 5.2.2)
12
+ actioncable (5.2.3)
13
+ actionpack (= 5.2.3)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
- actionmailer (5.2.2)
17
- actionpack (= 5.2.2)
18
- actionview (= 5.2.2)
19
- activejob (= 5.2.2)
16
+ actionmailer (5.2.3)
17
+ actionpack (= 5.2.3)
18
+ actionview (= 5.2.3)
19
+ activejob (= 5.2.3)
20
20
  mail (~> 2.5, >= 2.5.4)
21
21
  rails-dom-testing (~> 2.0)
22
- actionpack (5.2.2)
23
- actionview (= 5.2.2)
24
- activesupport (= 5.2.2)
22
+ actionpack (5.2.3)
23
+ actionview (= 5.2.3)
24
+ activesupport (= 5.2.3)
25
25
  rack (~> 2.0)
26
26
  rack-test (>= 0.6.3)
27
27
  rails-dom-testing (~> 2.0)
28
28
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- actionview (5.2.2)
30
- activesupport (= 5.2.2)
29
+ actionview (5.2.3)
30
+ activesupport (= 5.2.3)
31
31
  builder (~> 3.1)
32
32
  erubi (~> 1.4)
33
33
  rails-dom-testing (~> 2.0)
34
34
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
- activejob (5.2.2)
36
- activesupport (= 5.2.2)
35
+ activejob (5.2.3)
36
+ activesupport (= 5.2.3)
37
37
  globalid (>= 0.3.6)
38
- activemodel (5.2.2)
39
- activesupport (= 5.2.2)
40
- activerecord (5.2.2)
41
- activemodel (= 5.2.2)
42
- activesupport (= 5.2.2)
38
+ activemodel (5.2.3)
39
+ activesupport (= 5.2.3)
40
+ activerecord (5.2.3)
41
+ activemodel (= 5.2.3)
42
+ activesupport (= 5.2.3)
43
43
  arel (>= 9.0)
44
- activestorage (5.2.2)
45
- actionpack (= 5.2.2)
46
- activerecord (= 5.2.2)
44
+ activestorage (5.2.3)
45
+ actionpack (= 5.2.3)
46
+ activerecord (= 5.2.3)
47
47
  marcel (~> 0.3.1)
48
- activesupport (5.2.2)
48
+ activesupport (5.2.3)
49
49
  concurrent-ruby (~> 1.0, >= 1.0.2)
50
50
  i18n (>= 0.7, < 2)
51
51
  minitest (~> 5.1)
@@ -55,7 +55,7 @@ GEM
55
55
  arel (9.0.0)
56
56
  ast (2.4.0)
57
57
  builder (3.2.3)
58
- concurrent-ruby (1.1.4)
58
+ concurrent-ruby (1.1.5)
59
59
  coveralls (0.8.22)
60
60
  json (>= 1.8, < 3)
61
61
  simplecov (~> 0.16.1)
@@ -66,19 +66,19 @@ GEM
66
66
  diff-lcs (1.3)
67
67
  docile (1.3.1)
68
68
  erubi (1.8.0)
69
- factory_bot (5.0.0)
69
+ factory_bot (5.0.2)
70
70
  activesupport (>= 4.2.0)
71
- factory_bot_rails (5.0.0)
71
+ factory_bot_rails (5.0.1)
72
72
  factory_bot (~> 5.0.0)
73
73
  railties (>= 4.2.0)
74
74
  faraday (0.15.4)
75
75
  multipart-post (>= 1.2, < 3)
76
- firebase_cloud_messenger (0.4.0)
76
+ firebase_cloud_messenger (0.4.1)
77
77
  googleauth (~> 0.6)
78
78
  json-schema (~> 2.8)
79
79
  globalid (0.4.2)
80
80
  activesupport (>= 4.2.0)
81
- googleauth (0.8.0)
81
+ googleauth (0.8.1)
82
82
  faraday (~> 0.12)
83
83
  jwt (>= 1.4, < 3.0)
84
84
  memoist (~> 0.16)
@@ -87,10 +87,10 @@ GEM
87
87
  signet (~> 0.7)
88
88
  hertz (2.0.0)
89
89
  rails (>= 4.0.0, < 6.0.0)
90
- i18n (1.5.3)
90
+ i18n (1.6.0)
91
91
  concurrent-ruby (~> 1.0)
92
92
  jaro_winkler (1.5.2)
93
- json (2.1.0)
93
+ json (2.2.0)
94
94
  json-schema (2.8.1)
95
95
  addressable (>= 2.4)
96
96
  jwt (2.1.0)
@@ -110,39 +110,39 @@ GEM
110
110
  multi_json (1.13.1)
111
111
  multipart-post (2.0.0)
112
112
  nio4r (2.3.1)
113
- nokogiri (1.10.1)
113
+ nokogiri (1.10.2)
114
114
  mini_portile2 (~> 2.4.0)
115
115
  os (1.0.0)
116
- parallel (1.13.0)
117
- parser (2.6.0.0)
116
+ parallel (1.16.0)
117
+ parser (2.6.2.0)
118
118
  ast (~> 2.4.0)
119
119
  pg (1.1.4)
120
- powerpack (0.1.2)
120
+ psych (3.1.0)
121
121
  public_suffix (3.0.3)
122
122
  rack (2.0.6)
123
123
  rack-test (1.1.0)
124
124
  rack (>= 1.0, < 3)
125
- rails (5.2.2)
126
- actioncable (= 5.2.2)
127
- actionmailer (= 5.2.2)
128
- actionpack (= 5.2.2)
129
- actionview (= 5.2.2)
130
- activejob (= 5.2.2)
131
- activemodel (= 5.2.2)
132
- activerecord (= 5.2.2)
133
- activestorage (= 5.2.2)
134
- activesupport (= 5.2.2)
125
+ rails (5.2.3)
126
+ actioncable (= 5.2.3)
127
+ actionmailer (= 5.2.3)
128
+ actionpack (= 5.2.3)
129
+ actionview (= 5.2.3)
130
+ activejob (= 5.2.3)
131
+ activemodel (= 5.2.3)
132
+ activerecord (= 5.2.3)
133
+ activestorage (= 5.2.3)
134
+ activesupport (= 5.2.3)
135
135
  bundler (>= 1.3.0)
136
- railties (= 5.2.2)
136
+ railties (= 5.2.3)
137
137
  sprockets-rails (>= 2.0.0)
138
138
  rails-dom-testing (2.0.3)
139
139
  activesupport (>= 4.2.0)
140
140
  nokogiri (>= 1.6)
141
141
  rails-html-sanitizer (1.0.4)
142
142
  loofah (~> 2.2, >= 2.2.2)
143
- railties (5.2.2)
144
- actionpack (= 5.2.2)
145
- activesupport (= 5.2.2)
143
+ railties (5.2.3)
144
+ actionpack (= 5.2.3)
145
+ activesupport (= 5.2.3)
146
146
  method_source
147
147
  rake (>= 0.8.7)
148
148
  thor (>= 0.19.0, < 2.0)
@@ -168,14 +168,14 @@ GEM
168
168
  rspec-mocks (~> 3.8.0)
169
169
  rspec-support (~> 3.8.0)
170
170
  rspec-support (3.8.0)
171
- rubocop (0.63.1)
171
+ rubocop (0.66.0)
172
172
  jaro_winkler (~> 1.5.1)
173
173
  parallel (~> 1.10)
174
174
  parser (>= 2.5, != 2.5.1.1)
175
- powerpack (~> 0.1)
175
+ psych (>= 3.1.0)
176
176
  rainbow (>= 2.2.2, < 4.0)
177
177
  ruby-progressbar (~> 1.7)
178
- unicode-display_width (~> 1.4.0)
178
+ unicode-display_width (>= 1.4.0, < 1.6)
179
179
  rubocop-rspec (1.32.0)
180
180
  rubocop (>= 0.60.0)
181
181
  ruby-progressbar (1.10.0)
@@ -203,7 +203,7 @@ GEM
203
203
  tins (1.20.2)
204
204
  tzinfo (1.2.5)
205
205
  thread_safe (~> 0.1)
206
- unicode-display_width (1.4.1)
206
+ unicode-display_width (1.5.0)
207
207
  websocket-driver (0.7.0)
208
208
  websocket-extensions (>= 0.1.0)
209
209
  websocket-extensions (0.1.3)
@@ -224,4 +224,4 @@ DEPENDENCIES
224
224
  rubocop-rspec
225
225
 
226
226
  BUNDLED WITH
227
- 1.17.3
227
+ 2.0.1
@@ -18,7 +18,8 @@ class PushNotificationSender
18
18
  notification.receiver.device_ids.each do |device_id|
19
19
  fcm_client.send(message: message(device_id))
20
20
  rescue FirebaseCloudMessenger::Error
21
- next
21
+ job_class = Hertz::Fcm.deletion_job_class_name.safe_constantize
22
+ job_class.perform_later(device_id)
22
23
  end
23
24
 
24
25
  notification.mark_delivered_with(:fcm)
@@ -5,4 +5,5 @@ Hertz::Fcm.configure do |config|
5
5
  config.project_id = 'project_id'
6
6
  config.google_private_key = 'private_key'
7
7
  config.google_client_email = 'email'
8
+ config.deletion_job_class_name = 'DeleteTokenJob'
8
9
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hertz
4
4
  module Fcm
5
- VERSION = '1.1.4'
5
+ VERSION = '1.2.0'
6
6
  end
7
7
  end
data/lib/hertz/fcm.rb CHANGED
@@ -8,7 +8,8 @@ require 'hertz/fcm/version'
8
8
 
9
9
  module Hertz
10
10
  module Fcm
11
- mattr_accessor :project_id, :google_private_key, :google_client_email
11
+ mattr_accessor :project_id, :google_private_key, :google_client_email,
12
+ :deletion_job_class_name
12
13
 
13
14
  class << self
14
15
  def configure
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hertz-fcm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Petkovic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-06 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: firebase_cloud_messenger
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
- rubygems_version: 3.0.2
238
+ rubygems_version: 3.0.3
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: A Hertz courier for sending push notifications with Firebase Cloud Messaging.