Skip to content

Commit

Permalink
Achieve version numbers from tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 8, 2020
1 parent 07e126e commit a198860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby2_keywords.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.0.1"
version = IO.popen(%W[git -C #{__dir__} describe --tags --match v[0-9]*], &:read)[/\Av?(\d+(?:\.\d+)*)/, 1]

Gem::Specification.new do |s|
s.name = "ruby2_keywords"
Expand Down

0 comments on commit a198860

Please sign in to comment.