lib/run_loop/xcode.rb in run_loop-2.0.1 vs lib/run_loop/xcode.rb in run_loop-2.0.2
- old
+ new
@@ -26,10 +26,18 @@
# Returns a version instance for `Xcode 7.1`; used to check for the
# availability of features and paths to various items on the filesystem.
#
# @return [RunLoop::Version] 7.1
+ def v72
+ fetch_version(:v72)
+ end
+
+ # Returns a version instance for `Xcode 7.1`; used to check for the
+ # availability of features and paths to various items on the filesystem.
+ #
+ # @return [RunLoop::Version] 7.1
def v71
fetch_version(:v71)
end
# Returns a version instance for `Xcode 7.0`; used to check for the
@@ -92,9 +100,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 7.1 or above?
+ #
+ # @return [Boolean] `true` if the current Xcode version is >= 7.1
+ def version_gte_72?
+ version >= v72
end
# Is the active Xcode version 7.1 or above?
#
# @return [Boolean] `true` if the current Xcode version is >= 7.1