X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/04b9d6e93ca8bd18dca697e56689820516c8c572..db376a8ddd3a803f4c9c85baf41cb57c6106452f:/sdk/ruby/arvados.gemspec diff --git a/sdk/ruby/arvados.gemspec b/sdk/ruby/arvados.gemspec index 609af6e23d..da919309f4 100644 --- a/sdk/ruby/arvados.gemspec +++ b/sdk/ruby/arvados.gemspec @@ -7,7 +7,7 @@ if not File.exist?('/usr/bin/git') then exit end -git_latest_tag = `git describe --abbrev=0` +git_latest_tag = `git tag -l |sort -V -r |head -n1` git_latest_tag = git_latest_tag.encode('utf-8').strip git_timestamp, git_hash = `git log -n1 --first-parent --format=%ct:%H .`.chomp.split(":") git_timestamp = Time.at(git_timestamp.to_i).utc