lib/mixlib/versioning/format/git_describe.rb in mixlib-versioning-1.1.0 vs lib/mixlib/versioning/format/git_describe.rb in mixlib-versioning-1.2.1

- old
+ new

@@ -51,10 +51,10 @@ # @see Format#parse def parse(version_string) match = version_string.match(GIT_DESCRIBE_REGEX) rescue nil unless match - fail Mixlib::Versioning::ParseError, "'#{version_string}' is not a valid #{self.class} version string!" + raise Mixlib::Versioning::ParseError, "'#{version_string}' is not a valid #{self.class} version string!" end @major, @minor, @patch, @prerelease, @commits_since, @commit_sha, @iteration = match[1..7] @major, @minor, @patch, @commits_since, @iteration = [@major, @minor, @patch, @commits_since, @iteration].map(&:to_i)