frm_mercury 0.1.9 → 0.1.10

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: ebfb7763ddf2a6114279658980116c864136c8c9c0f78a3732370cfc91d6ead6
4
- data.tar.gz: 4cdbaba73afb38bba1d13bfa5ae96a3a720e9fd2ba229e2d24599897359e85d1
3
+ metadata.gz: 2778de62cadb0b8d04bf25ff7e6393d9ea176af4ff7c9020873248753a861049
4
+ data.tar.gz: 274b80655de5f8c454caa6ca3a309cc3323247f238006f9785a922961ab56edc
5
5
  SHA512:
6
- metadata.gz: d6013d0e237b1f499443897ea7ada85580c7562b0e3136f354f3ad38814dcf0553fdf3b96626986f63259cee7d572b979ad4ea5e65ebe6881784c44f043f0c95
7
- data.tar.gz: 9d341bf225e1ef7ab871cc3b7c0abfed4ab414c6bc86f5067dee03f9c5aae7c240db56e5fee769634ac59eba1e97cf39adcfc327a2c9ae4bddd5ad88fb7f24b1
6
+ metadata.gz: ee8d4c476b0260b9aa86364b54dc63cb785c87c0066c19effb629e224a7c7aa78e7b461a732e819db65384ca38554d021ef60abff7567eb2ab30f84f38e5192a
7
+ data.tar.gz: e84db29c713d0a02a63feeb4ccca36eddf3885ec5f1ca09f30d447e5a30d0a79e6b3ee94f04877fcb1be9a6cf2d76bd87f4ba10c5aa6dafcdf47b6a341785e87
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # FrmMercury
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/frm_mercury`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Send Firebase Cloud Push Messages easy and simple for Android and iOS.
6
4
 
7
5
  ## Installation
8
6
 
@@ -35,21 +33,3 @@ Then to send a message...
35
33
  ```ruby
36
34
  FrmMercury::Sender.send("Device FCM token as String or many tokens as Array", "Some title", "Some body message", "sound.mp3 (Leave empty for default)", "Hash in case you want to send extra info (optional)")
37
35
  ```
38
-
39
- ## Development
40
-
41
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
42
-
43
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
44
-
45
- ## Contributing
46
-
47
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/frm_mercury. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
48
-
49
- ## License
50
-
51
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
-
53
- ## Code of Conduct
54
-
55
- Everyone interacting in the FrmMercury project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/frm_mercury/blob/master/CODE_OF_CONDUCT.md).
@@ -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)
3
+ def self.send(to=nil, title=nil, body=nil, sound=nil, data=nil, extra={})
4
4
  config = FrmMercury.configuration
5
5
 
6
6
  require 'uri'
@@ -25,7 +25,9 @@ module FrmMercury
25
25
  }
26
26
  },
27
27
  "data": data
28
- }.to_json
28
+ }
29
+
30
+ params = params.merge(extra).to_json
29
31
 
30
32
  uri = URI.parse("https://fcm.googleapis.com/fcm/send")
31
33
  https = Net::HTTP.new(uri.host,uri.port)
@@ -1,3 +1,3 @@
1
1
  module FrmMercury
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - DEVPENGUIN
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-08 00:00:00.000000000 Z
11
+ date: 2021-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []
81
- rubyforge_project:
82
- rubygems_version: 2.7.3
81
+ rubygems_version: 3.1.2
83
82
  signing_key:
84
83
  specification_version: 4
85
84
  summary: Send Firebase Cloud Push Messages easy and simple for Android and iOS.