Exception: Hem::HemVersionError

Inherits:
Error
  • Object
show all
Defined in:
lib/hem/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#exit_code

Instance Method Summary collapse

Constructor Details

#initialize(requirements) ⇒ HemVersionError

Returns a new instance of HemVersionError.



7
8
9
10
11
12
13
14
15
16
# File 'lib/hem/errors.rb', line 7

def initialize requirements
  super("
This Hem project has specified that it requires the Hem
version to satisfy the following version requirements:
  #{requirements.join("\n")}
You are running Hem #{VERSION}, which does not satisfy
these requirements. Please upgrade Hem to the latest
version, or relax the Hemfile's version constraints if
you're already using the latest Hem version.")
end