Exception: Toys::Utils::Gems::GemfileUpdateNeededError

Inherits:
ActivationFailedError show all
Defined in:
toys-core/lib/toys/utils/gems.rb

Overview

Defined in the toys-core gem

Need to add a gem to the bundle.

Instance Method Summary collapse

Constructor Details

#initialize(requirements_text, gemfile_path) ⇒ GemfileUpdateNeededError

Create a GemfileUpdateNeededError.

Parameters:

  • requirements_text (String)

    Gems and versions missing.

  • gemfile_path (String)

    Path to the offending Gemfile.



45
46
47
48
# File 'toys-core/lib/toys/utils/gems.rb', line 45

def initialize(requirements_text, gemfile_path)
  super("Required gem not available in the bundle: #{requirements_text}.\n" \
        "Please update your Gemfile #{gemfile_path.inspect}.")
end