12167: Merge branch 'master'
[arvados.git] / sdk / ruby / arvados.gemspec
index 08ace0fbd3345a980707494421e3f5015696c617..e39c4263177b8ed4f290c17cb744c309725c56bc 100644 (file)
@@ -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|