Skip to content

Commit 8a8d905

Browse files
committed
fix: regenerate API docs + fix Ruby CI task for non-rbenv environments
- Regenerate API reference docs to match pub(crate) API surface - Fix Ruby tasks to work without rbenv (CI uses actions/setup-ruby)
1 parent 746f547 commit 8a8d905

14 files changed

Lines changed: 873 additions & 5464 deletions

.task/ruby.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tasks:
2424
- python3 scripts/ci/ruby/vendor-core.py
2525

2626
build:
27-
desc: Build Ruby native extension (requires Ruby 3.2-3.4 via rbenv)
27+
desc: Build Ruby native extension (requires Ruby 3.2-3.4)
2828
dir: packages/ruby
2929
env:
3030
PROJECT_ROOT: "{{.PROJECT_ROOT}}"
@@ -43,50 +43,38 @@ tasks:
4343
format:
4444
desc: Format Ruby code
4545
dir: packages/ruby
46-
env:
47-
RBENV_VERSION: "3.4.8"
4846
cmds:
49-
- eval "$(rbenv init - bash)" && bundle exec rubocop -a
47+
- '{{ if .RBENV_ROOT }}eval "$(rbenv init - bash)" && {{ end }}bundle exec rubocop -a'
5048

5149
format:check:
5250
desc: Check Ruby formatting (CI)
5351
dir: packages/ruby
54-
env:
55-
RBENV_VERSION: "3.4.8"
5652
cmds:
57-
- eval "$(rbenv init - bash)" && bundle exec rubocop --format simple
53+
- '{{ if .RBENV_ROOT }}eval "$(rbenv init - bash)" && {{ end }}bundle exec rubocop --format simple'
5854

5955
lint:
6056
desc: Lint Ruby code
6157
dir: packages/ruby
62-
env:
63-
RBENV_VERSION: "3.4.8"
6458
cmds:
65-
- eval "$(rbenv init - bash)" && bundle exec rubocop
59+
- '{{ if .RBENV_ROOT }}eval "$(rbenv init - bash)" && {{ end }}bundle exec rubocop'
6660

6761
lint:check:
6862
desc: Check Ruby linting without modifications (CI)
6963
dir: packages/ruby
70-
env:
71-
RBENV_VERSION: "3.4.8"
7264
cmds:
73-
- eval "$(rbenv init - bash)" && bundle exec rubocop --format simple
65+
- '{{ if .RBENV_ROOT }}eval "$(rbenv init - bash)" && {{ end }}bundle exec rubocop --format simple'
7466

7567
typecheck:
7668
desc: Run Steep type checking
7769
dir: packages/ruby
78-
env:
79-
RBENV_VERSION: "3.4.8"
8070
cmds:
81-
- eval "$(rbenv init - bash)" && bundle exec steep check
71+
- '{{ if .RBENV_ROOT }}eval "$(rbenv init - bash)" && {{ end }}bundle exec steep check'
8272

8373
rbs-validate:
8474
desc: Validate RBS type signatures
8575
dir: packages/ruby
86-
env:
87-
RBENV_VERSION: "3.4.8"
8876
cmds:
89-
- eval "$(rbenv init - bash)" && bundle exec rbs validate
77+
- '{{ if .RBENV_ROOT }}eval "$(rbenv init - bash)" && {{ end }}bundle exec rbs validate'
9078

9179
clean:
9280
desc: Clean Ruby build artifacts

0 commit comments

Comments
 (0)