lib/run_loop/version.rb in run_loop-1.4.1 vs lib/run_loop/version.rb in run_loop-1.5.0
- old
+ new
@@ -1,7 +1,7 @@
module RunLoop
- VERSION = '1.4.1'
+ VERSION = '1.5.0'
# 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
@@ -80,9 +80,13 @@
# @return [String] a string in the form `<major>.<minor>.<patch>[.pre<N>]`
def to_s
str = [major, minor, patch].compact.join('.')
str = "#{str}.#{pre}" if pre
str
+ end
+
+ def inspect
+ "#<Version #{to_s}>"
end
# Compare this version to another for equality.
# @param [Version] other the version to compare against
# @return [Boolean] true if this Version is the same as `other`