lib/run_loop/xcode.rb in run_loop-2.1.3 vs lib/run_loop/xcode.rb in run_loop-2.1.4
- old
+ new
@@ -22,10 +22,18 @@
# Returns debug String representation
def inspect
to_s
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
+ fetch_version(:v80)
+ end
+
# Returns a version instance for `Xcode 7.3`; used to check for the
# availability of features and paths to various items on the filesystem.
#
# @return [RunLoop::Version] 7.3
def v73
@@ -108,9 +116,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.0 or above?
+ #
+ # @return [Boolean] `true` if the current Xcode version is >= 8.0
+ def version_gte_8?
+ version >= v80
end
# Is the active Xcode version 7.3 or above?
#
# @return [Boolean] `true` if the current Xcode version is >= 7.3