Set Style/AlignHash EnforcedHashRocketStyle to 'table'

This commit is contained in:
Parker Moore 2016-05-16 16:24:01 -07:00
parent eb56ca8c41
commit 2caff755c4
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
2 changed files with 11 additions and 11 deletions

View File

@ -145,7 +145,7 @@ Style/Alias:
Style/AlignArray:
Enabled: false
Style/AlignHash:
SupportedLastArgumentHashStyles: always_ignore
EnforcedHashRocketStyle: table
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Enabled: false

View File

@ -3,14 +3,14 @@ module Jekyll
class Serve < Command
class << self
COMMAND_OPTIONS = {
"ssl_cert" => ["--ssl-cert [CERT]", "X.509 (SSL) certificate."],
"host" => ["host", "-H", "--host [HOST]", "Host to bind to"],
"open_url" => ["-o", "--open-url", "Launch your browser with your site."],
"detach" => ["-B", "--detach", "Run the server in the background (detach)"],
"ssl_key" => ["--ssl-key [KEY]", "X.509 (SSL) Private Key."],
"port" => ["-P", "--port [PORT]", "Port to listen on"],
"baseurl" => ["-b", "--baseurl [URL]", "Base URL"],
"show_dir_listing" => ["--show-dir-listing",
"ssl_cert" => ["--ssl-cert [CERT]", "X.509 (SSL) certificate."],
"host" => ["host", "-H", "--host [HOST]", "Host to bind to"],
"open_url" => ["-o", "--open-url", "Launch your site in a browser"],
"detach" => ["-B", "--detach", "Run the server in the background"],
"ssl_key" => ["--ssl-key [KEY]", "X.509 (SSL) Private Key."],
"port" => ["-P", "--port [PORT]", "Port to listen on"],
"baseurl" => ["-b", "--baseurl [URL]", "Base URL"],
"show_dir_listing" => ["--show-dir-listing",
"Show a directory listing instead of loading your index file."],
"skip_initial_build" => ["skip_initial_build", "--skip-initial-build",
"Skips the initial site build which occurs before the server is started."]
@ -117,10 +117,10 @@ module Jekyll
private
def server_address(server, opts)
format("%{prefix}://%{address}:%{port}%{baseurl}", {
:prefix => server.config[:SSLEnable] ? "https" : "http",
:prefix => server.config[:SSLEnable] ? "https" : "http",
:baseurl => opts["baseurl"] ? "#{opts["baseurl"]}/" : "",
:address => server.config[:BindAddress],
:port => server.config[:Port]
:port => server.config[:Port]
})
end