Skip to content

Commit 86cc7ea

Browse files
committed
use lib/version.rb for fetching the gem version to use
1 parent c69cf1e commit 86cc7ea

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# frozen_string_literal: true
2+
3+
VERSION = "0.22.0"

rubocop-github.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# frozen_string_literal: true
22

3+
require_relative "lib/version"
4+
35
Gem::Specification.new do |s|
46
s.name = "rubocop-github"
5-
s.version = "0.22.0"
7+
s.version = VERSION
68
s.summary = "RuboCop GitHub"
79
s.description = "Code style checking for GitHub Ruby repositories "
810
s.homepage = "https://github.com/github/rubocop-github"

0 commit comments

Comments
 (0)