X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/01b7da36d017bd061c6f104a02471faced68c28b..3e1c43866e5b523c3f1d273c25942ad56dc66d3f:/sdk/ruby/arvados.gemspec diff --git a/sdk/ruby/arvados.gemspec b/sdk/ruby/arvados.gemspec index 08ace0fbd3..e39c426317 100644 --- a/sdk/ruby/arvados.gemspec +++ b/sdk/ruby/arvados.gemspec @@ -8,7 +8,8 @@ if not File.exist?('/usr/bin/git') then end git_latest_tag = `git describe --abbrev=0` -git_timestamp = `git log -n1 --first-parent --format=%ct` +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 Gem::Specification.new do |s|