lib/travis/tools/system.rb in travis-1.6.16 vs lib/travis/tools/system.rb in travis-1.6.17.travis.587.5

- old
+ new

@@ -1,9 +1,15 @@ module Travis module Tools module System extend self + def recent_version?(version, minimum) + version = version.split('.').map { |s| s.to_i } + minimum = minimum.split('.').map { |s| s.to_i } + (version <=> minimum) >= 0 + end + def windows? File::ALT_SEPARATOR == "\\" end def mac?