userbin 0.4.2 → 0.4.3

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
  SHA1:
3
- metadata.gz: eae191f76ab1ba6ce4587ba1b815e3d8fabeab8e
4
- data.tar.gz: f98042c6d8858878062c45851ca71489010c9738
3
+ metadata.gz: 054c324709315f71ea222d681cb6c2c504199ec4
4
+ data.tar.gz: 5e283d805bee17f01081990684fee42a6a8e2024
5
5
  SHA512:
6
- metadata.gz: 6cbc7e71ac93e2f9eb8061e206451c144f378e4ec82ced8b3fda8ec94bb30bf020f6d9b5540d1c4e4c986927f14ab1735d66c331197ca99064ebc4429bb29e3f
7
- data.tar.gz: c0b1103e93988a1a11ce39087be9ecda328824530403f77bf1fd20e68d2d343edd918aa4f7d6e883ea4f7cd959cf55d7175f03e88bff69e58755779b0c08f58b
6
+ metadata.gz: f767abb26fb9315a7c3e7224c185e58fc254f25330790b02650df6ff73dedcfa6e774d7b35b623e1b415a852d6e4c8f430a225ecda5032203c353731dddd087b
7
+ data.tar.gz: 5350abbbb4a1060ecc24cdab082eed44d17933a702e6b6a906b9e91f0659c46d2ae7095a5dddea6ce1a3d00a90c5a4a52b85564fbe070a56d7236b547a6e0f07
@@ -1,5 +1,9 @@
1
1
  module Userbin
2
2
  module AuthHelpers
3
+ def authenticate_user!
4
+ binding.pry
5
+ end
6
+
3
7
  def current_user
4
8
  Userbin.current_user
5
9
  end
@@ -1,3 +1,5 @@
1
+ require 'jwt'
2
+
1
3
  module Userbin
2
4
  def self.decode_jwt(jwt)
3
5
  JWT.decode(jwt, Userbin.config.api_secret)
@@ -1,3 +1,3 @@
1
1
  module Userbin
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: userbin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jwt
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.1.8
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.1.8
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement