Exception: Mry::AddedCops::RuboCopVersionMismatchError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mry/added_cops.rb

Instance Method Summary collapse

Constructor Details

#initialize(expected:) ⇒ RuboCopVersionMismatchError

Returns a new instance of RuboCopVersionMismatchError.



186
187
188
# File 'lib/mry/added_cops.rb', line 186

def initialize(expected:)
  @expected = expected
end

Instance Method Details

#messageObject



190
191
192
193
194
195
196
197
198
# File 'lib/mry/added_cops.rb', line 190

def message
  "\n    `require 'rubocop'` is failed because mry can't find rubocop v\#{@expected}.\n    Execute `gem install rubocop -v \#{@expected}`.\n    Or update rubocop version in your Gemfile, and execute `bundle install` if you use `bundle exec`.\n\n  MES\nend\n"