Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
permissions:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/vitable-connect-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: |-
github.repository == 'stainless-sdks/vitable-connect-ruby' &&
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/vitable-connect-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
Expand All @@ -73,7 +73,7 @@ jobs:
test:
timeout-minutes: 10
name: test
runs-on: ${{ github.repository == 'stainless-sdks/vitable-connect-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.5.0"
".": "0.6.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 20
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/vitable/vitable-connect-4e049d21bf4d1154541a77764427eafdc9a088c0a55f31f1d8880b388f18c0de.yml
openapi_spec_hash: eada242b2cc0d091d633c264be7f8a69
config_hash: f9c90441d2ba5436a2224f6ba4f669e9
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/vitable/vitable-connect-0cad8b2afe668835947111b8104ce1208656ff7345454963d54ca8f61287c25b.yml
openapi_spec_hash: 600b580ad628a1e04804503f22819c39
config_hash: 7295ebbd0e718c807378a7e264b1f400
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 0.6.0 (2026-07-21)

Full Changelog: [v0.5.0...v0.6.0](https://github.com/Vitable-Inc/vitable-connect-ruby/compare/v0.5.0...v0.6.0)

### Features

* **api:** api update ([d27c533](https://github.com/Vitable-Inc/vitable-connect-ruby/commit/d27c533ad620cce795687476e75da6c6ca58c981))
* **api:** api update ([9977677](https://github.com/Vitable-Inc/vitable-connect-ruby/commit/99776776cfdda16a6c1d747411f593e6a6604a93))
* **api:** removed benefit policies from api reference ([a030ce5](https://github.com/Vitable-Inc/vitable-connect-ruby/commit/a030ce509786dee1f6c331bd0d74914caaf79b16))
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([432db79](https://github.com/Vitable-Inc/vitable-connect-ruby/commit/432db791d9bb609ce1f65cbbe338e41254edf038))


### Chores

* **internal:** bound formatter parallelism to CPU count ([fa81169](https://github.com/Vitable-Inc/vitable-connect-ruby/commit/fa811693161dee1bc144df4db95258ca4755ed51))

## 0.5.0 (2026-06-18)

Full Changelog: [v0.4.0...v0.5.0](https://github.com/Vitable-Inc/vitable-connect-ruby/compare/v0.4.0...v0.5.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
vitable-connect (0.5.0)
vitable-connect (0.6.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "vitable-connect", "~> 0.5.0"
gem "vitable-connect", "~> 0.6.0"
```

<!-- x-release-please-end -->
Expand Down
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require "etc"
require "pathname"
require "securerandom"
require "shellwords"
Expand Down Expand Up @@ -37,7 +38,11 @@ multitask(:test) do
ruby(*%w[-w -e], rb, verbose: false) { fail unless _1 }
end

xargs = %w[xargs --no-run-if-empty --null --max-procs=0 --max-args=300 --]
# Cap parallelism at the CPU count. `--max-procs=0` spawns one process per
# 300-file batch with no upper bound; on large SDKs (thousands of files) that
# oversubscribes CPUs and stacks up rubocop processes, exhausting memory and
# slowing CI to the point of timing out.
xargs = %W[xargs --no-run-if-empty --null --max-procs=#{Etc.nprocessors} --max-args=300 --]
ruby_opt = {"RUBYOPT" => [ENV["RUBYOPT"], "--encoding=UTF-8"].compact.join(" ")}

filtered = ->(ext, dirs) do
Expand Down
2 changes: 0 additions & 2 deletions lib/vitable_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
require_relative "vitable_connect/models/pagination"
require_relative "vitable_connect/models/plan_list_params"
require_relative "vitable_connect/models/plan_list_response"
require_relative "vitable_connect/models/type"
require_relative "vitable_connect/models/webhook_event"
require_relative "vitable_connect/models/webhook_event_list_deliveries_params"
require_relative "vitable_connect/models/webhook_event_list_deliveries_response"
Expand All @@ -96,7 +95,6 @@
require_relative "vitable_connect/models/webhook_event_retrieve_response"
require_relative "vitable_connect/models"
require_relative "vitable_connect/resources/auth"
require_relative "vitable_connect/resources/benefit_eligibility_policies"
require_relative "vitable_connect/resources/employees"
require_relative "vitable_connect/resources/employers"
require_relative "vitable_connect/resources/enrollments"
Expand Down
4 changes: 0 additions & 4 deletions lib/vitable_connect/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ class Client < VitableConnect::Internal::Transport::BaseClient
# @return [VitableConnect::Resources::Auth]
attr_reader :auth

# @return [VitableConnect::Resources::BenefitEligibilityPolicies]
attr_reader :benefit_eligibility_policies

# @return [VitableConnect::Resources::Employees]
attr_reader :employees

Expand Down Expand Up @@ -127,7 +124,6 @@ def initialize(
)

@auth = VitableConnect::Resources::Auth.new(client: self)
@benefit_eligibility_policies = VitableConnect::Resources::BenefitEligibilityPolicies.new(client: self)
@employees = VitableConnect::Resources::Employees.new(client: self)
@employers = VitableConnect::Resources::Employers.new(client: self)
@enrollments = VitableConnect::Resources::Enrollments.new(client: self)
Expand Down
22 changes: 13 additions & 9 deletions lib/vitable_connect/internal/type/enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,28 @@ module Type
# values safely.
#
# @example
# # `type` is a `VitableConnect::Type`
# case type
# when VitableConnect::Type::EMPLOYER
# # `employee_class` is a `VitableConnect::EmployeeClass`
# case employee_class
# when VitableConnect::EmployeeClass::FULL_TIME
# # ...
# when VitableConnect::Type::EMPLOYEE
# when VitableConnect::EmployeeClass::PART_TIME
# # ...
# when VitableConnect::EmployeeClass::TEMPORARY
# # ...
# else
# puts(type)
# puts(employee_class)
# end
#
# @example
# case type
# in :employer
# case employee_class
# in :"Full Time"
# # ...
# in :"Part Time"
# # ...
# in :employee
# in :Temporary
# # ...
# else
# puts(type)
# puts(employee_class)
# end
module Enum
include VitableConnect::Internal::Type::Converter
Expand Down
2 changes: 0 additions & 2 deletions lib/vitable_connect/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ module VitableConnect

PlanListParams = VitableConnect::Models::PlanListParams

Type = VitableConnect::Models::Type

WebhookEvent = VitableConnect::Models::WebhookEvent

WebhookEventListDeliveriesParams = VitableConnect::Models::WebhookEventListDeliveriesParams
Expand Down
20 changes: 17 additions & 3 deletions lib/vitable_connect/models/auth_issue_access_token_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class BoundEntity < VitableConnect::Internal::Type::BaseModel
# - `employer` - employer
# - `employee` - employee
#
# @return [Symbol, VitableConnect::Models::Type]
required :type, enum: -> { VitableConnect::Type }
# @return [Symbol, VitableConnect::Models::AuthIssueAccessTokenParams::BoundEntity::Type]
required :type, enum: -> { VitableConnect::AuthIssueAccessTokenParams::BoundEntity::Type }

# @!method initialize(id:, type:)
# Some parameter documentations has been truncated, see
Expand All @@ -61,7 +61,21 @@ class BoundEntity < VitableConnect::Internal::Type::BaseModel
# @param id [String] Prefixed entity ID to bind the token to (empr*\* for employer, empl*\* for
# employe
#
# @param type [Symbol, VitableConnect::Models::Type] - `employer` - employer
# @param type [Symbol, VitableConnect::Models::AuthIssueAccessTokenParams::BoundEntity::Type] - `employer` - employer

# - `employer` - employer
# - `employee` - employee
#
# @see VitableConnect::Models::AuthIssueAccessTokenParams::BoundEntity#type
module Type
extend VitableConnect::Internal::Type::Enum

EMPLOYER = :employer
EMPLOYEE = :employee

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
Expand Down
20 changes: 17 additions & 3 deletions lib/vitable_connect/models/auth_issue_access_token_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class BoundEntity < VitableConnect::Internal::Type::BaseModel
# - `employer` - employer
# - `employee` - employee
#
# @return [Symbol, VitableConnect::Models::Type]
required :type, enum: -> { VitableConnect::Type }
# @return [Symbol, VitableConnect::Models::AuthIssueAccessTokenResponse::BoundEntity::Type]
required :type, enum: -> { VitableConnect::Models::AuthIssueAccessTokenResponse::BoundEntity::Type }

# @!method initialize(id:, type:)
# Some parameter documentations has been truncated, see
Expand All @@ -63,7 +63,21 @@ class BoundEntity < VitableConnect::Internal::Type::BaseModel
#
# @param id [String] Prefixed entity ID the token is bound to (empr*\* or empl*\*)
#
# @param type [Symbol, VitableConnect::Models::Type] - `employer` - employer
# @param type [Symbol, VitableConnect::Models::AuthIssueAccessTokenResponse::BoundEntity::Type] - `employer` - employer

# - `employer` - employer
# - `employee` - employee
#
# @see VitableConnect::Models::AuthIssueAccessTokenResponse::BoundEntity#type
module Type
extend VitableConnect::Internal::Type::Enum

EMPLOYER = :employer
EMPLOYEE = :employee

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
Expand Down
Loading