google-api-fcm 0.1.7 → 0.1.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aeaa1627cc9a30eebcc5328eed97d570982f8f0c1319b38ea28f3364b2fd8c36
4
- data.tar.gz: 6a03e0b7e8f39be08491c989bf3270a139d97b06818358f734cc63ec22c7c5f6
3
+ metadata.gz: ea1df71c2e949a83400d11c428d3647ca44cc984fb9c699c1dd991dddcd57855
4
+ data.tar.gz: b45d62ec42e96b7eb0c181ed8281b0f7dfcbe0db1fb51fdbeccf015a10b1edd4
5
5
  SHA512:
6
- metadata.gz: 5b544660ba2d650940916bf85872f8298112e7a2e0bdc06895158893b8b4075aa24739e69706c77440338c4a67bc36033902ba928f7494e07059b19ba660b9cd
7
- data.tar.gz: 25991824a9311f0e1c63665c63e069f9100e06c163a3f08aae0af23bb4cd4d9065b66a7698741c190c12ecb6c9f6147173983a0654a6450e797424a918e07ee1
6
+ metadata.gz: 57dfc14e36e5c6643084a3d30eff775af304191fe884c970bf08b639e364d5411851c9ee47c2fcfcc651f68af5407549dd614a3a4b3bae318065cca50b573d91
7
+ data.tar.gz: 5df3fb384a948e0bd9dba67dfcf75e5f3b1235e8826793f5c8cb02b53d0960acb7ced165899408ac48df9c2a8b89cce3dc3366251090dfd63a437933ab67f647
@@ -44,6 +44,10 @@ module Google
44
44
  message_object_args[:webpush] = args[:webpush]
45
45
  end
46
46
 
47
+ if args.key?(:fcm_options)
48
+ message_object_args[:fcm_options] = args[:fcm_options]
49
+ end
50
+
47
51
  if args.key?(:extra)
48
52
  message_object_args[:extra] = args[:extra]
49
53
  end
@@ -70,6 +74,7 @@ module Google
70
74
  attr_accessor :android
71
75
  attr_accessor :apns
72
76
  attr_accessor :webpush
77
+ attr_accessor :fcm_options
73
78
 
74
79
  def initialize(**args)
75
80
  update!(**args)
@@ -93,6 +98,7 @@ module Google
93
98
  @android = args[:android] if args.key?(:android)
94
99
  @apns = args[:apns] if args.key?(:apns)
95
100
  @webpush = args[:webpush] if args.key?(:webpush)
101
+ @fcm_options = args[:fcm_options] if args.key?(:fcm_options)
96
102
  end
97
103
  end
98
104
 
@@ -42,6 +42,7 @@ module Google
42
42
  hash :android, as: 'android'
43
43
  hash :apns, as: 'apns'
44
44
  hash :webpush, as: 'webpush'
45
+ hash :fcm_options, as: 'fcm_options'
45
46
  end
46
47
  end
47
48
 
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Krigouzov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-04 00:00:00.000000000 Z
11
+ date: 2020-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -54,8 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  requirements: []
57
- rubyforge_project:
58
- rubygems_version: 2.7.6
57
+ rubygems_version: 3.0.3
59
58
  signing_key:
60
59
  specification_version: 4
61
60
  summary: Client for accessing Firebase Cloud Messaging APIs