lib/run_loop/version.rb in run_loop-2.6.1 vs lib/run_loop/version.rb in run_loop-2.6.2

- old
+ new

@@ -1,7 +1,7 @@ module RunLoop - VERSION = "2.6.1" + VERSION = "2.6.2" # A model of a software release version that can be used to compare two versions. # # Calabash and RunLoop try very hard to comply with Semantic Versioning rules. # However, the semantic versioning spec is incompatible with RubyGem's patterns @@ -151,9 +151,21 @@ # Is this version greater-than or equal to another version? # @param [Version] other the version to compare against # @return [Boolean] true if this Version is greater-than or equal `other` def >= (other) Version.compare(self, other) >= 0 + end + + # Compare version `a` to version `b`. + # + # @example + # compare Version.new(0.10.0), Version.new(0.9.0) => 1 + # compare Version.new(0.9.0), Version.new(0.10.0) => -1 + # compare Version.new(0.9.0), Version.new(0.9.0) => 0 + # + # @return [Integer] an integer `(-1, 1)` + def <=> (other) + Version.compare(self, other) end # Compare version `a` to version `b`. # # @example