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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9cd6eef6540ebc26b483f24558870bfd8eecb97f479611519ce4550483336d0
4
- data.tar.gz: 6a137e1f554500d626f12e68b7a9c6734ebd0e537db27f07155f6d8c9baf5c94
3
+ metadata.gz: 512cdee1b75c4be432fd3f1be390063aca41cb1e4483a25c43b1a09f4e81cd2e
4
+ data.tar.gz: '09fb06b6bcf93ccf00654e638a8b5c5f6473b1c4fac28a12b052ec735a219cf1'
5
5
  SHA512:
6
- metadata.gz: 789a5bdf88fc4ce1f8bdf4289da4cdb4da6f58ee87aa0531f2e5c3d6b82ca7ab2293ff5155725c589f1db554c9646bfced65de0010bc31c3fcb8de7ae37a2b81
7
- data.tar.gz: 3c5af92191e371c1beb2501dfef07cdf122ae41512937fbc8a1154f7d81aa94e2a72351d1544c6210636aaab11126015dd4b7d8b1bda1a32bed1c560b01c9a62
6
+ metadata.gz: e58895de6a8f39f07a6cdbc795d499310d575a8c76b9d9522535fed3e6017accbe8b4ef89372d666a8f9ff0a8478b2595501aff29f843e29ba679cb2f4e0e1e9
7
+ data.tar.gz: e6bd28c37659008f8b312206700e6ebfa9eb4304b41934e7899a57943810b600b8bf3982f4b0e2b3faf438bc2340c3e282907551602c1daa170f050873e40cc4
@@ -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: File.open(configuration.json_key_io),
34
+ json_key_io: io,
30
35
  scope: configuration.scope
31
36
  )
32
37
  else
@@ -1,3 +1,3 @@
1
1
  module Fcmpush
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
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.1
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-01 00:00:00.000000000 Z
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.1.2
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