ran rubocop -a

#5665
This commit is contained in:
Frank Taillandier 2016-12-18 07:22:11 +01:00
parent 38a50e49de
commit de56b977b6
1 changed files with 5 additions and 3 deletions

View File

@ -32,8 +32,8 @@ module Jekyll
# Override of method_missing to check in @data for the key. # Override of method_missing to check in @data for the key.
def method_missing(method, *args, &blck) def method_missing(method, *args, &blck)
if docs.respond_to?(method.to_sym) if docs.respond_to?(method.to_sym)
Jekyll.logger.warn "Deprecation:", "#{label}.#{method} should be changed to" \ Jekyll.logger.warn "Deprecation:",
"#{label}.docs.#{method}." "#{label}.#{method} should be changed to #{label}.docs.#{method}."
Jekyll.logger.warn "", "Called by #{caller.first}." Jekyll.logger.warn "", "Called by #{caller.first}."
docs.public_send(method.to_sym, *args, &blck) docs.public_send(method.to_sym, *args, &blck)
else else
@ -197,6 +197,7 @@ module Jekyll
end end
private private
def read_document(full_path) def read_document(full_path)
doc = Jekyll::Document.new(full_path, :site => site, :collection => self) doc = Jekyll::Document.new(full_path, :site => site, :collection => self)
doc.read doc.read
@ -208,6 +209,7 @@ module Jekyll
end end
private private
def read_static_file(file_path, full_path) def read_static_file(file_path, full_path)
relative_dir = Jekyll.sanitized_path( relative_dir = Jekyll.sanitized_path(
relative_directory, relative_directory,