Skip to content

Commit e00835f

Browse files
release: 0.1.0-alpha.5 (#5)
* codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * feat: support setting headers via env * codegen metadata * codegen metadata * release: 0.1.0-alpha.5 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 9a74b55 commit e00835f

7 files changed

Lines changed: 29 additions & 7 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.4"
2+
".": "0.1.0-alpha.5"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 959
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot%2Fhubspot-sdk-27f6d2f8adbca1ec11995d8f923efadd9bfd5bc7cd569690aaf0ff634949feaa.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-c4f4939d793d2c423f834b2dbbf5ece484009798e6fdaea771cdcae1f84229a8.yml
33
openapi_spec_hash: d0e76c7f7ecb1e8f701d4ced83be404f
4-
config_hash: 1ad21cf783009b5c5ceb99a6f2d335f3
4+
config_hash: 9a5e751d38a6c4ccba657d505406981e

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.1.0-alpha.5 (2026-05-01)
4+
5+
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/HubSpot/hubspot-sdk-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
6+
7+
### Features
8+
9+
* support setting headers via env ([05dc4f3](https://github.com/HubSpot/hubspot-sdk-ruby/commit/05dc4f3c899eeef2dca1aafe4b8a04a88c2b72ad))
10+
311
## 0.1.0-alpha.4 (2026-04-24)
412

513
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/HubSpot/hubspot-sdk-ruby/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
hubspot-sdk (0.1.0.pre.alpha.4)
14+
hubspot-sdk (0.1.0.pre.alpha.5)
1515
cgi
1616
connection_pool
1717

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
1717
<!-- x-release-please-start-version -->
1818

1919
```ruby
20-
gem "hubspot-sdk", "~> 0.1.0.pre.alpha.4"
20+
gem "hubspot-sdk", "~> 0.1.0.pre.alpha.5"
2121
```
2222

2323
<!-- x-release-please-end -->

lib/hubspot_sdk/client.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,19 @@ def initialize(
109109
)
110110
base_url ||= "https://api.hubapi.com"
111111

112+
headers = {}
113+
custom_headers_env = ENV["HUBSPOT_CUSTOM_HEADERS"]
114+
unless custom_headers_env.nil?
115+
parsed = {}
116+
custom_headers_env.split("\n").each do |line|
117+
colon = line.index(":")
118+
unless colon.nil?
119+
parsed[line[0...colon].strip] = line[(colon + 1)..].strip
120+
end
121+
end
122+
headers = parsed.merge(headers)
123+
end
124+
112125
@access_token = access_token&.to_s
113126
@developer_api_key = developer_api_key&.to_s
114127

@@ -117,7 +130,8 @@ def initialize(
117130
timeout: timeout,
118131
max_retries: max_retries,
119132
initial_retry_delay: initial_retry_delay,
120-
max_retry_delay: max_retry_delay
133+
max_retry_delay: max_retry_delay,
134+
headers: headers
121135
)
122136

123137
@account = HubSpotSDK::Resources::Account.new(client: self)

lib/hubspot_sdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module HubSpotSDK
4-
VERSION = "0.1.0.pre.alpha.4"
4+
VERSION = "0.1.0.pre.alpha.5"
55
end

0 commit comments

Comments
 (0)