fcm 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -10
- data/fcm.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d8fdd71d844f8b1d91cb5766d8eed454a169cc2656bdd23e3f322f668f7bdb5
|
4
|
+
data.tar.gz: 3b5993317f23cf026391b3dfe894bcc91343489dbf623bfbce884d8bb6d401d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39012e9f9197305330a3fddc2af38315be9a42ab7233043efa26ae7e6892cd5f7d197cc9eba5fbbeeae0d24fe93958a55a47f9cada23b345e14781d4fd746467
|
7
|
+
data.tar.gz: fa8d086deaec08496a9d8ca6f31328ec8ececb44d99b55c6512cfc8a58410f5c4add7e65efae1c9820ca4bb1575998a22d41148b0747fdb2f2aa08b9a76bcdff
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Firebase Cloud Messaging (FCM) for Android and iOS
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/fcm.svg)](http://badge.fury.io/rb/fcm) [![Build Status](https://secure.travis-ci.org/
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/fcm.svg)](http://badge.fury.io/rb/fcm) [![Build Status](https://secure.travis-ci.org/decision-labs/fcm.svg?branch=master)](http://travis-ci.org/decision-labs/fcm)
|
4
4
|
|
5
5
|
The FCM gem lets your ruby backend send notifications to Android and iOS devices via [
|
6
6
|
Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging/).
|
@@ -20,7 +20,7 @@ gem 'fcm'
|
|
20
20
|
For Android you will need a device running 2.3 (or newer) that also have the Google Play Store app installed, or an emulator running Android 2.3 with Google APIs. iOS devices are also supported.
|
21
21
|
|
22
22
|
|
23
|
-
A version of supported Ruby, currently:
|
23
|
+
A version of supported Ruby, currently:
|
24
24
|
`ruby >= 2.4`
|
25
25
|
|
26
26
|
|
@@ -34,14 +34,10 @@ Example sending notifications:
|
|
34
34
|
require 'fcm'
|
35
35
|
|
36
36
|
fcm = FCM.new("my_server_key")
|
37
|
-
# you can set option parameters in here
|
38
|
-
# - all options are pass to HTTParty method arguments
|
39
|
-
# - ref: https://github.com/jnunemaker/httparty/blob/master/lib/httparty.rb#L29-L60
|
40
|
-
# fcm = FCM.new("my_server_key", timeout: 3)
|
41
37
|
|
42
38
|
registration_ids= ["12", "13"] # an array of one or more client registration tokens
|
43
39
|
|
44
|
-
# See https://firebase.google.com/docs/
|
40
|
+
# See https://firebase.google.com/docs/cloud-messaging/http-server-ref for all available options.
|
45
41
|
options = { "notification": {
|
46
42
|
"title": "Portugal vs. Denmark",
|
47
43
|
"body": "5 to 1"
|
@@ -206,9 +202,9 @@ Update version in `fcm.gemspec` with `VERSION` and update `README.md` `## Change
|
|
206
202
|
|
207
203
|
```bash
|
208
204
|
# set the version
|
209
|
-
# VERSION="1.0.
|
205
|
+
# VERSION="1.0.3"
|
210
206
|
gem build fcm.gemspec
|
211
|
-
gem push fcm-${VERSION}.gem
|
212
207
|
git tag -a v${VERSION} -m "Releasing version v${VERSION}"
|
213
208
|
git push origin --tags
|
214
|
-
|
209
|
+
gem push fcm-${VERSION}.gem
|
210
|
+
```
|
data/fcm.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fcm"
|
6
|
-
s.version = "1.0.
|
6
|
+
s.version = "1.0.3"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Kashif Rasul", "Shoaib Burq"]
|
9
9
|
s.email = ["kashif@spacialdb.com", "shoaib@spacialdb.com"]
|
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_runtime_dependency('faraday', '~> 1
|
22
|
+
s.add_runtime_dependency('faraday', '~> 1')
|
23
23
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fcm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kashif Rasul
|
8
8
|
- Shoaib Burq
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1
|
20
|
+
version: '1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1
|
27
|
+
version: '1'
|
28
28
|
description: fcm provides ruby bindings to Firebase Cloud Messaging (FCM) a cross-platform
|
29
29
|
messaging solution that lets you reliably deliver messages and notifications at
|
30
30
|
no cost to Android, iOS or Web browsers.
|
@@ -50,7 +50,7 @@ homepage: https://github.com/spacialdb/fcm
|
|
50
50
|
licenses:
|
51
51
|
- MIT
|
52
52
|
metadata: {}
|
53
|
-
post_install_message:
|
53
|
+
post_install_message:
|
54
54
|
rdoc_options: []
|
55
55
|
require_paths:
|
56
56
|
- lib
|
@@ -65,8 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
|
-
rubygems_version: 3.
|
69
|
-
signing_key:
|
68
|
+
rubygems_version: 3.0.3
|
69
|
+
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: Reliably deliver messages and notifications via FCM
|
72
72
|
test_files:
|