From e6dc494f7eaff20885777d020110cefec9b801bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Wed, 18 Oct 2017 17:57:49 +0200 Subject: [PATCH] crystal tool format --- spec/websocket_handler_spec.cr | 4 ++-- src/kemal/base.cr | 2 +- src/kemal/helpers/file_helpers.cr | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/websocket_handler_spec.cr b/spec/websocket_handler_spec.cr index 736d477..285ad85 100644 --- a/spec/websocket_handler_spec.cr +++ b/spec/websocket_handler_spec.cr @@ -65,8 +65,8 @@ describe "Kemal::WebSocketHandler" do it "matches correct verb" do app = Kemal::Base.new - handler = app.websocket_handler - handler.next = app.route_handler + handler = app.websocket_handler + handler.next = app.route_handler app.ws "/" { } app.get "/" { "get" } request = HTTP::Request.new("GET", "/") diff --git a/src/kemal/base.cr b/src/kemal/base.cr index a4b205d..1b9872b 100644 --- a/src/kemal/base.cr +++ b/src/kemal/base.cr @@ -68,7 +68,7 @@ class Kemal::Base end def self.run(port : Int32? = nil) - run(port) { } + run(port) { } end # DEPRECATED: This method should be replaced with `#running?` diff --git a/src/kemal/helpers/file_helpers.cr b/src/kemal/helpers/file_helpers.cr index b0a5636..cdc2b65 100644 --- a/src/kemal/helpers/file_helpers.cr +++ b/src/kemal/helpers/file_helpers.cr @@ -1,5 +1,6 @@ module Kemal::FileHelpers extend self + # Send a file with given path and base the mime-type on the file extension # or default `application/octet-stream` mime_type. #