omniauth-hubspot 0.0.14 → 0.0.15

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: 71664759e070d6a816ac84764686da2d8c017860
4
- data.tar.gz: d11f21c23410368a7cedad06ac98d7a3d61072a6
3
+ metadata.gz: 78a5a47e22c104047988a6e3d8e23cec22040eb9
4
+ data.tar.gz: c81863071a94edc7f9a133f33b11806c969d93aa
5
5
  SHA512:
6
- metadata.gz: a163b81249f93887969aaab7fa52181770d26604341965b2f53bc3349ba28e4fd364a6278467e48eb4206641217c95ef579ac075ef01c0346bdf4c2112ee0178
7
- data.tar.gz: 9e994600b51c40be147f3988bfef9fc48ea6abaf5ba53bf0115ffffa3318b7f8201ee89e6a5508da1038f6ec7919b0ba6cd1eb186aa4e0f149f9649760d850e2
6
+ metadata.gz: e3c0bf58cccbf636ad500f5852965c099072c853cc6226d2a6fe4c39da4d988fd8d445775a8a706de20304e3896734a135dc137d047c30e50775ac33c724e937
7
+ data.tar.gz: 4b629b446225b3e3b2c6891dfb48675182d08a03920fc63dab69c8f68cb462da5a49c2b71f9b7421ee8f105607fac5eaa2c36580c7328920227fd3ea3cbb5e26
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module HubSpot
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
4
  end
5
5
  end
@@ -16,9 +16,6 @@ module OmniAuth
16
16
 
17
17
  option :authorize_options, [:scope, :portalId]
18
18
 
19
- attr_accessor :refresh_token
20
- attr_accessor :expires_in
21
-
22
19
  def callback_phase
23
20
  if request.params['error'] || request.params['error_reason']
24
21
  raise CallbackError.new(request.params['error'], request.params['error_description'] || request.params['error_reason'], request.params['error_uri'])
@@ -27,9 +24,10 @@ module OmniAuth
27
24
  raise CallbackError.new(nil, :csrf_detected)
28
25
  end
29
26
 
30
- self.access_token = request.params[:access_token]
31
- self.refresh_token = request.params[:refresh_token]
32
- self.expires_in = request.params[:expires_in]
27
+ hash = {'token' = request.params[:access_token]}
28
+ hash.merge!('refresh_token' = request.params[:refresh_token])
29
+ hash.merge!('expires_in' = request.params[:expires_in])
30
+ self.access_token = hash
33
31
 
34
32
  self.env['omniauth.auth'] = auth_hash
35
33
  call_app!
@@ -44,9 +42,9 @@ module OmniAuth
44
42
  end
45
43
 
46
44
  credentials do
47
- hash = {'token' => access_token}
48
- hash.merge!('refresh_token' => refresh_token)
49
- hash.merge!('expires_in' => expires_in)
45
+ hash = {'token' => access_token['token']}
46
+ hash.merge!('refresh_token' => access_token['refresh_token'])
47
+ hash.merge!('expires_in' => access_token['expires_in'])
50
48
  hash
51
49
  end
52
50
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-hubspot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Arnold
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-10 00:00:00.000000000 Z
11
+ date: 2014-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth