firebase-ruby-client 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7917cdc8b8ed86dafd75ef4a250794c931e9734ff0dd57a3deb89b047cedf253
|
4
|
+
data.tar.gz: 1d78872326403d00d1098d62a6e9719628572082e93c3b37205085ae0463a976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9835e3aca457faad0ce8c735381cacebae57925fe220a0b30953fc61d386b113e1c9220d72b8ae3b9e74f80d9d06798156be8078bbbd07b56c5e5118f53af08
|
7
|
+
data.tar.gz: 0ff7929316a21e09946e158d582eee34406478a902f5947a4f30d40e53127de166e0436361dd893c9e5d111ca59d7e43c1f990887c9c85113279b9d2c839840b
|
data/lib/firebase-ruby-client.rb
CHANGED
@@ -4,6 +4,11 @@ class FirebaseApi
|
|
4
4
|
BASE_URL = 'https://identitytoolkit.googleapis.com/v1/accounts'
|
5
5
|
|
6
6
|
def self.sign_up(email, password)
|
7
|
-
responce = HTTParty.post("#{BASE_URL}:signUp?key=#{ENV['
|
7
|
+
responce = HTTParty.post("#{BASE_URL}:signUp?key=#{ENV['FIREBASE_API_KEY']}", body: { email: email, password: password})
|
8
8
|
end
|
9
|
+
|
10
|
+
def self.sign_in(email, password)
|
11
|
+
responce = HTTParty.post("#{BASE_URL}:signInWithPassword?key=#{ENV['FIREBASE_API_KEY']}", body: { email: email, password: password})
|
12
|
+
end
|
13
|
+
|
9
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firebase-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Zain
|
@@ -10,7 +10,8 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: it is simple ruby client to perfom sign up and sign in with firebase,
|
14
|
+
It will have more features comming soon
|
14
15
|
email:
|
15
16
|
- ali.zain@zweidevs.com
|
16
17
|
executables: []
|