lib/run_loop/xcode.rb in run_loop-2.6.1 vs lib/run_loop/xcode.rb in run_loop-2.6.2
- old
+ new
@@ -24,10 +24,26 @@
# Returns debug String representation
def inspect
to_s
end
+ # Returns a version instance for Xcode 9.2; used to check for the
+ # availability of features and paths to various items on the filesystem
+ #
+ # @return [RunLoop::Version] 9.2
+ def v92
+ fetch_version(:v92)
+ end
+
+ # Returns a version instance for Xcode 9.1; used to check for the
+ # availability of features and paths to various items on the filesystem
+ #
+ # @return [RunLoop::Version] 9.1
+ def v91
+ fetch_version(:v91)
+ end
+
# Returns a version instance for Xcode 9.0; used to check for the
# availability of features and paths to various items on the filesystem
#
# @return [RunLoop::Version] 9.0
def v90
@@ -150,9 +166,23 @@
# 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 9.1 or above?
+ #
+ # @return [Boolean] `true` if the current Xcode version is >= 9.2
+ def version_gte_92?
+ version >= v92
+ end
+
+ # Is the active Xcode version 9.1 or above?
+ #
+ # @return [Boolean] `true` if the current Xcode version is >= 9.1
+ def version_gte_91?
+ version >= v91
end
# Is the active Xcode version 9.0 or above?
#
# @return [Boolean] `true` if the current Xcode version is >= 9.0