dodopayments 2.7.1 → 2.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e9f351de0bce4f6d918c6d76fe60b6d1dabbe710fa32bcf03068821c74070e6
4
- data.tar.gz: 9cedfdbbfd04ebe564bbdebba16909ecf1ab0fbb760e8b8c1faa436170ceaafc
3
+ metadata.gz: f7e056d8254eb39bcce07ee4e2badfa8e49782cd90bce3988ebd4b8d7454ef90
4
+ data.tar.gz: 552ceebf33b3e812a3e13e68dca3bb8ecaf0f72ba441f3b22752771360487e0e
5
5
  SHA512:
6
- metadata.gz: d38ccc501d29b62ced6768b4867ad2da8ef7930b60ab87266ba01d681d689232de3833a12f25e89088fb195b878bfefcbc66a676df2ac20570c89711d02b3d0c
7
- data.tar.gz: 606099c9e5f3ef8066677ac1ece3c22f8fdc5c986fc826584ec24050ce38b81756807fa7ba53ba78d90ed3d54d54783596ca32ed78b6879583499d6d085a9f89
6
+ metadata.gz: 5fd46af6587551acf8e3024c0c2b063ecbb153def13531954f4fc83c5f6556d3f1078e31e9e5bfe86a4d084bc1de45f654d82c80ab62458ba826c1c28586712a
7
+ data.tar.gz: 22fc9cd1c25403b88bba3eda42aa706ac44697b83f7c38eeff7581e6b92715ec236c6d434aaa77d89fb65e7aab11240dfc6ad5b5f3a1036668e30b5b3fe7809b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.8.1 (2026-04-29)
4
+
5
+ Full Changelog: [v2.8.0...v2.8.1](https://github.com/dodopayments/dodopayments-ruby/compare/v2.8.0...v2.8.1)
6
+
7
+ ### Chores
8
+
9
+ * **internal:** codegen related update ([a8cf8d2](https://github.com/dodopayments/dodopayments-ruby/commit/a8cf8d230adc076226ef2f63d36a207704006c85))
10
+
11
+ ## 2.8.0 (2026-04-28)
12
+
13
+ Full Changelog: [v2.7.1...v2.8.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.7.1...v2.8.0)
14
+
15
+ ### Features
16
+
17
+ * support setting headers via env ([490f2d8](https://github.com/dodopayments/dodopayments-ruby/commit/490f2d85bcea253ca8f0e95d587020e65df1c87e))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **internal:** more robust bootstrap script ([e870736](https://github.com/dodopayments/dodopayments-ruby/commit/e8707366cb03cc5e90e6cb7d5d54aebd40c74a30))
23
+
3
24
  ## 2.7.1 (2026-04-18)
4
25
 
5
26
  Full Changelog: [v2.7.0...v2.7.1](https://github.com/dodopayments/dodopayments-ruby/compare/v2.7.0...v2.7.1)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "dodopayments", "~> 2.7.1"
29
+ gem "dodopayments", "~> 2.8.1"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -144,6 +144,19 @@ module Dodopayments
144
144
  raise ArgumentError.new("bearer_token is required, and can be set via environ: \"DODO_PAYMENTS_API_KEY\"")
145
145
  end
146
146
 
147
+ headers = {}
148
+ custom_headers_env = ENV["DODO_PAYMENTS_CUSTOM_HEADERS"]
149
+ unless custom_headers_env.nil?
150
+ parsed = {}
151
+ custom_headers_env.split("\n").each do |line|
152
+ colon = line.index(":")
153
+ unless colon.nil?
154
+ parsed[line[0...colon].strip] = line[(colon + 1)..].strip
155
+ end
156
+ end
157
+ headers = parsed.merge(headers)
158
+ end
159
+
147
160
  @bearer_token = bearer_token.to_s
148
161
  @webhook_key = webhook_key&.to_s
149
162
 
@@ -152,7 +165,8 @@ module Dodopayments
152
165
  timeout: timeout,
153
166
  max_retries: max_retries,
154
167
  initial_retry_delay: initial_retry_delay,
155
- max_retry_delay: max_retry_delay
168
+ max_retry_delay: max_retry_delay,
169
+ headers: headers
156
170
  )
157
171
 
158
172
  @checkout_sessions = Dodopayments::Resources::CheckoutSessions.new(client: self)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dodopayments
4
- VERSION = "2.7.1"
4
+ VERSION = "2.8.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dodopayments
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dodo Payments
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-18 00:00:00.000000000 Z
11
+ date: 2026-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi