Sha256: ca8477c4317673ffd908b8def7cfdb9996f701927e4464e6caed138316fc6ea1

Contents?: true

Size: 939 Bytes

Versions: 136

Compression:

Stored size: 939 Bytes

Contents

# Handling New Ruby Versions

When a new Ruby version comes out, you shouldn't have to make any immediate changes to StandardRb. The default configuration is the `base.yml` configuration and should continue to work correctly.

Often, Rubocop will add new rules to encourage usage of new language features in new Ruby versions. When that happens:

1. Add the rule to the base.yml file and disable it.
1. Assess the new rule and see if it should be added to StandardRb. If not, you're done. If so, enable in `base.yml` and read on.
1. Add a new config file for the penultimate minor version of Ruby, so for example, if the new Ruby version is `3.1` then the new config file would be for `3.0`.
1. In the new config file, make sure it inherits from `base.yml` and disable the new rule.
1. In the previous latest config file, make sure it inherits from your new config file.

And that should add new rules to StandardRb safely and gracefully.

Version data entries

136 entries across 136 versions & 3 rubygems

Version Path
standard-1.41.1 docs/NEW_RUBIES.md
standard-1.41.0 docs/NEW_RUBIES.md
standard-1.40.1 docs/NEW_RUBIES.md
standard-1.40.0 docs/NEW_RUBIES.md
standard-1.39.2 docs/NEW_RUBIES.md
standard-1.39.1 docs/NEW_RUBIES.md
standard-1.39.0 docs/NEW_RUBIES.md
standard-1.38.0 docs/NEW_RUBIES.md
standard-1.37.0 docs/NEW_RUBIES.md
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/docs/NEW_RUBIES.md
standard-1.35.0.1 docs/NEW_RUBIES.md
standard-1.34.0.1 docs/NEW_RUBIES.md
standard-1.35.1 docs/NEW_RUBIES.md
standard-1.35.0 docs/NEW_RUBIES.md
standard-1.34.0 docs/NEW_RUBIES.md
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/docs/NEW_RUBIES.md
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/docs/NEW_RUBIES.md
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/docs/NEW_RUBIES.md
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/docs/NEW_RUBIES.md
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/docs/NEW_RUBIES.md