lib/rubocop/git/options.rb in rubocop-git-0.0.5 vs lib/rubocop/git/options.rb in rubocop-git-0.0.6
- old
+ new
@@ -70,10 +70,11 @@
private
def from_hash(hash_options)
hash_options = hash_options.dup
%w(config cached hound rubocop commits).each do |key|
- public_send("#{key}=", hash_options.delete(key))
+ value = hash_options.delete(key) || hash_options.delete(key.to_sym)
+ public_send("#{key}=", value)
end
unless hash_options.empty?
fail Invalid, "invalid keys: #{hash_options.keys.join(' ')}"
end
end