rubocop: separate deprecator error messages

This commit is contained in:
Anatoliy Yastreb 2016-06-26 16:43:56 +02:00 committed by GitHub
parent b156aa912a
commit 8154eb40aa
1 changed files with 2 additions and 1 deletions

View File

@ -435,7 +435,8 @@ module Jekyll
def method_missing(method, *args, &blck) def method_missing(method, *args, &blck)
if data.key?(method.to_s) if data.key?(method.to_s)
Jekyll::Deprecator.deprecation_message "Document##{method} is now a key "\ Jekyll::Deprecator.deprecation_message "Document##{method} is now a key "\
"in the #data hash. Called by #{caller.first}." "in the #data hash."
Jekyll::Deprecator.deprecation_message "Called by #{caller.first}."
data[method.to_s] data[method.to_s]
else else
super super