hubspot-api-client 16.0.2 → 16.0.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
2
  SHA256:
3
- metadata.gz: ae73f52acb44623f2bb0fb3f7c975f04bbf0a657d8ea07b177f309c4c4860813
4
- data.tar.gz: 746e3b0d15d305d2c1c7771ab7ded7f042d46cd86c0f0a525c62cc1099442582
3
+ metadata.gz: c61bad2a2c4f55678f1e0a7887f66ff9fe6165db9e7431783c2227b33111ba6f
4
+ data.tar.gz: 244b599e3c9833d9da78403c0c4be98c87c6a59aaff0fc703235f4dacf91ef0b
5
5
  SHA512:
6
- metadata.gz: edbe1af1ad7914e04832f672e2970b85f897edfa60711fec78a85741101e27f5103f59aeed7af5f1132766e3012feef97a9fe3ac47e21374c6893bc32f4d9755
7
- data.tar.gz: afc63b3cb3735d3fc928d5d29188e9a37518a76f0df2c7acb17753893b329fee50373dad325531ce33c220f4b8a40a5cc0f452739fd1fb65f8e4801114893b1b
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubspot-api-client (16.0.2)
4
+ hubspot-api-client (16.0.3)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.4.0)
7
7
 
@@ -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][:auth_names] = if base_params[:access_token]
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'
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = '16.0.2'
2
+ VERSION = '16.0.3'
3
3
  end
@@ -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: {:auth_names=>"oauth2", :limit=>10}') }
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: {:auth_names=>"oauth2", :limit=>5}') }
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: {:auth_names=>"oauth2", :limit=>10}') }
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: {:auth_names=>"oauth2", :limit=>10}') }
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: {:auth_names=>"oauth2", :limit=>5}') }
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: {:auth_names=>"oauth2", :limit=>7}') }
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: {:auth_names=>"oauth2", :limit=>10}') }
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: {:auth_names=>"oauth2", :limit=>10}') }
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.2
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-23 00:00:00.000000000 Z
11
+ date: 2022-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus