hubspot-api-client 14.5.1 → 14.5.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/hubspot/discovery/base_api_client.rb +7 -5
- data/lib/hubspot/version.rb +1 -1
- 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: 8a4cd52d4916355ef186e0e1c115027bbabc111b46c537eee81ee9eed1a4758e
|
4
|
+
data.tar.gz: 4915341310b70bd5ad5b5476b9a1a70d86fecb0f6f9b0a0a4581d68353b78a91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 989b451ae98b489c0df15533ab91ac351b11d864ce6a48b2f2d464cd1654234a14ae9ab4f828e93ae5e5fcf636f0948fd4f155dbf1ceec759afbef6094ddc1fd
|
7
|
+
data.tar.gz: 6050d81e977c5b24a5844eaf8087cdb78d846f592ad4cd6ea004653c81a05dec6f7b8f8e5051f99d55e7cfcaa2e9aeb9218389cad396092cca1272b38427ee70
|
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
|
+
## [14.5.2] - 2022-10-05
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- passing params with existing model
|
12
|
+
|
8
13
|
## [14.5.1] - 2022-09-30
|
9
14
|
### Changed
|
10
15
|
|
data/Gemfile.lock
CHANGED
@@ -115,12 +115,14 @@ module Hubspot
|
|
115
115
|
end
|
116
116
|
|
117
117
|
params_to_pass = signature_params.map do |req, param|
|
118
|
-
|
119
|
-
|
118
|
+
if params_with_defaults[param].nil?
|
119
|
+
model_name = Hubspot::Helpers::CamelCase.new.format(param.to_s)
|
120
|
+
Kernel.const_get("#{codegen_module_name}::#{model_name}").build_from_hash(params_with_defaults[:body])
|
121
|
+
else
|
122
|
+
params_with_defaults[param]
|
123
|
+
end
|
120
124
|
rescue NameError
|
121
|
-
raise "Param #{param} is required for #{api.class}\##{api_method} method" if req == :req
|
122
|
-
|
123
|
-
params_with_defaults[param]
|
125
|
+
raise "Param #{param} is required for #{api.class}\##{api_method} method" if req == :req
|
124
126
|
end
|
125
127
|
|
126
128
|
return call_api_with_retry(api_method, params_to_pass, params[:retry], &block) unless params[:retry].nil?
|
data/lib/hubspot/version.rb
CHANGED
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: 14.5.
|
4
|
+
version: 14.5.2
|
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
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|