fbase_auth 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fbase_auth/request.rb +5 -1
- data/lib/fbase_auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f56e5809ffaf868bfbb704750b144b28d66d80309e21b042d2419338c56b8c43
|
4
|
+
data.tar.gz: 83ddba831cca533f2ecc15d0e1cbd47274f41a20af53d2273a0f059de90725ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17324d6fa787084834e1becd705c0d67c862c462caf88d8c23450b92e5dd1d53cf68b6235f58acd1bde996009b276ce910c0a0708641497985d82ea06591d961
|
7
|
+
data.tar.gz: 85ba779ccfc1f23d1b53845c8006146c006bfd70e9212d1fc15f2bbf39fa568f75ad6b056170a1d52384c6c14730872c2f7901141ef89d16d351733f819106ef
|
data/Gemfile.lock
CHANGED
data/lib/fbase_auth/request.rb
CHANGED
@@ -5,9 +5,13 @@ module FbaseAuth::Request
|
|
5
5
|
url = "#{FbaseAuth.config.host}#{path}?key=#{FbaseAuth.config.api_key}"
|
6
6
|
response = HTTP.post url, json: payload
|
7
7
|
|
8
|
-
{
|
8
|
+
wrapper = {
|
9
9
|
code: response.code,
|
10
10
|
body: JSON.parse(response.to_s)
|
11
11
|
}
|
12
|
+
|
13
|
+
return wrapper if [200, 204].include? response.code.to_i
|
14
|
+
|
15
|
+
raise ArgumentError, wrapper
|
12
16
|
end
|
13
17
|
end
|
data/lib/fbase_auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fbase_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scotto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Firebase Authentication for Ruby
|
14
14
|
email:
|