firebase-ruby-client 0.1.0 → 0.1.1

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: cc08cbd86a92ae0a8c479cffdb5bc60089423a9de2eb5cff6dff9e2f7d02be22
4
- data.tar.gz: b4bbf844f84c8e5b8a5dd865293fd9738aa615598a8c86816895aaa18ef30a66
3
+ metadata.gz: 7917cdc8b8ed86dafd75ef4a250794c931e9734ff0dd57a3deb89b047cedf253
4
+ data.tar.gz: 1d78872326403d00d1098d62a6e9719628572082e93c3b37205085ae0463a976
5
5
  SHA512:
6
- metadata.gz: 9b19b93460ef71e70c953ab5186762da2f2bdf84ab81301471c8296c0fb65ef49d63296c281d7b4ef9291e5929344dbd6af5503cc59a306693bd775e2f44e728
7
- data.tar.gz: 5d4017f5a2620995bc36185f8664819e3a892815b5b1ed76e46f01065401f8983849f5ebb84e2b75d8840cb4ba34271b74150a09a92fb849d362ee9862e3075d
6
+ metadata.gz: b9835e3aca457faad0ce8c735381cacebae57925fe220a0b30953fc61d386b113e1c9220d72b8ae3b9e74f80d9d06798156be8078bbbd07b56c5e5118f53af08
7
+ data.tar.gz: 0ff7929316a21e09946e158d582eee34406478a902f5947a4f30d40e53127de166e0436361dd893c9e5d111ca59d7e43c1f990887c9c85113279b9d2c839840b
@@ -1,6 +1,12 @@
1
1
  require 'services/firebase_authenticatio.rb'
2
2
  class Firebase
3
+
3
4
  def self.sign_up(email, password)
4
5
  FirebaseApi.sign_up(email, password)
5
6
  end
7
+
8
+ def self.sign_in(email, password)
9
+ FirebaseApi.sign_in(email, password)
10
+ end
11
+
6
12
  end
@@ -1,7 +1,7 @@
1
1
  module Firebase
2
2
  module Ruby
3
3
  module Client
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -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['WEED_GRAM_FIREBASE_API_KEY']}", body: { email: email, password: password})
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.0
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: []