hubspot-api-client 16.0.0 → 16.0.1

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: 1fab2ac900c7557b0c72063534da2cc3082a4acf5abbb243fc3960db244629a4
4
- data.tar.gz: cd5ea20ff7014e543d1244ad4b810d00978ce1f604821bb881f7a7a9a61148a8
3
+ metadata.gz: 66f38ee93ff2489af4371ed191ebe60be123f2f81c5baad700c4cb17923423ea
4
+ data.tar.gz: 610d179aef509db14c69acc5e52e4647b991cdaf5b7e4ccc57c25ed3b70c162b
5
5
  SHA512:
6
- metadata.gz: 85d5f22759afc76a33f658d89035a5b3c2c43c150fb587632c2798b1d8f67ac3ff7971e73be491ee3357f2c748be9244944df9a604269dc24fd3e17a112ab659
7
- data.tar.gz: 81ac90eff4c8601a9fb84d29551bc3f10610236832166c176fb3fa1ad1a25cf3453246e096b3bf469faaf869e0333ae6fcd4cf36a36612134a4cb7a403db9a00
6
+ metadata.gz: 07a4408148cc705f496e65d941147cf27708b77abec44d694c6eb0bd2469a85c486c0ff3c96bdfe998feeacd73ef5f4c2eb8e3f66b1e1cf761d49d51ee37f7c3
7
+ data.tar.gz: 91898dc55f9ebc6cfa7e82bbf87855802057f20958072e27cb93dff2c0dd3dce0a4c9bbc5783c5748ce2bc41a96ea4bae102efa869bc3a8184ad4139ac180d22
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.1] - 2022-11-16
9
+ ### Fixed
10
+
11
+ - remove passing params with snake case
12
+
8
13
  ## [16.0.0] - 2022-11-10
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 (16.0.0)
4
+ hubspot-api-client (16.0.1)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.4.0)
7
7
 
@@ -124,19 +124,6 @@ module Hubspot
124
124
  end
125
125
  end
126
126
 
127
- def convert_body(body)
128
- converted_body = {}
129
- body.each do |key, value|
130
- camel_case_key = Hubspot::Helpers::CamelCase.new.format(key.to_s)
131
- camel_case_key = camel_case_key[0, 1].downcase + camel_case_key[1..-1]
132
- converted_value = value
133
- converted_value = convert_body(value) if value.is_a?(Hash)
134
- converted_value = value.map { |elem| elem.is_a?(Hash) ? convert_body(elem) : elem } if value.is_a?(Array)
135
- converted_body[camel_case_key.to_sym] = converted_value
136
- end
137
- converted_body
138
- end
139
-
140
127
  def define_methods
141
128
  define_api_methods
142
129
  end
@@ -167,8 +154,7 @@ module Hubspot
167
154
  if params_with_defaults[param].nil?
168
155
  model_name = Hubspot::Helpers::CamelCase.new.format(param.to_s)
169
156
  require_codegen "#{codegen_module_path}/models/#{param.to_s}"
170
- converted_body = convert_body(params_with_defaults[:body])
171
- Kernel.const_get("#{codegen_module_name}::#{model_name}").build_from_hash(converted_body)
157
+ Kernel.const_get("#{codegen_module_name}::#{model_name}").build_from_hash(params_with_defaults[:body])
172
158
  else
173
159
  params_with_defaults[param]
174
160
  end
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = '16.0.0'
2
+ VERSION = '16.0.1'
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: 16.0.0
4
+ version: 16.0.1
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 00:00:00.000000000 Z
11
+ date: 2022-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus