lib/run_loop/xctools.rb in run_loop-1.3.1 vs lib/run_loop/xctools.rb in run_loop-1.3.2
- old
+ new
@@ -13,10 +13,18 @@
# `xcode-select` or overridden using the `DEVELOPER_DIR`.
#
# @todo Refactor instruments related code to instruments class.
class XCTools
+ # Returns a version instance for `Xcode 6.4`; used to check for the
+ # availability of features and paths to various items on the filesystem.
+ #
+ # @return [RunLoop::Version] 6.3
+ def v64
+ @xc64 ||= RunLoop::Version.new('6.4')
+ end
+
# Returns a version instance for `Xcode 6.3`; used to check for the
# availability of features and paths to various items on the filesystem.
#
# @return [RunLoop::Version] 6.3
def v63
@@ -61,12 +69,19 @@
# @return [RunLoop::Version] 5.0
def v50
@xc50 ||= RunLoop::Version.new('5.0')
end
+ # Are we running Xcode 6.4 or above?
+ #
+ # @return [Boolean] `true` if the current Xcode version is >= 6.4
+ def xcode_version_gte_64?
+ @xcode_gte_64 ||= xcode_version >= v64
+ end
+
# Are we running Xcode 6.3 or above?
#
- # @return [Boolean] `true` if the current Xcode version is >= 6.2
+ # @return [Boolean] `true` if the current Xcode version is >= 6.3
def xcode_version_gte_63?
@xcode_gte_63 ||= xcode_version >= v63
end
# Are we running Xcode 6.2 or above?