firebase-auth 0.1.3 → 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
  SHA1:
3
- metadata.gz: 90249b8bdc44fbbc0d1e6e3ea81178e618efaeda
4
- data.tar.gz: 0fa9fb0240855838aa7ebf7451c9e0fe01f646a3
3
+ metadata.gz: 69126310ef50312d66754faa2c4849bd719c4575
4
+ data.tar.gz: 0711f7170840f113494f4811a1209f44b84471ef
5
5
  SHA512:
6
- metadata.gz: 4a8262e8cdfd4e3c569d1fb3d0752af656700ed24da8114c9920813692e777756c9b3114f110c40b53c86d9bff225561a0d7e512f459311a17f0177bb7e85e62
7
- data.tar.gz: e3e24518939c6d93fa42dfd42da1e72e6ab412be23534773ce5df7d834af769ab253f2641e4ca6a1757f85cbdd6b1ff2a317f6f4729a5e51b1118962ec5ce3d3
6
+ metadata.gz: 0c29f7cd4ac9bae0db41ca6782199e49fd7c1ffe29759a49305b8615b4243c96805c1ce8f01cb2d25dd0d7ed447f242eb11227bd6ec1a20d82e3e4c1a889e12b
7
+ data.tar.gz: 0ea5c56baf3c348a6b29fe8ec3f1b529c219e8764537da69d457cc9e70a70fbbc205dcb14c796fe5f5f963416ab89cfe8807f01830835e94cc345946d66ca3d2
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Firebase::Auth
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/firebase/auth`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Ruby wrapper for the Firebase REST API with Authentication.
6
4
 
7
5
  ## Installation
8
6
 
@@ -24,15 +22,9 @@ Or install it yourself as:
24
22
 
25
23
  TODO: Write usage instructions here
26
24
 
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
25
  ## Contributing
34
26
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/firebase-auth. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hungdh0x5e/firebase-auth. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
28
 
37
29
 
38
30
  ## License
@@ -1,7 +1,7 @@
1
1
  require 'firebase/auth/version'
2
2
  require 'firebase/auth/config'
3
- require 'firebase/configuration'
4
3
  require 'firebase/auth/response'
4
+ require 'firebase/configuration'
5
5
  require 'rest-client'
6
6
  require 'json'
7
7
 
@@ -20,7 +20,7 @@ module Firebase
20
20
  # Params:
21
21
  # @email: The email for the user to create.
22
22
  # @password: The password for the user to create.
23
- # Error:
23
+ # Error:
24
24
  # [EMAIL_EXISTS, OPERATION_NOT_ALLOWED, TOO_MANY_ATTEMPTS_TRY_LATER]
25
25
  # Referrences:
26
26
  # https://firebase.google.com/docs/reference/rest/auth/#section-create-email-password
@@ -16,11 +16,11 @@ module Firebase
16
16
  end
17
17
 
18
18
  def success?
19
- [200, 204].include? response.status
19
+ [200, 204].include? response.code
20
20
  end
21
21
 
22
22
  def code
23
- response.status
23
+ response.code
24
24
  end
25
25
 
26
26
  def headers
@@ -1,5 +1,5 @@
1
1
  module Firebase
2
2
  module Auth
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebase-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
  - Huy Hùng