lib/omnibus/build_version_dsl.rb in omnibus-9.0.22 vs lib/omnibus/build_version_dsl.rb in omnibus-9.0.23
- old
+ new
@@ -115,12 +115,15 @@
# Config.append_timestamp is true
#
# @param [String] version
# @return [String]
def maybe_append_timestamp(version)
+ log.debug(log_key) { "#{self.class}##{__method__} - Config.append_timestamp: #{Config.append_timestamp}" }
+ log.debug(log_key) { "#{self.class}##{__method__} - version: #{version}" }
+ log.debug(log_key) { "#{self.class}##{__method__} - has_timestamp?(version): #{has_timestamp?(version)}" }
if Config.append_timestamp && !has_timestamp?(version)
- [version, Omnibus::BuildVersion.build_start_time].join("+")
+ [version, Omnibus::BuildVersion.build_start_time].join("-")
else
version
end
end
@@ -130,10 +133,10 @@
# BuildVersion.semver to create dates.
#
# @param [String] version
# @return [Boolean]
def has_timestamp?(version)
- _ver, build_info = version.split("+")
+ _ver, build_info = version.split("-")
return false if build_info.nil?
build_info.split(".").any? do |part|
Time.strptime(part, Omnibus::BuildVersion::TIMESTAMP_FORMAT)
true