Sha256: 7ecbd0f76da61919197df7ae2f4a426d90b5df8bcf6b12c429d4c15e8f3ef9fc

Contents?: true

Size: 769 Bytes

Versions: 633

Compression:

Stored size: 769 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

633 entries across 633 versions & 2 rubygems

Version Path
fastlane-2.156.0 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.155.3 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.155.2 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.155.1 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.155.0 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.154.0 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.153.1 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.153.0 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.152.0 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.151.2 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.151.1 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.151.0 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.150.3 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.150.2 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.150.1 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.150.0 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.150.0.rc7 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.150.0.rc6 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.150.0.rc5 fastlane/lib/fastlane/helper/xcversion_helper.rb
fastlane-2.150.0.rc4 fastlane/lib/fastlane/helper/xcversion_helper.rb