firebase_token_authentication 0.1.0 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7f7877cad4aaaf09bae3c34d79f54012e7632e2b16c49611be5c82a55835877
4
- data.tar.gz: 87d426d5306669f49c302da9cea68823fa2fde55956550798d1936899eacba3b
3
+ metadata.gz: 46b815bea1125de46657346311dcebb824599311002a855b01c1f547e3fa7ebc
4
+ data.tar.gz: cd5a9fb3d6cae10429b344426909f143706a1c9d607a8b9b69d4d9dcc066e439
5
5
  SHA512:
6
- metadata.gz: 0a19e9964b7f4457b008ee2bbf062819d18ef07f7e2b5e284013086105382b60d1a6fa548189965ea82aecb00ad2cc31afbbff4d5cb34d9122fed47d73cbc61c
7
- data.tar.gz: 9e2195a840f0ca288d52d4dfb6e166e250b1d29c3652020869ab0267d9e6cb27c2525775353ad942d424b401705fc94eeb6ed966b1982bbec260a9379dc7cd63
6
+ metadata.gz: 3be745baa590030ed8de336a11879a3f99afbe7da023af3a8242c3a4370b814edd36f36c2e0aa060535100158aaadd20c1117a287b72682bd21fb837f6e96f37
7
+ data.tar.gz: b29b18965dfa204ba17f6f32e88254c1a8dee1b049723bf8836977367af32f10a5e65148f16bbf6250fe1b2f2b591c6e7b1d357ac0048d9cbea6e58ee2f271e4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- firebase_auth (0.1.0)
4
+ firebase_token_authentication (0.1.1)
5
5
  faraday
6
6
  faraday-http-cache
7
7
  jwt
@@ -71,7 +71,7 @@ PLATFORMS
71
71
 
72
72
  DEPENDENCIES
73
73
  debug
74
- firebase_auth!
74
+ firebase_token_authentication!
75
75
  rake (~> 13.0)
76
76
  rspec (~> 3.0)
77
77
  rubocop (~> 1.21)
@@ -2,11 +2,12 @@
2
2
 
3
3
  module FirebaseTokenAuthentication
4
4
  class Configuration
5
- attr_accessor :cache_store, :firebase_project_id
5
+ attr_accessor :cache_store, :firebase_project_id, :logger
6
6
 
7
7
  def initialize
8
8
  @cache_store = nil
9
9
  @firebase_project_id = nil
10
+ @logger = nil
10
11
  end
11
12
  end
12
13
  end
@@ -16,7 +16,11 @@ module FirebaseTokenAuthentication
16
16
 
17
17
  def fetch_certificates
18
18
  client = Faraday.new do |builder|
19
- builder.use Faraday::HttpCache, store: FirebaseTokenAuthentication.config.cache_store
19
+ builder.use Faraday::HttpCache,
20
+ store: FirebaseTokenAuthentication.config.cache_store,
21
+ logger: FirebaseTokenAuthentication.config.logger
22
+
23
+ builder.adapter Faraday.default_adapter
20
24
  end
21
25
 
22
26
  response = client.get(GOOGLE_CERT_URL, {}, { "Accept" => "application/json" })
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FirebaseTokenAuthentication
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebase_token_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Fuller