lib/jekyll/commands/serve.rb in jekyll-3.8.0.pre.rc1 vs lib/jekyll/commands/serve.rb in jekyll-3.8.0.pre.rc2
- old
+ new
@@ -68,11 +68,11 @@
end
cmd.action do |_, opts|
opts["livereload_port"] ||= LIVERELOAD_PORT
opts["serving"] = true
- opts["watch" ] = true unless opts.key?("watch")
+ opts["watch"] = true unless opts.key?("watch")
start(opts)
end
end
end
@@ -171,10 +171,11 @@
@reload_reactor.reload(@changed_pages)
end
@changed_pages = nil
end
end
+ # rubocop:enable Metrics/AbcSize
# Do a base pre-setup of WEBRick so that everything is in place
# when we get ready to party, checking for an setting up an error page
# and making sure our destination exists.
@@ -334,10 +335,10 @@
require "openssl"
require "webrick/https"
opts[:SSLCertificate] = OpenSSL::X509::Certificate.new(read_file(src, cert))
- opts[:SSLPrivateKey ] = OpenSSL::PKey::RSA.new(read_file(src, key))
+ opts[:SSLPrivateKey] = OpenSSL::PKey::RSA.new(read_file(src, key))
opts[:SSLEnable] = true
end
private
def start_callback(detached)