hertz-fcm 1.2.0 → 1.2.1
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 +4 -4
- data/Gemfile.lock +29 -31
- data/app/services/push_notification_sender.rb +1 -1
- data/lib/hertz/fcm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 36dcbc2471f55fc44be4a5a93be22c32835bf4765fa2af8dcbbbb3146485596a
|
|
4
|
+
data.tar.gz: 7b2991e6bc01bd36cfb391e68d335d5a9ce96937f1b6724b71de503795e1bafa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e4703456bd3d835323891c85fe0775613bb9242037b6065c5019d27da779d33addc800e8a5a54383475c35c8d4cd44ab140407fd714911957043b4b6e7eec80
|
|
7
|
+
data.tar.gz: d0a772e453b7d799ede459ea2e9f42831d551825902728d9a7f0c703d06838d8b7b1a7077d4a675d14a988986c220d19af9c540dc4fc168271f6b7521c2e7aa9
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
hertz-fcm (1.1
|
|
4
|
+
hertz-fcm (1.2.1)
|
|
5
5
|
firebase_cloud_messenger (>= 0.4.0, < 1)
|
|
6
6
|
hertz (~> 2.0)
|
|
7
7
|
rails (>= 4.0.0, < 6)
|
|
@@ -56,20 +56,20 @@ GEM
|
|
|
56
56
|
ast (2.4.0)
|
|
57
57
|
builder (3.2.3)
|
|
58
58
|
concurrent-ruby (1.1.5)
|
|
59
|
-
coveralls (0.8.
|
|
59
|
+
coveralls (0.8.23)
|
|
60
60
|
json (>= 1.8, < 3)
|
|
61
61
|
simplecov (~> 0.16.1)
|
|
62
62
|
term-ansicolor (~> 1.3)
|
|
63
|
-
thor (
|
|
63
|
+
thor (>= 0.19.4, < 2.0)
|
|
64
64
|
tins (~> 1.6)
|
|
65
65
|
crass (1.0.4)
|
|
66
66
|
diff-lcs (1.3)
|
|
67
|
-
docile (1.3.
|
|
67
|
+
docile (1.3.2)
|
|
68
68
|
erubi (1.8.0)
|
|
69
69
|
factory_bot (5.0.2)
|
|
70
70
|
activesupport (>= 4.2.0)
|
|
71
|
-
factory_bot_rails (5.0.
|
|
72
|
-
factory_bot (~> 5.0.
|
|
71
|
+
factory_bot_rails (5.0.2)
|
|
72
|
+
factory_bot (~> 5.0.2)
|
|
73
73
|
railties (>= 4.2.0)
|
|
74
74
|
faraday (0.15.4)
|
|
75
75
|
multipart-post (>= 1.2, < 3)
|
|
@@ -89,11 +89,11 @@ GEM
|
|
|
89
89
|
rails (>= 4.0.0, < 6.0.0)
|
|
90
90
|
i18n (1.6.0)
|
|
91
91
|
concurrent-ruby (~> 1.0)
|
|
92
|
-
jaro_winkler (1.5.
|
|
92
|
+
jaro_winkler (1.5.3)
|
|
93
93
|
json (2.2.0)
|
|
94
94
|
json-schema (2.8.1)
|
|
95
95
|
addressable (>= 2.4)
|
|
96
|
-
jwt (2.1
|
|
96
|
+
jwt (2.2.1)
|
|
97
97
|
loofah (2.2.3)
|
|
98
98
|
crass (~> 1.0.2)
|
|
99
99
|
nokogiri (>= 1.5.9)
|
|
@@ -108,18 +108,17 @@ GEM
|
|
|
108
108
|
mini_portile2 (2.4.0)
|
|
109
109
|
minitest (5.11.3)
|
|
110
110
|
multi_json (1.13.1)
|
|
111
|
-
multipart-post (2.
|
|
111
|
+
multipart-post (2.1.1)
|
|
112
112
|
nio4r (2.3.1)
|
|
113
|
-
nokogiri (1.10.
|
|
113
|
+
nokogiri (1.10.3)
|
|
114
114
|
mini_portile2 (~> 2.4.0)
|
|
115
|
-
os (1.0.
|
|
116
|
-
parallel (1.
|
|
117
|
-
parser (2.6.
|
|
115
|
+
os (1.0.1)
|
|
116
|
+
parallel (1.17.0)
|
|
117
|
+
parser (2.6.3.0)
|
|
118
118
|
ast (~> 2.4.0)
|
|
119
119
|
pg (1.1.4)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
rack (2.0.6)
|
|
120
|
+
public_suffix (3.1.1)
|
|
121
|
+
rack (2.0.7)
|
|
123
122
|
rack-test (1.1.0)
|
|
124
123
|
rack (>= 1.0, < 3)
|
|
125
124
|
rails (5.2.3)
|
|
@@ -151,12 +150,12 @@ GEM
|
|
|
151
150
|
rspec-activejob (0.6.1)
|
|
152
151
|
activejob (>= 4.2)
|
|
153
152
|
rspec-mocks
|
|
154
|
-
rspec-core (3.8.
|
|
153
|
+
rspec-core (3.8.2)
|
|
155
154
|
rspec-support (~> 3.8.0)
|
|
156
|
-
rspec-expectations (3.8.
|
|
155
|
+
rspec-expectations (3.8.4)
|
|
157
156
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
158
157
|
rspec-support (~> 3.8.0)
|
|
159
|
-
rspec-mocks (3.8.
|
|
158
|
+
rspec-mocks (3.8.1)
|
|
160
159
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
161
160
|
rspec-support (~> 3.8.0)
|
|
162
161
|
rspec-rails (3.8.2)
|
|
@@ -167,18 +166,17 @@ GEM
|
|
|
167
166
|
rspec-expectations (~> 3.8.0)
|
|
168
167
|
rspec-mocks (~> 3.8.0)
|
|
169
168
|
rspec-support (~> 3.8.0)
|
|
170
|
-
rspec-support (3.8.
|
|
171
|
-
rubocop (0.
|
|
169
|
+
rspec-support (3.8.2)
|
|
170
|
+
rubocop (0.72.0)
|
|
172
171
|
jaro_winkler (~> 1.5.1)
|
|
173
172
|
parallel (~> 1.10)
|
|
174
|
-
parser (>= 2.
|
|
175
|
-
psych (>= 3.1.0)
|
|
173
|
+
parser (>= 2.6)
|
|
176
174
|
rainbow (>= 2.2.2, < 4.0)
|
|
177
175
|
ruby-progressbar (~> 1.7)
|
|
178
|
-
unicode-display_width (>= 1.4.0, < 1.
|
|
179
|
-
rubocop-rspec (1.
|
|
176
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
|
177
|
+
rubocop-rspec (1.33.0)
|
|
180
178
|
rubocop (>= 0.60.0)
|
|
181
|
-
ruby-progressbar (1.10.
|
|
179
|
+
ruby-progressbar (1.10.1)
|
|
182
180
|
signet (0.11.0)
|
|
183
181
|
addressable (~> 2.3)
|
|
184
182
|
faraday (~> 0.9)
|
|
@@ -198,15 +196,15 @@ GEM
|
|
|
198
196
|
sprockets (>= 3.0.0)
|
|
199
197
|
term-ansicolor (1.7.1)
|
|
200
198
|
tins (~> 1.0)
|
|
201
|
-
thor (0.
|
|
199
|
+
thor (0.20.3)
|
|
202
200
|
thread_safe (0.3.6)
|
|
203
|
-
tins (1.20.
|
|
201
|
+
tins (1.20.3)
|
|
204
202
|
tzinfo (1.2.5)
|
|
205
203
|
thread_safe (~> 0.1)
|
|
206
|
-
unicode-display_width (1.
|
|
207
|
-
websocket-driver (0.7.
|
|
204
|
+
unicode-display_width (1.6.0)
|
|
205
|
+
websocket-driver (0.7.1)
|
|
208
206
|
websocket-extensions (>= 0.1.0)
|
|
209
|
-
websocket-extensions (0.1.
|
|
207
|
+
websocket-extensions (0.1.4)
|
|
210
208
|
|
|
211
209
|
PLATFORMS
|
|
212
210
|
ruby
|
|
@@ -17,7 +17,7 @@ class PushNotificationSender
|
|
|
17
17
|
|
|
18
18
|
notification.receiver.device_ids.each do |device_id|
|
|
19
19
|
fcm_client.send(message: message(device_id))
|
|
20
|
-
rescue FirebaseCloudMessenger::
|
|
20
|
+
rescue FirebaseCloudMessenger::NotFound
|
|
21
21
|
job_class = Hertz::Fcm.deletion_job_class_name.safe_constantize
|
|
22
22
|
job_class.perform_later(device_id)
|
|
23
23
|
end
|
data/lib/hertz/fcm/version.rb
CHANGED
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.2.
|
|
4
|
+
version: 1.2.1
|
|
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-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: firebase_cloud_messenger
|