Skip to content

Commit

Permalink
Specify the release version of document URL for rubygems.org
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Oct 6, 2020
1 parent 63c1efb commit 79d11d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/rubocop/performance/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

module RuboCop
module Performance
# This module holds the RuboCop Performance version information.
module Version
STRING = '1.8.1'

def self.document_version
STRING.match('\d+\.\d+').to_s
end
end
end
end
4 changes: 3 additions & 1 deletion rubocop-performance.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ Gem::Specification.new do |s|
'homepage_uri' => 'https://docs.rubocop.org/rubocop-performance/',
'changelog_uri' => 'https://github.com/rubocop-hq/rubocop-performance/blob/master/CHANGELOG.md',
'source_code_uri' => 'https://github.com/rubocop-hq/rubocop-performance/',
'documentation_uri' => 'https://docs.rubocop.org/rubocop-performance/',
# rubocop:disable Layout/LineLength
'documentation_uri' => "https://docs.rubocop.org/rubocop-performance/#{RuboCop::Performance::Version.document_version}/",
# rubocop:enable Layout/LineLength
'bug_tracker_uri' => 'https://github.com/rubocop-hq/rubocop-performance/issues'
}

Expand Down

0 comments on commit 79d11d7

Please sign in to comment.