lib/versionaire/version.rb in versionaire-5.1.0 vs lib/versionaire/version.rb in versionaire-5.2.0

- old
+ new

@@ -50,10 +50,11 @@ # :reek:FeatureEnvy def == other other.is_a?(Version) && to_s == other.to_s end + alias eql? == def <=> other to_s <=> other.to_s end @@ -63,9 +64,10 @@ end def to_s [major, minor, maintenance].join self.class.delimiter end + alias to_str to_s def to_a [major, minor, maintenance] end