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 +4 -4
- data/Gemfile.lock +52 -52
- data/app/services/push_notification_sender.rb +2 -1
- data/lib/generators/hertz/fcm/templates/initializer.rb +1 -0
- data/lib/hertz/fcm/version.rb +1 -1
- data/lib/hertz/fcm.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450482feeaf438c98ef26dd1e6f7e77033ba0996e6addfdbf38649afd89bc303
|
4
|
+
data.tar.gz: 505d83fa8eb10c250d98960d998742bb3c45dc95ba8fa9fb642a3536c9bd2374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
13
|
-
actionpack (= 5.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.
|
17
|
-
actionpack (= 5.2.
|
18
|
-
actionview (= 5.2.
|
19
|
-
activejob (= 5.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.
|
23
|
-
actionview (= 5.2.
|
24
|
-
activesupport (= 5.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.
|
30
|
-
activesupport (= 5.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.
|
36
|
-
activesupport (= 5.2.
|
35
|
+
activejob (5.2.3)
|
36
|
+
activesupport (= 5.2.3)
|
37
37
|
globalid (>= 0.3.6)
|
38
|
-
activemodel (5.2.
|
39
|
-
activesupport (= 5.2.
|
40
|
-
activerecord (5.2.
|
41
|
-
activemodel (= 5.2.
|
42
|
-
activesupport (= 5.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.
|
45
|
-
actionpack (= 5.2.
|
46
|
-
activerecord (= 5.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.
|
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.
|
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.
|
69
|
+
factory_bot (5.0.2)
|
70
70
|
activesupport (>= 4.2.0)
|
71
|
-
factory_bot_rails (5.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.
|
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.
|
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.
|
90
|
+
i18n (1.6.0)
|
91
91
|
concurrent-ruby (~> 1.0)
|
92
92
|
jaro_winkler (1.5.2)
|
93
|
-
json (2.
|
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.
|
113
|
+
nokogiri (1.10.2)
|
114
114
|
mini_portile2 (~> 2.4.0)
|
115
115
|
os (1.0.0)
|
116
|
-
parallel (1.
|
117
|
-
parser (2.6.
|
116
|
+
parallel (1.16.0)
|
117
|
+
parser (2.6.2.0)
|
118
118
|
ast (~> 2.4.0)
|
119
119
|
pg (1.1.4)
|
120
|
-
|
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.
|
126
|
-
actioncable (= 5.2.
|
127
|
-
actionmailer (= 5.2.
|
128
|
-
actionpack (= 5.2.
|
129
|
-
actionview (= 5.2.
|
130
|
-
activejob (= 5.2.
|
131
|
-
activemodel (= 5.2.
|
132
|
-
activerecord (= 5.2.
|
133
|
-
activestorage (= 5.2.
|
134
|
-
activesupport (= 5.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.
|
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.
|
144
|
-
actionpack (= 5.2.
|
145
|
-
activesupport (= 5.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.
|
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
|
-
|
175
|
+
psych (>= 3.1.0)
|
176
176
|
rainbow (>= 2.2.2, < 4.0)
|
177
177
|
ruby-progressbar (~> 1.7)
|
178
|
-
unicode-display_width (
|
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.
|
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
|
-
|
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
|
-
|
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)
|
data/lib/hertz/fcm/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|