From a198860c7ceba43ccee428c20bdd082f2bdaba6e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 8 Jan 2020 15:51:35 +0900 Subject: [PATCH] Achieve version numbers from tags --- ruby2_keywords.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby2_keywords.gemspec b/ruby2_keywords.gemspec index 2a07f5a..623c58c 100644 --- a/ruby2_keywords.gemspec +++ b/ruby2_keywords.gemspec @@ -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"