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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f855c0c74114e8f6d0166a84007475ec645abbc35288da30cbdca1c9d01cb4d7
4
- data.tar.gz: c77012d34ab623ca225f7f00fed54f1391283a2ba6a0461af931e33fa7a658e1
3
+ metadata.gz: f56e5809ffaf868bfbb704750b144b28d66d80309e21b042d2419338c56b8c43
4
+ data.tar.gz: 83ddba831cca533f2ecc15d0e1cbd47274f41a20af53d2273a0f059de90725ab
5
5
  SHA512:
6
- metadata.gz: 783f520abded32bd221ebab8e8de2b16c2b2563e8af55fb4f11c6a84198e342ef2745e760241f11e6f71eeb92ce9d7c16526725b23c65b808dbbd2c570acd10b
7
- data.tar.gz: 7befc8fd0f1f0c48c3c20d4ae72817a349c1abf68636b3c682d53612d3a9551cdbdb6f1543dd12807c6ca958755e4ac3d5c932fa8a565611165094b5512d659c
6
+ metadata.gz: 17324d6fa787084834e1becd705c0d67c862c462caf88d8c23450b92e5dd1d53cf68b6235f58acd1bde996009b276ce910c0a0708641497985d82ea06591d961
7
+ data.tar.gz: 85ba779ccfc1f23d1b53845c8006146c006bfd70e9212d1fc15f2bbf39fa568f75ad6b056170a1d52384c6c14730872c2f7901141ef89d16d351733f819106ef
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fbase_auth (0.1.3)
4
+ fbase_auth (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FbaseAuth
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Firebase Authentication for Ruby
14
14
  email: