omniauth-hubspot-full 0.1.2 → 0.1.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
- SHA1:
3
- metadata.gz: 3710ad643220c634376c959a4ed20dcc7956c51e
4
- data.tar.gz: b76a3e8a873353dce14e69c21c4c4f3c83925f75
2
+ SHA256:
3
+ metadata.gz: 5865ef17d356ae47f53408f4cdcd51ccbdde66519d3b5ef16738b1d4a9f8b08e
4
+ data.tar.gz: 823b387003c76721e3bd1bcd70f461fb3a9fe581f67c1eec532faa58a218cec2
5
5
  SHA512:
6
- metadata.gz: 11df7a60c8c037d5dfc481f667e45fa2a67256f31975f9d9e5e9ac0a98cab43ed2aad26fbb0b214d1fcb7e853ef480f01765d6a6bd9070274e596c879d9850cb
7
- data.tar.gz: '08d8fcae4fedd3812fe538d8ff240e9ec22419cf3efbcda3f7392bfcaccfb8e54e0578c0e47ef9712d6c0acf37b958d585e9eb2be8096dc27dba2436672fe5a3'
6
+ metadata.gz: 0f5f6f39dadf4d692023e6cecca9ee8df8836b3071d15db4131a47b3bc841c6132d0ddaf505cd2ef84788a3a5bdae144106d7b65f1b397abc617e78c2ad9143b
7
+ data.tar.gz: 0b40d2f5c02332379c2d961dba5a2f6247243a749357fc1b5102265fc5112c33c8885bbbe223ac15f5c5bf2804d655e3be1d152357ed7cb97cf7795b7dbb32df
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Hubspot
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ module OmniAuth
7
7
  class Hubspot < OmniAuth::Strategies::OAuth2
8
8
  option :name, 'hubspot'
9
9
 
10
- option :authorize_options, [:scope]
10
+ option :authorize_options, [:scope, :optional_scope]
11
11
 
12
12
  option :client_options, {
13
13
  site: 'https://api.hubapi.com',
@@ -55,9 +55,9 @@ module OmniAuth
55
55
  info do
56
56
  {
57
57
  user_id: identity['user_id'],
58
- user: identity['user'],
58
+ user: identity['user'],
59
59
  hub_id: identity['hub_id'],
60
- hub_domain: identity['hub_domain'],
60
+ hub_domain: identity['hub_domain'],
61
61
  app_id: identity['app_id'],
62
62
  scopes: identity['scopes']
63
63
  }
@@ -73,7 +73,7 @@ module OmniAuth
73
73
 
74
74
  def authorize_params
75
75
  super.tap do |params|
76
- %w[scope].each do |v|
76
+ %w[scope optional_scope].each do |v|
77
77
  if request.params[v]
78
78
  params[v.to_sym] = request.params[v]
79
79
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.add_runtime_dependency 'omniauth-oauth2', ">= 1.3"
19
+ spec.add_runtime_dependency 'omniauth-oauth2', ">= 1.7"
20
20
 
21
21
  spec.add_development_dependency "bundler"
22
22
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-hubspot-full
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - romanos
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2021-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '1.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -103,7 +103,7 @@ homepage: https://github.com/romanos/omniauth-hubspot.git
103
103
  licenses:
104
104
  - MIT
105
105
  metadata: {}
106
- post_install_message:
106
+ post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths:
109
109
  - lib
@@ -118,9 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubyforge_project:
122
- rubygems_version: 2.6.13
123
- signing_key:
121
+ rubygems_version: 3.0.8
122
+ signing_key:
124
123
  specification_version: 4
125
124
  summary: OmniAuth strategy for Hubspot (borrowed heavily from @kmrshntr)
126
125
  test_files: