Sha256: cd1c1c529126d92285969ce55427c25b3e3c0850d0a77fe65e378141bbd1e887

Contents?: true

Size: 1 KB

Versions: 80

Compression:

Stored size: 1 KB

Contents

module Fastlane
  module Actions
    # will make sure a gem is installed. If it's not an appropriate error message is shown
    # this will *not* 'require' the gem
    def self.verify_gem!(gem_name)
      begin
        FastlaneRequire.install_gem_if_needed(gem_name: gem_name, require_gem: false)
        # We don't import this by default, as it's not always the same
        # also e.g. cocoapods is just required and not imported
      rescue Gem::LoadError
        UI.error("Could not find gem '#{gem_name}'")
        UI.error("")
        UI.error("If you installed fastlane using `gem install fastlane` run")
        UI.command("gem install #{gem_name}")
        UI.error("to install the missing gem")
        UI.error("")
        UI.error("If you use a Gemfile add this to your Gemfile:")
        UI.important("  gem '#{gem_name}'")
        UI.error("and run `bundle install`")

        UI.user_error!("You have to install the `#{gem_name}` gem on this machine") unless Helper.test?
      end
      true
    end
  end
end

Version data entries

80 entries across 80 versions & 4 rubygems

Version Path
fastlane-2.225.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.224.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.223.1 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.223.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.222.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.221.1 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.221.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.220.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.219.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.218.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-security-patched-2.216.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.217.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.216.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.215.1 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.215.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-mercafacil-2.214.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.214.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.213.0 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane-2.212.2 fastlane/lib/fastlane/helper/gem_helper.rb
fastlane_pricing_fix-2.212.1 fastlane/lib/fastlane/helper/gem_helper.rb