Skip to content

Configure Linter for minimum Ruby version compatibility #976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

koic
Copy link
Contributor

@koic koic commented Apr 30, 2025

Standard Ruby runs the linter using the runtime Ruby version by default, but developers may use any Ruby version supported by Langchain.rb. This means the linter should work correctly across all supported Ruby versions (3.1+), so it's best to specify the minimum supported version via the ruby_version: 3.1 setting: https://github.com/standardrb/standard?tab=readme-ov-file#configuring-ruby_version

For reference, the Ruby version used in GitHub Actions for linting is currently set to 3.2, so the linter is effectively running under Ruby 3.2 at the moment: https://github.com/patterns-ai-core/langchainrb/blob/0.19.4/.github/workflows/ci.yml#L56

Since the ruby_version: 3.1 setting takes precedence over the runtime version, this patch would also address that concern.

koic and others added 2 commits April 30, 2025 10:29
Standard Ruby runs the linter using the runtime Ruby version by default,
but developers may use any Ruby version supported by Langchain.rb.
This means the linter should work correctly across all supported Ruby versions (3.1+),
so it's best to specify the minimum supported version via the `ruby_version: 3.1` setting:
https://github.com/standardrb/standard?tab=readme-ov-file#configuring-ruby_version

For reference, the Ruby version used in GitHub Actions for linting is currently set to 3.2,
so the linter is effectively running under Ruby 3.2 at the moment:
https://github.com/patterns-ai-core/langchainrb/blob/0.19.4/.github/workflows/ci.yml#L56

Since the `ruby_version: 3.1` setting takes precedence over the runtime version,
this patch would also address that concern.
@andreibondarev
Copy link
Collaborator

@koic Thank you! Tons of really great changes!

@andreibondarev andreibondarev merged commit 6d6d179 into patterns-ai-core:main May 16, 2025
6 checks passed
@koic koic deleted the configure_standard_ruby_for_minimum_ruby_version_compatibility branch May 16, 2025 02:28
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