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
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cliVersion": "4.43.1",
"generatorName": "fernapi/fern-ruby-sdk",
"generatorVersion": "1.1.10",
"generatorConfig": {
"module": "SchematicHQ",
"rubocopVariableNumberStyle": "disabled"
},
"originGitCommit": "464a4739821bafe4f8f6f2da0f78530c78ec40e3",
"sdkVersion": "0.0.1"
}
1 change: 1 addition & 0 deletions .fernignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Specify files that shouldn't be modified by Fern
75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: ci

on: [push, pull_request]

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

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"

- name: Install dependencies
run: bundle install

- name: Run Rubocop
run: bundle exec rubocop

test:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
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

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
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: Push gem to RubyGems
run: gem push pkg/*.gem
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.gem
69 changes: 69 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
plugins:
- rubocop-minitest

AllCops:
TargetRubyVersion: 3.3
NewCops: enable

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes

Style/AccessModifierDeclarations:
Enabled: false

Lint/ConstantDefinitionInBlock:
Enabled: false

Metrics/AbcSize:
Enabled: false

Metrics/BlockLength:
Enabled: false

Metrics/ClassLength:
Enabled: false

Metrics/MethodLength:
Enabled: false

Metrics/ParameterLists:
Enabled: false

Metrics/PerceivedComplexity:
Enabled: false

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/ModuleLength:
Enabled: false

Layout/LineLength:
Enabled: false

Naming/VariableNumber:
Enabled: false

Style/Documentation:
Enabled: false

Style/Lambda:
EnforcedStyle: literal

Minitest/MultipleAssertions:
Enabled: false

Minitest/UselessAssertion:
Enabled: false

# Dynamic snippets are code samples for documentation, not standalone Ruby files.
Style/FrozenStringLiteralComment:
Exclude:
- "dynamic-snippets/**/*"

Layout/FirstHashElementIndentation:
Exclude:
- "dynamic-snippets/**/*"
23 changes: 23 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec

group :test, :development do
gem "rake", "~> 13.0"

gem "minitest", "~> 5.16"
gem "minitest-rg"

gem "rubocop", "~> 1.21"
gem "rubocop-minitest"

gem "pry"

gem "webmock"
end

# Load custom Gemfile configuration if it exists
custom_gemfile = File.join(__dir__, "Gemfile.custom")
eval_gemfile(custom_gemfile) if File.exist?(custom_gemfile)
14 changes: 14 additions & 0 deletions Gemfile.custom
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

# Custom Gemfile configuration file
# This file is automatically loaded by the main Gemfile. You can add custom gems,
# groups, or other Gemfile configurations here. If you do make changes to this file,
# you will need to add it to the .fernignore file to prevent your changes from being
# overwritten by the generator.

# Example usage:
# group :test, :development do
# gem 'custom-gem', '~> 2.0'
# end

# Add your custom gem dependencies here
85 changes: 85 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
PATH
remote: .
specs:
schematichq (0.0.1)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.9)
public_suffix (>= 2.0.2, < 8.0)
ast (2.4.3)
bigdecimal (4.1.0)
coderay (1.1.3)
crack (1.0.1)
bigdecimal
rexml
hashdiff (1.2.1)
io-console (0.8.2)
json (2.19.3)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
method_source (1.1.0)
minitest (5.27.0)
minitest-rg (5.4.0)
minitest (>= 5.0, < 7)
parallel (1.27.0)
parser (3.3.11.1)
ast (~> 2.4.1)
racc
prism (1.9.0)
pry (0.16.0)
coderay (~> 1.1)
method_source (~> 1.0)
reline (>= 0.6.0)
public_suffix (7.0.5)
racc (1.8.1)
rainbow (3.1.1)
rake (13.3.1)
regexp_parser (2.11.3)
reline (0.6.3)
io-console (~> 0.5)
rexml (3.4.4)
rubocop (1.86.0)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.49.1)
parser (>= 3.3.7.2)
prism (~> 1.7)
rubocop-minitest (0.39.1)
lint_roller (~> 1.1)
rubocop (>= 1.75.0, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
ruby-progressbar (1.13.0)
unicode-display_width (3.2.0)
unicode-emoji (~> 4.1)
unicode-emoji (4.2.0)
webmock (3.26.2)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)

PLATFORMS
ruby
x86_64-linux-musl

DEPENDENCIES
minitest (~> 5.16)
minitest-rg
pry
rake (~> 13.0)
rubocop (~> 1.21)
rubocop-minitest
schematichq!
webmock

BUNDLED WITH
2.5.22
Loading
Loading