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

- old
+ new

@@ -47,10 +47,10 @@ # @see Format#parse def parse(version_string) match = version_string.match(SEMVER_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, @build = match[1..5] @major, @minor, @patch = [@major, @minor, @patch].map(&:to_i)