lithic 0.1.0.pre.alpha.12 → 0.1.0.pre.alpha.13

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: b791605f4f0f717ff4b00e27ac187d87cf8aaacdc1314643e81e87edc5cfec65
4
+ data.tar.gz: c9a7e7f406f35266f71de9a64786fa8a6f2ad9ba66fb60c445c610b1db16763a
5
5
  SHA512:
6
- metadata.gz: b88593452a1e5a38014849baf782b3030d41bce4fb0b19c3656172590fc381a12892dc7c597d6e9a718560be4be2c083a5d2967140f463aafcf43e493af48d3f
7
- data.tar.gz: c72e9785ce3b02549023b34b8d8e2a5c3616928ae0bf964f85c8ed7e25e3f2bfa88e97830af80ae7e1c9a107b918eeab7a534c3576360267657d1300fafca04f
6
+ metadata.gz: 02606a94b6ce7165669be4518c6bfa15e7b3f42a558661fcf9a1d29dc454b1dddb2e94a8dcca80492c5cdcd0065137f2c9a09f4c9aa07ceea1fdb95833ef9a1a
7
+ data.tar.gz: 6681fff8b1a773c1acb65ed387f0070de61b5183a23ba7345fcf56fbf47c0644d2aaf1761dae3ac9e95b2f16fbcfd7a3894daada597657073f36baaffb0273f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.13 (2025-04-17)
4
+
5
+ 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)
6
+
7
+ ### Bug Fixes
8
+
9
+ * restore ability to configure server environment as string during client construction ([aec1e1f](https://github.com/lithic-com/lithic-ruby/commit/aec1e1fe50b86dfeac96adb6e2f7afd56c1e44e9))
10
+
3
11
  ## 0.1.0-alpha.12 (2025-04-17)
4
12
 
5
13
  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.13"
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?
@@ -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.13"
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.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lithic