Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"cliVersion": "5.112.1",
"generatorName": "fernapi/fern-ruby-sdk",
"generatorVersion": "1.24.0",
"generatorConfig": {
"moduleName": "VitableConnect",
"offsetSemantics": "page-index",
"respectAuthSchemeNames": true
},
"originGitCommit": "c81f2000d5ca2d89b44dee19a4889b48e7fcc732",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.0.0",
"ciProvider": "github",
"sdkVersion": "1.0.0"
}
5 changes: 4 additions & 1 deletion .fernignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Files Fern must not overwrite or delete when regenerating this repo.
LICENSE
SECURITY.md
.github/workflows/publish-gem.yml
# Patched: excludes Fern's own entrypoint from Naming/FileName (generator bug).
.rubocop.yml
# Compatibility shim for the pre-1.0 require path.
lib/vitable_connect.rb
135 changes: 61 additions & 74 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,88 +1,75 @@
name: CI
on:
push:
branches:
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'
name: ci

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
build:
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
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')
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: |-
bundle install

- name: Get GitHub OIDC Token
if: |-
github.repository == 'stainless-sdks/vitable-connect-ruby' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Build and upload gem artifacts
if: |-
github.repository == 'stainless-sdks/vitable-connect-ruby' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
PACKAGE_NAME: vitable_connect
run: ./scripts/utils/upload-artifact.sh
lint:
timeout-minutes: 10
name: lint
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
ruby-version: "3.3"

- name: Install dependencies
run: bundle install

- name: Run Rubocop
run: bundle exec rubocop

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: |-
bundle install
ruby-version: "3.3"

- name: Install dependencies
run: bundle install

- name: Run Tests
run: bundle exec rake test

publish:
name: Publish to RubyGems.org
runs-on: ubuntu-latest
needs: [lint, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

permissions:
id-token: write
contents: write

- name: Run lints
run: ./scripts/lint
test:
timeout-minutes: 10
name: test
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
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: |-
bundle install
ruby-version: "3.3"

- name: Install dependencies
run: bundle install

- name: Configure RubyGems credentials
uses: rubygems/configure-rubygems-credentials@v1.0.0

- name: Build gem
run: bundle exec rake build

- name: Run tests
run: ./scripts/test
- name: Push gem to RubyGems
run: gem push pkg/*.gem
37 changes: 0 additions & 37 deletions .github/workflows/publish-gem.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/release-doctor.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
*.gem
.idea/
.ignore
.prism.log
.stdy.log
.ruby-lsp/
.yardoc/
bin/tapioca
Brewfile.lock.json
doc/
sorbet/tapioca/*
3 changes: 0 additions & 3 deletions .release-please-manifest.json

This file was deleted.

Loading
Loading