google-api-fcm 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/apis/messages/classes.rb +10 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 765556ff5f9e71cf5e7153d95eef8db4caa71a4a
|
4
|
+
data.tar.gz: 93fc4304c7c1dad9122c41f5fc1d95406da6bda1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d1345dc8049f93178ee0f82e96cc2cd8a551b44bd26e90ec4a5b802f59df828db91a0d3063690f4e23dc5b06b2e9800d0fc762ed6399e14de884f5f279bee10
|
7
|
+
data.tar.gz: fbf2d2f02def69930942b9e7751acd33396da058aa93d9e06ab16d1debb880e447b77600f3ad7cdb8213a7d48b7d8902feba0e1efd22b643a2fae07120089192
|
@@ -11,17 +11,22 @@ module Google
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def initialize_build(**args)
|
14
|
-
notification
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
if args[:notification]
|
15
|
+
notification = Notification.new(
|
16
|
+
title: args[:notification][:title],
|
17
|
+
body: args[:notification][:body]
|
18
|
+
)
|
19
|
+
end
|
18
20
|
|
19
21
|
message_object_args = {
|
20
22
|
topic: args[:topic],
|
21
|
-
notification: notification,
|
22
23
|
data: args[:payload]
|
23
24
|
}
|
24
25
|
|
26
|
+
if notification
|
27
|
+
message_object_args[:notification] = notification
|
28
|
+
end
|
29
|
+
|
25
30
|
if args.key?(:webpush) && args[:webpush][:icon]
|
26
31
|
message_object_args[:webpush] = Webpush.new(args[:webpush])
|
27
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-api-fcm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Krigouzov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|