Skip to content

Commit c816920

Browse files
authored
Merge pull request #195 from orbcorp/release-please--branches--main--changes--next
release: 0.1.0-alpha.32
2 parents b10e92f + d97a657 commit c816920

311 files changed

Lines changed: 4845 additions & 2651 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.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.31"
2+
".": "0.1.0-alpha.32"
33
}

.rubocop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ Naming/ClassAndModuleCamelCase:
127127
- "**/*.rbi"
128128

129129
Naming/MethodParameterName:
130-
Exclude:
131-
- "**/*.rbi"
130+
Enabled: false
132131

133132
Naming/PredicateName:
134133
Exclude:

CHANGELOG.md

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

3+
## 0.1.0-alpha.32 (2025-04-02)
4+
5+
Full Changelog: [v0.1.0-alpha.31...v0.1.0-alpha.32](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.31...v0.1.0-alpha.32)
6+
7+
### Features
8+
9+
* link response models to their methods in yard doc ([#198](https://github.com/orbcorp/orb-ruby/issues/198)) ([6f6cc29](https://github.com/orbcorp/orb-ruby/commit/6f6cc2972dd0f0863201d4d7642dbec922893364))
10+
11+
12+
### Chores
13+
14+
* improve yard docs readability ([#197](https://github.com/orbcorp/orb-ruby/issues/197)) ([6416b4c](https://github.com/orbcorp/orb-ruby/commit/6416b4c1725c50e22dd7360ce0175651cc7b86fa))
15+
* **internal:** codegen related update ([#196](https://github.com/orbcorp/orb-ruby/issues/196)) ([d2e04d6](https://github.com/orbcorp/orb-ruby/commit/d2e04d695150fc6253f47f00693f9967a7fa69d4))
16+
* **internal:** codegen related update ([#199](https://github.com/orbcorp/orb-ruby/issues/199)) ([70d35b6](https://github.com/orbcorp/orb-ruby/commit/70d35b67ae45e59e17e3cbc8b490094b5e74ae75))
17+
* **internal:** codegen related update ([#201](https://github.com/orbcorp/orb-ruby/issues/201)) ([641222f](https://github.com/orbcorp/orb-ruby/commit/641222f1f19b2e4d14e7eabe8f9b4ef429fe02e9))
18+
* **internal:** version bump ([#194](https://github.com/orbcorp/orb-ruby/issues/194)) ([42ffeeb](https://github.com/orbcorp/orb-ruby/commit/42ffeebb1ea9141981bd5a92ad8268db02162d7b))
19+
* order client variables by "importance" ([#200](https://github.com/orbcorp/orb-ruby/issues/200)) ([59fb348](https://github.com/orbcorp/orb-ruby/commit/59fb348f33a4379778338d4f1791707713627a1e))
20+
321
## 0.1.0-alpha.31 (2025-04-01)
422

523
Full Changelog: [v0.1.0-alpha.30...v0.1.0-alpha.31](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.30...v0.1.0-alpha.31)

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-
orb (0.1.0.pre.alpha.31)
14+
orb (0.1.0.pre.alpha.32)
1515
connection_pool
1616

1717
GEM

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The underlying REST API documentation can be found on [docs.withorb.com](https:/
1313
To use this gem, install via Bundler by adding the following to your application's `Gemfile`:
1414

1515
```ruby
16-
gem "orb", "~> 0.1.0.pre.alpha.30"
16+
gem "orb", "~> 0.1.0.pre.alpha.31"
1717
```
1818

1919
To fetch an initial copy of the gem:
@@ -63,7 +63,7 @@ When the library is unable to connect to the API, or if the API returns a non-su
6363
```ruby
6464
begin
6565
customer = orb.customers.create(email: "example-customer@withorb.com", name: "My Customer")
66-
rescue Orb::Error => e
66+
rescue Orb::Errors::APIError => e
6767
puts(e.status) # 400
6868
end
6969
```
@@ -79,7 +79,7 @@ Error codes are as followed:
7979
| HTTP 409 | `ConflictError` |
8080
| HTTP 422 | `UnprocessableEntityError` |
8181
| HTTP 429 | `RateLimitError` |
82-
| HTTP >=500 | `InternalServerError` |
82+
| HTTP >= 500 | `InternalServerError` |
8383
| Other HTTP error | `APIStatusError` |
8484
| Timeout | `APITimeoutError` |
8585
| Network error | `APIConnectionError` |

lib/orb/client.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ class Client < Orb::Transport::BaseClient
7171

7272
# Creates and returns a new client for interacting with the API.
7373
#
74-
# @param base_url [String, nil] Override the default base URL for the API, e.g., `"https://api.example.com/v2/"`
75-
#
7674
# @param api_key [String, nil] Defaults to `ENV["ORB_API_KEY"]`
7775
#
76+
# @param base_url [String, nil] Override the default base URL for the API, e.g., `"https://api.example.com/v2/"`
77+
#
7878
# @param max_retries [Integer] Max number of retries to attempt after a failed retryable request.
7979
#
8080
# @param timeout [Float]
@@ -85,8 +85,8 @@ class Client < Orb::Transport::BaseClient
8585
#
8686
# @param idempotency_header [String]
8787
def initialize(
88-
base_url: nil,
8988
api_key: ENV["ORB_API_KEY"],
89+
base_url: nil,
9090
max_retries: DEFAULT_MAX_RETRIES,
9191
timeout: DEFAULT_TIMEOUT_IN_SECONDS,
9292
initial_retry_delay: DEFAULT_INITIAL_RETRY_DELAY,
@@ -96,7 +96,7 @@ def initialize(
9696
base_url ||= "https://api.withorb.com/v1"
9797

9898
if api_key.nil?
99-
raise ArgumentError.new("api_key is required")
99+
raise ArgumentError.new("api_key is required, and can be set via environ: \"ORB_API_KEY\"")
100100
end
101101

102102
@api_key = api_key.to_s

0 commit comments

Comments
 (0)