| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This is pretty much the community standard now, and is supported by all the major version managers (rbenv, rvm, chruby, etc.) and tooling (Rubocop, the `ruby/setup-ruby@v1` GitHub action, etc.)
|
|
||
| set :rvm_type, :user | ||
| set :rvm_ruby_version, '3.2.6' | ||
| set :rvm_ruby_version, File.read("#{File.dirname(__FILE__)}/../.ruby-version").strip |
There was a problem hiding this comment.
This style recommended/documented here: https://github.com/capistrano/rbenv?tab=readme-ov-file#usage
Sorry, something went wrong.
| - rubocop-rspec | ||
|
|
||
| AllCops: | ||
| TargetRubyVersion: 3.2 |
There was a problem hiding this comment.
https://docs.rubocop.org/rubocop/configuration.html#setting-the-target-ruby-version
If a TargetRubyVersion is not specified in your config, then RuboCop will check your project for a series of other files where the Ruby version may be specified already. The files that will be checked are (in this order): *.gemspec, .ruby-version, .tool-versions, and Gemfile.lock.
Sorry, something went wrong.
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby-version }} |
There was a problem hiding this comment.
https://github.com/ruby/setup-ruby?tab=readme-ov-file#single-job
Not needed with a .ruby-version
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This is pretty much the community standard now, and is supported by all the major version managers (rbenv, rvm, chruby, etc.) and tooling (Rubocop, the ruby/setup-ruby@v1 GitHub action, etc.)
Makes it a little more seamless to get up and running to make contributions.