omniauth-free_agent 0.2.0 → 0.3.0

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: 000aa87be94113e3bb658048acec7ad00a95388e425537ac759dd26204ec3b94
4
- data.tar.gz: e016d5c740beb7a3847a6d79f5f911f4ac0f70e24ff59c61398e012454e8f67f
3
+ metadata.gz: 3c879db6832b5d305f8b98fc1cceca219e5f1cfa2578fffe239cfad1787b6f77
4
+ data.tar.gz: 193b1e0bddc547e6b3843bc1444334c14fa098f5f4eb110546711bfa5a22bdfb
5
5
  SHA512:
6
- metadata.gz: b271d408c76f8a62440f81ddaab3cfe8dab4932e5b892dbb13dfd4061141459862a7f69b5b87af68e814f4ccdc1df1922a202794b564c85bfad9890fb31aea2e
7
- data.tar.gz: c1724133915a477c7f5c1f898064d97e64ba9eac55080848d52327c6e185296ae976070e7be650f280fff4d5d1d1f1253fa2db52bbded522bc5593ca4f15f8f9
6
+ metadata.gz: 2c2ecdb8a0b9b94b155aee617190e50370345494cc5612973eb617eb74fa106728c7e283283c9e70981407898efd5fa7822e17379bb8172b76dc2f856c502b75
7
+ data.tar.gz: 75c1857822dda93a9658e0a9b05d34aa51aabe86a2344572289bb4478b302169f79905d0d73a34139976ccaac5a9afa4b605a07d34755b1532acccb003417d22
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module FreeAgent
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
@@ -14,7 +14,7 @@ module OmniAuth
14
14
  }
15
15
 
16
16
  uid do
17
- user_info["url"]
17
+ user_info["url"].split("/").last.to_i
18
18
  end
19
19
 
20
20
  info do
@@ -33,11 +33,13 @@ module OmniAuth
33
33
  end
34
34
 
35
35
  def user_info
36
- @user_info ||= access_token.get("/v2/users/me").parsed["user"]
36
+ @user_info ||= access_token.get("/v2/users/me").parsed
37
+ @user_info["user"] || {}
37
38
  end
38
39
 
39
40
  def company_info
40
41
  @company_info ||= access_token.get("/v2/company").parsed
42
+ @company_info["company"] || {}
41
43
  end
42
44
 
43
45
  def callback_url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-free_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry