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

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

Overview

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.



37
38
39
40
# File 'lib/toys/utils/gems.rb', line 37

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