X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e780e337d170036a69879debeb347a9c26a81518..72c6ba534706ddd929d11bf7800c7a483c9656af:/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