Exception: RBS::Collection::Config::LockfileGenerator::GemfileLockMismatchError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbs/collection/config/lockfile_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(expected:, actual:) ⇒ GemfileLockMismatchError

Returns a new instance of GemfileLockMismatchError.



20
21
22
23
# File 'lib/rbs/collection/config/lockfile_generator.rb', line 20

def initialize(expected:, actual:)
  @expected = expected
  @actual = actual
end

Instance Method Details

#messageObject



25
26
27
28
29
30
31
32
# File 'lib/rbs/collection/config/lockfile_generator.rb', line 25

def message
  <<~MESSAGE
    RBS Collection loads a different Gemfile.lock from before.
    The Gemfile.lock must be the same as that is recorded in rbs_collection.lock.yaml.
    Expected Gemfile.lock: #{@expected}
    Actual Gemfile.lock: #{@actual}
  MESSAGE
end