firebase-admin-sdk 0.3.0 → 0.3.1

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: 9cab514afaf405f5f2d4ca06543879990bdf99a66e0818ace5bff7cb68eddd92
4
- data.tar.gz: 8ae6de14035dff8fc6909ce0767b59cb9d21441729e566fc62a5d092ca3a7d00
3
+ metadata.gz: 556dcbf8f7adfc48f4f7f84802316f33a501c0fa546ee94b10002ace197da612
4
+ data.tar.gz: a4b82ab80e3799d6d1ee49a9575a7b3808ebb21b98717b44aca2735980dd177a
5
5
  SHA512:
6
- metadata.gz: e62edc66ec1e58e2ea9bc6a4430bd8de62d02ec396ec657f65c03088ee27a63ab19bd12da83dcf1d556ba230323359b8d82e3543214476029a8d75e62f78f03b
7
- data.tar.gz: bed9f27482d5f192b27d6f7de2ab22cc62644f805ce6e78592c2e42c1ecb9d645630646740b31a33df86e7fffc8d23ad478d011d183589ad21585de256d6aefc
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Firebase
4
4
  module Admin
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
7
7
  end
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.0
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-10-19 00:00:00.000000000 Z
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.10
266
+ rubygems_version: 3.4.21
267
267
  signing_key:
268
268
  specification_version: 4
269
269
  summary: Firebase Admin SDK for Ruby