lithic 0.1.0.pre.alpha.12 → 0.1.0.pre.alpha.14

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: 488e7e7c02bda44d666c79ab398ee65c00d5994049f4aa48439bdb344330fbb6
4
- data.tar.gz: 7ff630d6290e4abe4304cc2bde7325650d83d2e7b710ac1b93536e22ce8e1351
3
+ metadata.gz: ac2b9d69b258cc9761a52dc0632986c5f62d5c2150fa3b23c06fde0b64346017
4
+ data.tar.gz: '0848b77cb99c28a9c5752260c8532cea2087b3053bb048ffd77677c5e2901de9'
5
5
  SHA512:
6
- metadata.gz: b88593452a1e5a38014849baf782b3030d41bce4fb0b19c3656172590fc381a12892dc7c597d6e9a718560be4be2c083a5d2967140f463aafcf43e493af48d3f
7
- data.tar.gz: c72e9785ce3b02549023b34b8d8e2a5c3616928ae0bf964f85c8ed7e25e3f2bfa88e97830af80ae7e1c9a107b918eeab7a534c3576360267657d1300fafca04f
6
+ metadata.gz: 14ccbbef08bf3d2e4e2496fdeaefd03d82210b6bbed70d2d66e663a6fe2d3d88e879b004a9b6f7892ccc0a34dc7417d438a71af2e76588c37da8fac9a63454ca
7
+ data.tar.gz: f5aea3f807164d03c219be133208aff6216fcfda8cdf289537ae311752d22469f2302cf0a14d9251f20bb9c758ab76ad5266a7acd3a6102ba32a37302bbe8942
data/.ignore ADDED
@@ -0,0 +1,2 @@
1
+ rbi/*
2
+ sig/*
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.14 (2025-04-17)
4
+
5
+ Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)
6
+
7
+ ### Bug Fixes
8
+
9
+ * always send idempotency header when specified as a request option ([919646f](https://github.com/lithic-com/lithic-ruby/commit/919646f1dea9c03ec4d752c7e62ee6d875d73651))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** contribute.md and contributor QoL improvements ([f7ff754](https://github.com/lithic-com/lithic-ruby/commit/f7ff754e6db71852203445c04ad17b0e64204864))
15
+
16
+ ## 0.1.0-alpha.13 (2025-04-17)
17
+
18
+ Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
19
+
20
+ ### Bug Fixes
21
+
22
+ * restore ability to configure server environment as string during client construction ([aec1e1f](https://github.com/lithic-com/lithic-ruby/commit/aec1e1fe50b86dfeac96adb6e2f7afd56c1e44e9))
23
+
3
24
  ## 0.1.0-alpha.12 (2025-04-17)
4
25
 
5
26
  Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "lithic", "~> 0.1.0.pre.alpha.12"
18
+ gem "lithic", "~> 0.1.0.pre.alpha.14"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
data/lib/lithic/client.rb CHANGED
@@ -153,8 +153,9 @@ module Lithic
153
153
  initial_retry_delay: DEFAULT_INITIAL_RETRY_DELAY,
154
154
  max_retry_delay: DEFAULT_MAX_RETRY_DELAY
155
155
  )
156
- base_url ||= ENVIRONMENTS.fetch(environment || :production) do
157
- raise ArgumentError.new("environment must be one of #{ENVIRONMENTS.keys}, got #{environment}")
156
+ base_url ||= Lithic::Client::ENVIRONMENTS.fetch(environment&.to_sym || :production) do
157
+ message = "environment must be one of #{Lithic::Client::ENVIRONMENTS.keys}, got #{environment}"
158
+ raise ArgumentError.new(message)
158
159
  end
159
160
 
160
161
  if api_key.nil?
@@ -253,7 +253,7 @@ module Lithic
253
253
 
254
254
  if @idempotency_header &&
255
255
  !headers.key?(@idempotency_header) &&
256
- !Net::HTTP::IDEMPOTENT_METHODS_.include?(method.to_s.upcase)
256
+ (!Net::HTTP::IDEMPOTENT_METHODS_.include?(method.to_s.upcase) || opts.key?(:idempotency_key))
257
257
  headers[@idempotency_header] = opts.fetch(:idempotency_key) { generate_idempotency_key }
258
258
  end
259
259
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.1.0.pre.alpha.12"
4
+ VERSION = "0.1.0.pre.alpha.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lithic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.12
4
+ version: 0.1.0.pre.alpha.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lithic
@@ -31,6 +31,7 @@ extensions: []
31
31
  extra_rdoc_files:
32
32
  - README.md
33
33
  files:
34
+ - ".ignore"
34
35
  - CHANGELOG.md
35
36
  - README.md
36
37
  - SECURITY.md