lib/run_loop/xctools.rb in run_loop-1.3.3 vs lib/run_loop/xctools.rb in run_loop-1.4.0
- 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 7.0`; used to check for the
+ # availability of features and paths to various items on the filesystem.
+ #
+ # @return [RunLoop::Version] 7.0
+ def v70
+ @xc70 ||= RunLoop::Version.new('7.0')
+ end
+
# 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
@@ -102,9 +110,16 @@
# Are we running Xcode 6 or above?
#
# @return [Boolean] `true` if the current Xcode version is >= 6.0
def xcode_version_gte_6?
@xcode_gte_6 ||= xcode_version >= v60
+ end
+
+ # Are we running Xcode 6 or above?
+ #
+ # @return [Boolean] `true` if the current Xcode version is >= 6.0
+ def xcode_version_gte_7?
+ @xcode_gte_6 ||= xcode_version >= v70
end
# Are we running Xcode 5.1 or above?
#
# @return [Boolean] `true` if the current Xcode version is >= 5.1