diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cda9cbdf..4c5a1a01 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.2" + ".": "0.1.3" } \ No newline at end of file diff --git a/.solargraph.yml b/.solargraph.yml index adc3a0a0..42564a54 100644 --- a/.solargraph.yml +++ b/.solargraph.yml @@ -5,7 +5,7 @@ include: - 'Rakefile' - 'examples/**/*.rb' - 'lib/**/*.rb' - - 'test/orb-billing/resource_namespaces.rb' - - 'test/orb-billing/test_helper.rb' + - 'test/orb/resource_namespaces.rb' + - 'test/orb/test_helper.rb' exclude: - 'rbi/**/*' diff --git a/CHANGELOG.md b/CHANGELOG.md index c3a3e216..a4b80c0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.1.3 (2025-04-11) + +Full Changelog: [v0.1.2...v0.1.3](https://github.com/orbcorp/orb-ruby/compare/v0.1.2...v0.1.3) + +### Bug Fixes + +* inaccuracies in the README.md ([f07ef0e](https://github.com/orbcorp/orb-ruby/commit/f07ef0e9ecbecd44e66bfb8df9fe5e271f19c09a)) + + +### Chores + +* fix lsp configuration file for local development ([9574fe5](https://github.com/orbcorp/orb-ruby/commit/9574fe55bec14d4356758e27f61b3be97395023a)) +* **internal:** version bump ([a8232d6](https://github.com/orbcorp/orb-ruby/commit/a8232d644f3a97a6d8e339037faa5f4af7174c2a)) + ## 0.1.2 (2025-04-09) Full Changelog: [v0.1.1...v0.1.2](https://github.com/orbcorp/orb-ruby/compare/v0.1.1...v0.1.2) diff --git a/Gemfile.lock b/Gemfile.lock index 8587d5c9..8e35716f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb-billing (0.1.1) + orb-billing (0.1.2) connection_pool GEM diff --git a/README.md b/README.md index 32ec35a8..375bca97 100644 --- a/README.md +++ b/README.md @@ -15,22 +15,16 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "orb-billing", "~> 0.1.2" +gem "orb-billing", "~> 0.1.3" ``` -To fetch an initial copy of the gem: - -```sh -bundle install -``` - ## Usage ```ruby require "bundler/setup" -require "orb-billing" +require "orb" orb = Orb::Client.new( api_key: "My API Key" # defaults to ENV["ORB_API_KEY"] @@ -62,7 +56,7 @@ end ### Errors -When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `Orb::Error` will be thrown: +When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `Orb::Errors::APIError` will be thrown: ```ruby begin @@ -168,8 +162,7 @@ Due to limitations with the Sorbet type system, where a method otherwise can tak Please follow Sorbet's [setup guides](https://sorbet.org/docs/adopting) for best experience. ```ruby -params = - Orb::Models::CustomerCreateParams.new(email: "example-customer@withorb.com", name: "My Customer") +params = Orb::Models::CustomerCreateParams.new(email: "example-customer@withorb.com", name: "My Customer") orb.customers.create(**params) ``` @@ -197,8 +190,7 @@ If you want to explicitly send an extra param, you can do so with the `extra_que To make requests to undocumented endpoints, you can make requests using `client.request`. Options on the client will be respected (such as retries) when making this request. ```ruby -response = - client.request( +response = client.request( method: :post, path: '/undocumented/endpoint', query: {"dog": "woof"}, diff --git a/lib/orb/version.rb b/lib/orb/version.rb index 07dbd1f3..902cbc99 100644 --- a/lib/orb/version.rb +++ b/lib/orb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Orb - VERSION = "0.1.2" + VERSION = "0.1.3" end diff --git a/orb.gemspec b/orb.gemspec index af5cc9bb..83e9b7e7 100644 --- a/orb.gemspec +++ b/orb.gemspec @@ -8,7 +8,7 @@ Gem::Specification.new do |s| s.summary = "Ruby library to access the Orb API" s.authors = ["Orb"] s.email = "team@withorb.com" - s.files = Dir["lib/**/*.rb", "rbi/**/*.rbi", "sig/**/*.rbs", "manifest.yaml"] + s.files = Dir["lib/**/*.rb", "rbi/**/*.rbi", "sig/**/*.rbs", "manifest.yaml", "CHANGELOG.md", "SECURITY.md"] s.extra_rdoc_files = ["README.md"] s.required_ruby_version = ">= 3.0.0" s.add_dependency "connection_pool"