Bump ameba dependency (#602)
This commit is contained in:
parent
8d0875f64c
commit
0764091e03
3 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ dependencies:
|
|||
development_dependencies:
|
||||
ameba:
|
||||
github: crystal-ameba/ameba
|
||||
version: ~> 0.13.4
|
||||
version: ~> 0.14.0
|
||||
|
||||
crystal: 0.35.0
|
||||
|
||||
|
|
|
@ -22,8 +22,8 @@ describe "Kemal::WebSocketHandler" do
|
|||
|
||||
it "matches on given route" do
|
||||
handler = Kemal::WebSocketHandler::INSTANCE
|
||||
ws "/" { |socket| socket.send("Match") }
|
||||
ws "/no_match" { |socket| socket.send "No Match" }
|
||||
ws("/", &.send("Match"))
|
||||
ws("/no_match", &.send("No Match"))
|
||||
headers = HTTP::Headers{
|
||||
"Upgrade" => "websocket",
|
||||
"Connection" => "Upgrade",
|
||||
|
|
|
@ -66,7 +66,7 @@ module Kemal
|
|||
end
|
||||
|
||||
def self.display_startup_message(config, server)
|
||||
addresses = server.addresses.map { |address| "#{config.scheme}://#{address}" }.join ", "
|
||||
addresses = server.addresses.join ", " { |address| "#{config.scheme}://#{address}" }
|
||||
log "[#{config.env}] Kemal is ready to lead at #{addresses}"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue