firebase-admin-sdk 0.3.0 → 0.3.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/lib/firebase/admin/messaging/multicast_message.rb +17 -1
- data/lib/firebase/admin/version.rb +1 -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: 556dcbf8f7adfc48f4f7f84802316f33a501c0fa546ee94b10002ace197da612
|
|
4
|
+
data.tar.gz: a4b82ab80e3799d6d1ee49a9575a7b3808ebb21b98717b44aca2735980dd177a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: faf5476494b2286015ad38d6026b7bb112007fce730955d4c69d8cc71808f936e7c763620933c5215125e0d4fe1395bfbd2dcccbcc9ad454ebdd3b9a9c7e5f9c
|
|
7
|
+
data.tar.gz: 3d7eb689e309fc9b8aa939a666a84c1cbf0c43e0469964f8f9d95758a746fb6c7e286d22bf167cda448b71bb055863b760cb0cb616e91edbbe73eb125df386f8
|
|
@@ -30,6 +30,15 @@ module Firebase
|
|
|
30
30
|
# Registration token of the device to which the message should be sent (optional).
|
|
31
31
|
attr_accessor :tokens
|
|
32
32
|
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
# Name of the FCM topic to which the message should be sent (optional). Topic name may contain the `/topics/`
|
|
35
|
+
# prefix.
|
|
36
|
+
attr_accessor :topic
|
|
37
|
+
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
# The FCM condition to which the message should be sent (optional).
|
|
40
|
+
attr_accessor :condition
|
|
41
|
+
|
|
33
42
|
# Initializes a {Message}.
|
|
34
43
|
#
|
|
35
44
|
# @param [Hash<String, String>, nil] data
|
|
@@ -44,13 +53,20 @@ module Firebase
|
|
|
44
53
|
# An {FCMOptions} (optional).
|
|
45
54
|
# @param [Array<String>, nil] tokens
|
|
46
55
|
# A registration token of the device to send the message to (optional).
|
|
56
|
+
# @param [String, nil] topic
|
|
57
|
+
# The name of the FCM topic to send the message to (optional).
|
|
58
|
+
# The topic name may contain the `/topics/` prefix.
|
|
59
|
+
# @param [String, nil] condition
|
|
60
|
+
# The FCM condition to which the message should be sent (optional)
|
|
47
61
|
def initialize(
|
|
48
62
|
data: nil,
|
|
49
63
|
notification: nil,
|
|
50
64
|
android: nil,
|
|
51
65
|
apns: nil,
|
|
52
66
|
fcm_options: nil,
|
|
53
|
-
tokens: nil
|
|
67
|
+
tokens: nil,
|
|
68
|
+
topic: nil,
|
|
69
|
+
condition: nil
|
|
54
70
|
)
|
|
55
71
|
self.data = data
|
|
56
72
|
self.notification = notification
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: firebase-admin-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tariq Zaid
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: googleauth
|
|
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
263
263
|
- !ruby/object:Gem::Version
|
|
264
264
|
version: '0'
|
|
265
265
|
requirements: []
|
|
266
|
-
rubygems_version: 3.4.
|
|
266
|
+
rubygems_version: 3.4.21
|
|
267
267
|
signing_key:
|
|
268
268
|
specification_version: 4
|
|
269
269
|
summary: Firebase Admin SDK for Ruby
|