fcmpush 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fcmpush/client.rb +6 -1
- data/lib/fcmpush/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 512cdee1b75c4be432fd3f1be390063aca41cb1e4483a25c43b1a09f4e81cd2e
|
4
|
+
data.tar.gz: '09fb06b6bcf93ccf00654e638a8b5c5f6473b1c4fac28a12b052ec735a219cf1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e58895de6a8f39f07a6cdbc795d499310d575a8c76b9d9522535fed3e6017accbe8b4ef89372d666a8f9ff0a8478b2595501aff29f843e29ba679cb2f4e0e1e9
|
7
|
+
data.tar.gz: e6bd28c37659008f8b312206700e6ebfa9eb4304b41934e7899a57943810b600b8bf3982f4b0e2b3faf438bc2340c3e282907551602c1daa170f050873e40cc4
|
data/lib/fcmpush/client.rb
CHANGED
@@ -25,8 +25,13 @@ module Fcmpush
|
|
25
25
|
|
26
26
|
def v1_authorize
|
27
27
|
@auth ||= if configuration.json_key_io
|
28
|
+
io = if configuration.json_key_io.respond_to?(:read)
|
29
|
+
configuration.json_key_io
|
30
|
+
else
|
31
|
+
File.open(configuration.json_key_io)
|
32
|
+
end
|
28
33
|
Google::Auth::ServiceAccountCredentials.make_creds(
|
29
|
-
json_key_io:
|
34
|
+
json_key_io: io,
|
30
35
|
scope: configuration.scope
|
31
36
|
)
|
32
37
|
else
|
data/lib/fcmpush/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fcmpush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- miyataka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: googleauth
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
121
|
+
rubygems_version: 3.0.3
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Firebase Cloud Messaging API wrapper for ruby, supports HTTP v1. And including
|