Sha256: 25562513b770d49d060e8e20a05fd18b2a5c1a4d5ef3d91f4d61ce731b3ca6f3

Contents?: true

Size: 768 Bytes

Versions: 493

Compression:

Stored size: 768 Bytes

Contents

module Fastlane
  module Helper
    class XcversionHelper
      def self.find_xcode(req)
        req = Gem::Requirement.new(req.to_s)

        require 'xcode/install'
        installer = XcodeInstall::Installer.new
        installed = installer.installed_versions.reverse
        installed.detect do |xcode|
          req.satisfied_by? Gem::Version.new(xcode.version)
        end
      end

      module Verify
        def self.requirement(req)
          UI.user_error!("Version must be specified") if req.nil? || req.to_s.strip.size == 0
          Gem::Requirement.new(req.to_s)
        rescue Gem::Requirement::BadRequirementError
          UI.user_error!("The requirement '#{req}' is not a valid RubyGems style requirement")
        end
      end
    end
  end
end

Version data entries

493 entries across 493 versions & 1 rubygems

Version Path
fastlane-2.65.0.beta.20171111010004 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.65.0.beta.20171110010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.65.0.beta.20171109010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.65.0.beta.20171108010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.65.0.beta.20171107010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.64.0 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.64.0.beta.20171106010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.64.0.beta.20171105010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.64.0.beta.20171104010004 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.64.0.beta.20171103010004 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.64.0.beta.20171102010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.64.0.beta.20171101010004 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.63.0 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.63.0.beta.20171031010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.63.0.beta.20171030010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.63.0.beta.20171029010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.63.0.beta.20171028010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.63.0.beta.20171027010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.63.0.beta.20171026010003 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.63.0.beta.20171025010003 fastlane/lib/fastlane/helper/xcversion_helper.rb