Skip to content

Commit d429b81

Browse files
committed
Fix incorrect plugin version when displaing rubocop -V
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 ```
1 parent 08a84f7 commit d429b81

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## master (unreleased)
44

5+
### Bug fixes
6+
7+
* [#59](https://github.com/rubocop/rubocop-rake/pull/59): Fix incorrect plugin version when displaing `rubocop -V`. ([@koic][])
8+
59
## 0.7.0 (2025-02-16)
610

711
### New features

lib/rubocop/rake/plugin.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Plugin < LintRoller::Plugin
99
def about
1010
LintRoller::About.new(
1111
name: 'rubocop-rake',
12-
version: Version::STRING,
12+
version: VERSION,
1313
homepage: 'https://github.com/rubocop/rubocop-rake',
1414
description: 'A RuboCop plugin for Rake.',
1515
)

0 commit comments

Comments
 (0)