Skip to content

Bump Ruby to 3.3#41

Open
zaratan wants to merge 3 commits into
shotgunsoftware:mainfrom
zaratan:tech/ruby_bump_3.3
Open

Bump Ruby to 3.3#41
zaratan wants to merge 3 commits into
shotgunsoftware:mainfrom
zaratan:tech/ruby_bump_3.3

Conversation

@zaratan
Copy link
Copy Markdown
Contributor

@zaratan zaratan commented May 10, 2026

  • Bumped project Ruby to 3.3
  • Updated ruby test Matrix to not EOL rubies
  • Updated Tapioca/Sorbet/Rubocop

@zaratan
Copy link
Copy Markdown
Contributor Author

zaratan commented May 11, 2026

To help you review : Anything in sorbet and docs is autogenerated by gems. The actual changes are small.

Comment thread shotgrid_api_ruby.gemspec
spec.add_dependency 'zeitwerk', '~> 2.2'

spec.add_development_dependency 'bundler'
spec.metadata = { 'rubygems_mfa_required' => 'true' }
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW : This was burning the config on line 20-24

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call!

Copy link
Copy Markdown

@tzucm tzucm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few minor comments. Thanks for the effort on this upgrade, great work!

Module: ShotgridApiRuby::Auth::Validator

— Documentation by YARD 0.9.28
— Documentation by YARD 0.9.43
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that the docs/ (Yard files) directory is already included in .gitignore, but these files are still being tracked. Could we untrack them to prevent this noise in future PRs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a workaround introduced a while back and completely willing to remove/change it.

I wanted the ruby doc for this gem to be bundled into the repo for it to be accessible on Github Pages. I'm unsure if it's still published on Github pages and I can't see any URL to the doc in the gemspec so that flow is probably broken. How the flow works right now :

  • Someone clone the gem repo and install the git hooks (via overcommit)
  • Someone commit => The pre-commit git hooks run (.overcommit.yml line 15-17 => bin/generate_and_add_documentation => yard doc --plugin sorbet -o docs && git add -f docs) and this will write and commit the docs into the repo.

This (kind of) ensure the doc stay up to date. Should I redo it now it would probably be actions doing it and it would be much cleaner, but… 🤷

Should we address this in this PR ? (The MacOS file is also created/added because of this flow I can definitely change the git add -f docs part of the command to ignore the .DS_Store but that would complexify a command that we might end up scrapping in the end)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What we can/should do is either :

  • Scrap all this directly in this PR. Do not generate the docs and people can do it if they need to.
  • Do this in another PR to separate issues
  • Keep it and fix the Github Pages issue together so the documentation link appears on rubygems.

Comment thread docs/.DS_Store
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we please delete this macOS file? Also, we should probably add these types of files to the .gitignore. Thanks!

Comment thread shotgrid_api_ruby.gemspec
spec.add_dependency 'zeitwerk', '~> 2.2'

spec.add_development_dependency 'bundler'
spec.metadata = { 'rubygems_mfa_required' => 'true' }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call!

@zaratan
Copy link
Copy Markdown
Contributor Author

zaratan commented May 28, 2026

@tzucm Thanks for the review ! Tell me what you want me to do regarding the docs. Just so you know I have 3 other PRs parked and waiting this approval to be submitted (Upgrading safe deps, Upgrading to Faraday 2 and moving out of prettier for SyntaxTree (which prettier-ruby was based upon) which allowed me to remove all JS from this repo)

@zaratan zaratan requested a review from tzucm May 28, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants