hubspot-api-client 14.5.1 → 14.5.2

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: 1d8b685b37efbc5b2140970f793514d482f2c1b3cc1e7da8bb0f22d6814a4e72
4
- data.tar.gz: 5db20fc0ccb46c3e201751171f08fc1f052b48053ae64e1ff8a09ab9b6cc1705
3
+ metadata.gz: 8a4cd52d4916355ef186e0e1c115027bbabc111b46c537eee81ee9eed1a4758e
4
+ data.tar.gz: 4915341310b70bd5ad5b5476b9a1a70d86fecb0f6f9b0a0a4581d68353b78a91
5
5
  SHA512:
6
- metadata.gz: 63275e727159844f6841460d15c9a672f103295693bb010a7c0dd8a178bce450e5a1f0995f0f98b93fb6698d920d6d31d385a3b54330f74498dfc59a37dc930d
7
- data.tar.gz: e94d656b76d0782d533e7378416652378a36a2194386ac67496fc142a6713293a8ac858ff1e3fb88f7a1017c34080513938a17b2d7fbb61cde3e730f3006792d
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubspot-api-client (14.5.1)
4
+ hubspot-api-client (14.5.2)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  require_all (~> 3.0.0)
7
7
  typhoeus (~> 1.4.0)
@@ -115,12 +115,14 @@ module Hubspot
115
115
  end
116
116
 
117
117
  params_to_pass = signature_params.map do |req, param|
118
- model_name = Hubspot::Helpers::CamelCase.new.format(param.to_s)
119
- Kernel.const_get("#{codegen_module_name}::#{model_name}").build_from_hash(params_with_defaults[:body])
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 && params_with_defaults[param].nil?
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?
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = '14.5.1'
2
+ VERSION = '14.5.2'
3
3
  end
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.1
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-09-30 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus