Rubocop: Style/EmptyLinesAroundClassBody
- Extra empty line detected at class body end
This commit is contained in:
parent
2530a8cdfc
commit
cda226de45
|
@ -165,7 +165,6 @@ module Jekyll
|
||||||
|
|
||||||
# Conditional optimizations
|
# Conditional optimizations
|
||||||
Jekyll::External.require_if_present('liquid-c')
|
Jekyll::External.require_if_present('liquid-c')
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
module Jekyll
|
module Jekyll
|
||||||
class Command
|
class Command
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
# A list of subclasses of Jekyll::Command
|
# A list of subclasses of Jekyll::Command
|
||||||
def subclasses
|
def subclasses
|
||||||
@subclasses ||= []
|
@subclasses ||= []
|
||||||
|
@ -62,8 +60,6 @@ module Jekyll
|
||||||
c.option 'verbose', '-V', '--verbose', 'Print verbose output.'
|
c.option 'verbose', '-V', '--verbose', 'Print verbose output.'
|
||||||
c.option 'incremental', '-I', '--incremental', 'Enable incremental rebuild.'
|
c.option 'incremental', '-I', '--incremental', 'Enable incremental rebuild.'
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
module Jekyll
|
module Jekyll
|
||||||
module Commands
|
module Commands
|
||||||
class Build < Command
|
class Build < Command
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
# Create the Mercenary command for the Jekyll CLI for this Command
|
# Create the Mercenary command for the Jekyll CLI for this Command
|
||||||
def init_with_program(prog)
|
def init_with_program(prog)
|
||||||
prog.command(:build) do |c|
|
prog.command(:build) do |c|
|
||||||
|
@ -71,9 +69,7 @@ module Jekyll
|
||||||
External.require_with_graceful_fail 'jekyll-watch'
|
External.require_with_graceful_fail 'jekyll-watch'
|
||||||
Jekyll::Watcher.watch(options)
|
Jekyll::Watcher.watch(options)
|
||||||
end
|
end
|
||||||
|
|
||||||
end # end of class << self
|
end # end of class << self
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,6 @@ module Jekyll
|
||||||
module Commands
|
module Commands
|
||||||
class Clean < Command
|
class Clean < Command
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
def init_with_program(prog)
|
def init_with_program(prog)
|
||||||
prog.command(:clean) do |c|
|
prog.command(:clean) do |c|
|
||||||
c.syntax 'clean [subcommand]'
|
c.syntax 'clean [subcommand]'
|
||||||
|
@ -37,7 +36,6 @@ module Jekyll
|
||||||
Jekyll.logger.info "Nothing to do for #{metadata_file}."
|
Jekyll.logger.info "Nothing to do for #{metadata_file}."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,6 @@ module Jekyll
|
||||||
module Commands
|
module Commands
|
||||||
class Doctor < Command
|
class Doctor < Command
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
def init_with_program(prog)
|
def init_with_program(prog)
|
||||||
prog.command(:doctor) do |c|
|
prog.command(:doctor) do |c|
|
||||||
c.syntax 'doctor'
|
c.syntax 'doctor'
|
||||||
|
@ -108,7 +107,6 @@ module Jekyll
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,6 @@ module Jekyll
|
||||||
module Commands
|
module Commands
|
||||||
class Help < Command
|
class Help < Command
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
def init_with_program(prog)
|
def init_with_program(prog)
|
||||||
prog.command(:help) do |c|
|
prog.command(:help) do |c|
|
||||||
c.syntax 'help [subcommand]'
|
c.syntax 'help [subcommand]'
|
||||||
|
@ -26,7 +25,6 @@ module Jekyll
|
||||||
Jekyll.logger.error "Error:", "Hmm... we don't know what the '#{cmd}' command is."
|
Jekyll.logger.error "Error:", "Hmm... we don't know what the '#{cmd}' command is."
|
||||||
Jekyll.logger.info "Valid commands:", prog.commands.keys.join(", ")
|
Jekyll.logger.info "Valid commands:", prog.commands.keys.join(", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
module Jekyll
|
module Jekyll
|
||||||
class Configuration < Hash
|
class Configuration < Hash
|
||||||
|
|
||||||
# Default options. Overridden by values in _config.yml.
|
# Default options. Overridden by values in _config.yml.
|
||||||
# Strings rather than symbols are used for compatibility with YAML.
|
# Strings rather than symbols are used for compatibility with YAML.
|
||||||
DEFAULTS = Configuration[{
|
DEFAULTS = Configuration[{
|
||||||
|
|
|
@ -2,7 +2,6 @@ module Jekyll
|
||||||
module Converters
|
module Converters
|
||||||
class Markdown
|
class Markdown
|
||||||
class RedcarpetParser
|
class RedcarpetParser
|
||||||
|
|
||||||
module CommonMethods
|
module CommonMethods
|
||||||
def add_code_tags(code, lang)
|
def add_code_tags(code, lang)
|
||||||
code = code.to_s
|
code = code.to_s
|
||||||
|
|
|
@ -17,7 +17,6 @@ module Jekyll
|
||||||
|
|
||||||
private
|
private
|
||||||
def_delegator :@obj, :metadata, :fallback_data
|
def_delegator :@obj, :metadata, :fallback_data
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,7 +22,6 @@ module Jekyll
|
||||||
|
|
||||||
private
|
private
|
||||||
def_delegator :@obj, :data, :fallback_data
|
def_delegator :@obj, :data, :fallback_data
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -135,7 +135,6 @@ module Jekyll
|
||||||
def each_key(&block)
|
def each_key(&block)
|
||||||
keys.each(&block)
|
keys.each(&block)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -33,7 +33,6 @@ module Jekyll
|
||||||
|
|
||||||
private
|
private
|
||||||
def_delegator :@obj, :config, :fallback_data
|
def_delegator :@obj, :config, :fallback_data
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,6 @@ module Jekyll
|
||||||
def fallback_data
|
def fallback_data
|
||||||
@fallback_data ||= {}
|
@fallback_data ||= {}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
module Jekyll
|
module Jekyll
|
||||||
module External
|
module External
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
#
|
#
|
||||||
# Gems that, if installed, should be loaded.
|
# Gems that, if installed, should be loaded.
|
||||||
# Usually contain subcommands.
|
# Usually contain subcommands.
|
||||||
|
@ -54,7 +53,6 @@ If you run into trouble, you can find helpful resources at http://jekyllrb.com/h
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -91,6 +91,5 @@ module Jekyll
|
||||||
"Ensure you have `gems: [jekyll-paginate]` in your configuration file."
|
"Ensure you have `gems: [jekyll-paginate]` in your configuration file."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,6 +16,5 @@ module Jekyll
|
||||||
collection.read unless SPECIAL_COLLECTIONS.include?(collection.label)
|
collection.read unless SPECIAL_COLLECTIONS.include?(collection.label)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
module Jekyll
|
module Jekyll
|
||||||
class RelatedPosts
|
class RelatedPosts
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
attr_accessor :lsi
|
attr_accessor :lsi
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
module Jekyll
|
module Jekyll
|
||||||
class Renderer
|
class Renderer
|
||||||
|
|
||||||
attr_reader :document, :site, :payload
|
attr_reader :document, :site, :payload
|
||||||
|
|
||||||
def initialize(site, document, site_payload = nil)
|
def initialize(site, document, site_payload = nil)
|
||||||
|
@ -161,6 +160,5 @@ module Jekyll
|
||||||
|
|
||||||
output
|
output
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -115,7 +115,6 @@ eos
|
||||||
].join(" ")
|
].join(" ")
|
||||||
"<figure class=\"highlight\"><pre><code #{code_attributes}>#{code.chomp}</code></pre></figure>"
|
"<figure class=\"highlight\"><pre><code #{code_attributes}>#{code.chomp}</code></pre></figure>"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,7 +12,6 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
class IncludeTag < Liquid::Tag
|
class IncludeTag < Liquid::Tag
|
||||||
|
|
||||||
attr_reader :includes_dir
|
attr_reader :includes_dir
|
||||||
|
|
||||||
VALID_SYNTAX = /([\w-]+)\s*=\s*(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'|([\w\.-]+))/
|
VALID_SYNTAX = /([\w-]+)\s*=\s*(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'|([\w\.-]+))/
|
||||||
|
|
|
@ -11,7 +11,6 @@ require 'uri'
|
||||||
#
|
#
|
||||||
module Jekyll
|
module Jekyll
|
||||||
class URL
|
class URL
|
||||||
|
|
||||||
# options - One of :permalink or :template must be supplied.
|
# options - One of :permalink or :template must be supplied.
|
||||||
# :template - The String used as template for URL generation,
|
# :template - The String used as template for URL generation,
|
||||||
# for example "/:path/:basename:output_ext", where
|
# for example "/:path/:basename:output_ext", where
|
||||||
|
|
Loading…
Reference in New Issue