Skip to content

Commit 8ec0d75

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 8ec0d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubocop/rake/plugin.rb

Lines changed: 1 addition & 1 deletion
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)