frm_mercury 0.1.10 → 0.1.12

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: 2778de62cadb0b8d04bf25ff7e6393d9ea176af4ff7c9020873248753a861049
4
- data.tar.gz: 274b80655de5f8c454caa6ca3a309cc3323247f238006f9785a922961ab56edc
3
+ metadata.gz: 25b0beb355e952a1b6edeea58c4359e475f5ed8249a9fbbf64a341529b5b9e41
4
+ data.tar.gz: 0d5e07698c79cec78c0a6764e0492f92c0ae45f9e530803243a82896e2a92094
5
5
  SHA512:
6
- metadata.gz: ee8d4c476b0260b9aa86364b54dc63cb785c87c0066c19effb629e224a7c7aa78e7b461a732e819db65384ca38554d021ef60abff7567eb2ab30f84f38e5192a
7
- data.tar.gz: e84db29c713d0a02a63feeb4ccca36eddf3885ec5f1ca09f30d447e5a30d0a79e6b3ee94f04877fcb1be9a6cf2d76bd87f4ba10c5aa6dafcdf47b6a341785e87
6
+ metadata.gz: 6358aca4a185d91e2f30377e470de7488436be025d6a46937eed8138813823e63484d560c2bec1fd60197c0713387cc55a7c9718f8b1a727b0e4c6e80e4ab25f
7
+ data.tar.gz: 3076f5db46b442eee70179a352aed473d5153cb2718e6da3cee53c759a4da809179ef3b3a75de4e67c4552bd3c4592aac6b9da7e6206c831a5e8d78c250e88c6
@@ -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.12"
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.12
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.