frm_mercury 0.1.10 → 0.1.11

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: 2778de62cadb0b8d04bf25ff7e6393d9ea176af4ff7c9020873248753a861049
4
- data.tar.gz: 274b80655de5f8c454caa6ca3a309cc3323247f238006f9785a922961ab56edc
3
+ metadata.gz: 531047965d04bc7cb0149556745a6c11dc1137b422ce4f7caaa5410b4610f606
4
+ data.tar.gz: 122042c9da4111e60dcbe6224b75e8d1f833bd30db4decf4d39bc35d0119bcfa
5
5
  SHA512:
6
- metadata.gz: ee8d4c476b0260b9aa86364b54dc63cb785c87c0066c19effb629e224a7c7aa78e7b461a732e819db65384ca38554d021ef60abff7567eb2ab30f84f38e5192a
7
- data.tar.gz: e84db29c713d0a02a63feeb4ccca36eddf3885ec5f1ca09f30d447e5a30d0a79e6b3ee94f04877fcb1be9a6cf2d76bd87f4ba10c5aa6dafcdf47b6a341785e87
6
+ metadata.gz: a7890429bedbb0785233b23a8bf222e841e7f407045cacceae658b41dfa128964507e75e27f681d86f4d8b6d2a2a9f72519c7f5b82c51ad259f7ed9af22a7680
7
+ data.tar.gz: 8e45381b9a53b60ce2c55d063baf54984f8f993d6b8cd8e306bf098f9cf31cf92dad5e39759542732cc23a4b735a2ae75c27757302fad8957df1068db61f2b25
@@ -1,6 +1,6 @@
1
1
  module FrmMercury
2
2
  class Sender
3
- def self.send(to=nil, title=nil, body=nil, sound=nil, data=nil, extra={})
3
+ def self.send(to=nil, title=nil, body=nil, subtitle=nil, icon=nil, sound=nil, data=nil, extra={})
4
4
  config = FrmMercury.configuration
5
5
 
6
6
  require 'uri'
@@ -27,6 +27,14 @@ module FrmMercury
27
27
  "data": data
28
28
  }
29
29
 
30
+ if subtitle.nil?
31
+ params["notification"]["subtitle"] = subtitle
32
+ end
33
+
34
+ if icon.nil?
35
+ params["notification"]["icon"] = icon
36
+ end
37
+
30
38
  params = params.merge(extra).to_json
31
39
 
32
40
  uri = URI.parse("https://fcm.googleapis.com/fcm/send")
@@ -1,3 +1,3 @@
1
1
  module FrmMercury
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frm_mercury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - DEVPENGUIN
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-22 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []
81
- rubygems_version: 3.1.2
81
+ rubygems_version: 3.4.19
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: Send Firebase Cloud Push Messages easy and simple for Android and iOS.