lib/rubocop/git/options.rb in rubocop-git-0.0.2 vs lib/rubocop/git/options.rb in rubocop-git-0.0.3

- old
+ new

@@ -25,13 +25,10 @@ end @cached = !!cached_ end def hound=(hound_) - if hound_ && RuboCop::Version.version != '0.22.0' - fail Invalid, 'Hound compatibility mode requires rubocop 0.22.0' - end @hound = !!hound_ end def rubocop=(rubocop_) unless rubocop_.is_a?(Hash) @@ -48,10 +45,10 @@ fail Invalid, 'cached and commit cannot be specified together' end @commits = commits end - def config_path + def config_file if hound HOUND_DEFAULT_CONFIG_FILE elsif config config elsif File.exist?(RuboCop::ConfigLoader::DOTFILE)