hubspot-api-client 16.0.2 → 16.0.3
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/hubspot/discovery/base_api_client.rb +1 -1
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/base_api_client_spec.rb +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c61bad2a2c4f55678f1e0a7887f66ff9fe6165db9e7431783c2227b33111ba6f
|
4
|
+
data.tar.gz: 244b599e3c9833d9da78403c0c4be98c87c6a59aaff0fc703235f4dacf91ef0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5117f3f1847cd9b51c56995bbf671c0158c47d2b7a3e55fa58d74ba3b8c7575dddfb4f0efc9e80df4923297efc46bf32958f0a96011c7e4637ff79930bd7ca8f
|
7
|
+
data.tar.gz: dd61a1d3ec13a33c4daab476688ffade2e857730c4e73456ac04c34eb378acfe5acfa976a90b9b3038cb37cabdce1726a844da5b9d300acec030eaae3b1e33a8
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [16.0.3] - 2022-11-23
|
9
|
+
### Changed
|
10
|
+
|
11
|
+
- auth_names => debug_auth_names
|
12
|
+
|
8
13
|
## [16.0.2] - 2022-11-22
|
9
14
|
### Fixed
|
10
15
|
|
data/Gemfile.lock
CHANGED
@@ -133,7 +133,7 @@ module Hubspot
|
|
133
133
|
self.class.define_method(api_method) do |params = {}, &block|
|
134
134
|
params_with_defaults = params
|
135
135
|
params_with_defaults[:opts] ||= {}
|
136
|
-
params_with_defaults[:opts][:
|
136
|
+
params_with_defaults[:opts][:debug_auth_names] = if base_params[:access_token]
|
137
137
|
'oauth2'
|
138
138
|
elsif base_params[:api_key]
|
139
139
|
'hapikey'
|
data/lib/hubspot/version.rb
CHANGED
@@ -90,20 +90,20 @@ describe 'Hubspot::Discovery::BaseApiClient' do
|
|
90
90
|
context 'with default params order' do
|
91
91
|
let(:params) { {test_id: 'test_id_value', limit: 10} }
|
92
92
|
|
93
|
-
it { is_expected.to eq('got test_id: test_id_value, opts: {:
|
93
|
+
it { is_expected.to eq('got test_id: test_id_value, opts: {:debug_auth_names=>"oauth2", :limit=>10}') }
|
94
94
|
end
|
95
95
|
|
96
96
|
context 'with changed params order' do
|
97
97
|
let(:params) { {limit: 5, test_id: 'test_id_value'} }
|
98
98
|
|
99
|
-
it { is_expected.to eq('got test_id: test_id_value, opts: {:
|
99
|
+
it { is_expected.to eq('got test_id: test_id_value, opts: {:debug_auth_names=>"oauth2", :limit=>5}') }
|
100
100
|
end
|
101
101
|
|
102
102
|
context 'with error handle block' do
|
103
103
|
subject(:get) { client.get(params) { |e| e.message } }
|
104
104
|
let(:params) { {test_id: 'test_id_value', limit: 10} }
|
105
105
|
|
106
|
-
it { is_expected.to eq('got test_id: test_id_value, opts: {:
|
106
|
+
it { is_expected.to eq('got test_id: test_id_value, opts: {:debug_auth_names=>"oauth2", :limit=>10}') }
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
@@ -113,32 +113,32 @@ describe 'Hubspot::Discovery::BaseApiClient' do
|
|
113
113
|
context 'with default params order' do
|
114
114
|
let(:params) { {test_id: 'test_id_value', simple_public_object_input: Hubspot::SimplePublicObjectInput.new(body), limit: 10} }
|
115
115
|
|
116
|
-
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:
|
116
|
+
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:debug_auth_names=>"oauth2", :limit=>10}') }
|
117
117
|
end
|
118
118
|
|
119
119
|
context 'with reversed params order' do
|
120
120
|
let(:params) { {limit: 5, simple_public_object_input: Hubspot::SimplePublicObjectInput.new(body), test_id: 'test_id_value'} }
|
121
121
|
|
122
|
-
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:
|
122
|
+
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:debug_auth_names=>"oauth2", :limit=>5}') }
|
123
123
|
end
|
124
124
|
|
125
125
|
context 'with shuffled params order' do
|
126
126
|
let(:params) { {simple_public_object_input: Hubspot::SimplePublicObjectInput.new(body), limit: 7, test_id: 'test_id_value'} }
|
127
127
|
|
128
|
-
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:
|
128
|
+
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:debug_auth_names=>"oauth2", :limit=>7}') }
|
129
129
|
end
|
130
130
|
|
131
131
|
context 'with body' do
|
132
132
|
let(:params) { {test_id: 'test_id_value', body: body, limit: 10} }
|
133
133
|
|
134
|
-
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:
|
134
|
+
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:debug_auth_names=>"oauth2", :limit=>10}') }
|
135
135
|
end
|
136
136
|
|
137
137
|
context 'with block' do
|
138
138
|
subject(:update) { client.update(params) { |e| e.message } }
|
139
139
|
let(:params) { {test_id: 'test_id_value', body: body, limit: 10} }
|
140
140
|
|
141
|
-
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:
|
141
|
+
it { is_expected.to eq('updated test_id: test_id_value, name: test_name, email: test_email, opts: {:debug_auth_names=>"oauth2", :limit=>10}') }
|
142
142
|
end
|
143
143
|
end
|
144
144
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hubspot-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 16.0.
|
4
|
+
version: 16.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HubSpot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|