lib/run_loop/xcode.rb in run_loop-2.2.0 vs lib/run_loop/xcode.rb in run_loop-2.2.1
- old
+ new
@@ -22,10 +22,18 @@
# Returns debug String representation
def inspect
to_s
end
+ # Returns a version instance for `Xcode 8.1`; used to check for the
+ # availability of features and paths to various items on the filesystem.
+ #
+ # @return [RunLoop::Version] 8.1
+ def v81
+ fetch_version(:v81)
+ end
+
# Returns a version instance for `Xcode 8.0`; used to check for the
# availability of features and paths to various items on the filesystem.
#
# @return [RunLoop::Version] 8.0
def v80
@@ -116,9 +124,16 @@
# availability of features and paths to various items on the filesystem.
#
# @return [RunLoop::Version] 5.0
def v50
fetch_version(:v50)
+ end
+
+ # Is the active Xcode version 8.1 or above?
+ #
+ # @return [Boolean] `true` if the current Xcode version is >= 8.0
+ def version_gte_81?
+ version >= v81
end
# Is the active Xcode version 8.0 or above?
#
# @return [Boolean] `true` if the current Xcode version is >= 8.0