lib/makit/version.rb in makit-0.0.50 vs lib/makit/version.rb in makit-0.0.51

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true module Makit - VERSION = "0.0.50" + VERSION = "0.0.51" class Version # given an array of version strings, return the highest version def self.get_highest_version(versions) versions.sort { |a, b| Gem::Version.new(a) <=> Gem::Version.new(b) }.last @@ -30,10 +30,10 @@ when ".csproj" Makit::Version.detect_from_file(path, /<Version>([-\w\d.]+)</) when ".wxs" Makit::Version.detect_from_file(path, / Version="([\d\.]+)"/) when ".yml" - Makit::Version.detect_from_file(path, /VERSION:\s?(['|"])([\d\.]+)\1/) + Makit::Version.detect_from_file(path, /VERSION:\s*["']?([\d\.]+)["']?/) else raise "unrecognized file type" end end