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 +4 -4
- data/README.md +1 -21
- data/lib/frm_mercury/sender.rb +4 -2
- data/lib/frm_mercury/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2778de62cadb0b8d04bf25ff7e6393d9ea176af4ff7c9020873248753a861049
|
4
|
+
data.tar.gz: 274b80655de5f8c454caa6ca3a309cc3323247f238006f9785a922961ab56edc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee8d4c476b0260b9aa86364b54dc63cb785c87c0066c19effb629e224a7c7aa78e7b461a732e819db65384ca38554d021ef60abff7567eb2ab30f84f38e5192a
|
7
|
+
data.tar.gz: e84db29c713d0a02a63feeb4ccca36eddf3885ec5f1ca09f30d447e5a30d0a79e6b3ee94f04877fcb1be9a6cf2d76bd87f4ba10c5aa6dafcdf47b6a341785e87
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# FrmMercury
|
2
2
|
|
3
|
-
|
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).
|
data/lib/frm_mercury/sender.rb
CHANGED
@@ -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
|
-
}
|
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)
|
data/lib/frm_mercury/version.rb
CHANGED
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.
|
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:
|
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
|
-
|
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.
|