123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, StandardError
Instance Chain:
self, StandardError
Inherits: StandardError
  • ::Object
Defined in: lib/rbs/collection/config/lockfile_generator.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(expected:, actual:) ⇒ GemfileLockMismatchError

[ GitHub ]

  
# File 'lib/rbs/collection/config/lockfile_generator.rb', line 8

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

Instance Method Details

#message

[ GitHub ]

  
# File 'lib/rbs/collection/config/lockfile_generator.rb', line 13

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