lib/semantic/version.rb in semantic-1.4.0 vs lib/semantic/version.rb in semantic-1.4.1

- old
+ new

@@ -18,9 +18,13 @@ @major, @minor, @patch = version.split('.').map(&:to_i) end + def build=(b) + @build = (!b.nil? && b.empty?) ? nil : b + end + def to_a [@major, @minor, @patch, @pre, @build] end def to_s