Skip to content

Commit

Permalink
Fix incorrect plugin version when displaing rubocop -V
Browse files Browse the repository at this point in the history
This commit fixes incorrect plugin version when displaing `rubocop -V`.

## Before

The RuboCop core version is displayed incorrectly for `rubocop-rake`:

```console
$ bundle exec rubocop -V
1.72.1 (using Parser 3.3.6.0, rubocop-ast 1.38.0, analyzing as Ruby 3.4, running on ruby 3.4.1) [x86_64-darwin23]
  - rubocop-rake 1.72.1
```

## After

The correct `rubocop-rake` version is displayed:

```console
$ bundle exec rubocop -V
1.72.1 (using Parser 3.3.6.0, rubocop-ast 1.38.0, analyzing as Ruby 3.4, running on ruby 3.4.1) [x86_64-darwin23]
  - rubocop-rake 0.7.0
```
  • Loading branch information
koic committed Feb 16, 2025
1 parent 08a84f7 commit d429b81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## master (unreleased)

### Bug fixes

* [#59](https://github.com/rubocop/rubocop-rake/pull/59): Fix incorrect plugin version when displaing `rubocop -V`. ([@koic][])

## 0.7.0 (2025-02-16)

### New features
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/rake/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Plugin < LintRoller::Plugin
def about
LintRoller::About.new(
name: 'rubocop-rake',
version: Version::STRING,
version: VERSION,
homepage: 'https://github.com/rubocop/rubocop-rake',
description: 'A RuboCop plugin for Rake.',
)
Expand Down

0 comments on commit d429b81

Please sign in to comment.