hubspot-api-client-patched-pn 9.5.1.trocco.0.0.1 → 9.5.1.trocco.0.0.2

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
  SHA256:
3
- metadata.gz: ca60e3c4cf3b205b859bd45235e9cf2720e405b01b14a7112838a09f74c0c92b
4
- data.tar.gz: 958f3eaa7156ca6116e5db8bb0b440b365ef8b69f224573ea6f03f9b05705e13
3
+ metadata.gz: ade1759b82da36b8935eccd71235a2ad3878d8b5e5fa7ebd628a490e8aca2ae4
4
+ data.tar.gz: f27676418da367927d04476191f0c0a98ac1d00e0b76d0d5f0e17c853cd42e3f
5
5
  SHA512:
6
- metadata.gz: 7a478b0d2db3daf4cdfb9b08613ffa3a844edf5e49d6c27f088b2fcd000a7f24d9156fad9f5a52fe6758ed516eeb75fa7248a8d74328c4d560303cce57872329
7
- data.tar.gz: 9806640d2668a929fd1502e27d40b2b6c299162f5bea442ef179a9dbd1d3329be2a99130c8c6c625f7e3a9d76fda5dba209fb2fa5212dae968f2352d4f2172d2
6
+ metadata.gz: dc02b5861e81b186228f4fce4a6114374d1b256fb21e96d4e3979592c047c5f5719dd9cc74cca3d872cc5afe5258ec283f3cc40791195ec48a4698aa6f037050
7
+ data.tar.gz: 1546ebb445b785958e268c7b943c07f1fa2a07abd6211b7b34fadf0e74c571fd49f171b155c9636fcfcd2018ba218e2d44639e10a98ff139053b6808f5118e50
@@ -0,0 +1,19 @@
1
+ # HubSpot API 9.5.1 Monkey-Patch : skip blank hapikey on OAuth
2
+ module Hubspot
3
+ module Crm
4
+ module Schemas
5
+ class ApiClient # :nodoc:
6
+ alias _orig_update_params_for_auth! update_params_for_auth!
7
+
8
+ def update_params_for_auth!(header_params, query_params, auth_names)
9
+ # hapikey が空なら除外
10
+ auth_names = Array(auth_names).reject do |name|
11
+ name == 'hapikey' && @config.api_key['hapikey'].to_s.strip.empty?
12
+ end
13
+
14
+ _orig_update_params_for_auth!(header_params, query_params, auth_names)
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.required_ruby_version = ">= 1.9"
15
15
 
16
16
  s.add_runtime_dependency 'typhoeus', '~> 1.4.0'
17
- s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
17
+ s.add_runtime_dependency 'json', '>= 2.1', '< 2.7'
18
18
  s.add_runtime_dependency 'require_all', '~> 3.0.0'
19
19
 
20
20
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = '9.5.1.trocco.0.0.1'
2
+ VERSION = '9.5.1.trocco.0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubspot-api-client-patched-pn
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.5.1.trocco.0.0.1
4
+ version: 9.5.1.trocco.0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - primeNumber
@@ -28,22 +28,22 @@ dependencies:
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.1'
34
- - - ">="
34
+ - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: 2.1.0
36
+ version: '2.7'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "~>"
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '2.1'
44
- - - ">="
44
+ - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.1.0
46
+ version: '2.7'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: require_all
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -205,6 +205,7 @@ files:
205
205
  - Gemfile.lock
206
206
  - README.md
207
207
  - Rakefile
208
+ - config/initializers/hubspot_api_patch.rb
208
209
  - git_push.sh
209
210
  - hubspot-api-client.gemspec
210
211
  - lib/hubspot-api-client.rb