lib/omnibus/build_version_dsl.rb in omnibus-5.4.0 vs lib/omnibus/build_version_dsl.rb in omnibus-5.5.0

- old
+ new

@@ -12,11 +12,11 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # -require 'time' +require "time" module Omnibus class BuildVersionDSL include Logging @@ -130,12 +130,12 @@ # 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| + build_info.split(".").any? do |part| begin Time.strptime(part, Omnibus::BuildVersion::TIMESTAMP_FORMAT) true rescue ArgumentError false