From 2f8ea9525dbdb7286a97951acfb742f40807abc2 Mon Sep 17 00:00:00 2001 From: Brujo Benavides Date: Sun, 7 Jun 2015 01:14:44 -0300 Subject: [PATCH] Fixes for @gadgetci --- Makefile | 2 +- src/lasse_handler.erl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1a7e85a..5d702f3 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ CONFIG ?= rel/sys.config SELL_DEPS = sync TEST_DEPS = cowboy lager shotgun meck katana xref_runner -dep_meck = https://github.com/eproxus/meck.git 0.8.2 +dep_meck = git https://github.com/eproxus/meck.git 0.8.2 dep_cowboy = git https://github.com/extend/cowboy.git 1.0.1 dep_shotgun = git https://github.com/inaka/shotgun.git 0.1.11 dep_katana = git https://github.com/inaka/erlang-katana.git 0.2.5 diff --git a/src/lasse_handler.erl b/src/lasse_handler.erl index 60799c5..65dd882 100644 --- a/src/lasse_handler.erl +++ b/src/lasse_handler.erl @@ -39,7 +39,7 @@ {'nosend', NewState :: any()} | {'stop', NewState :: any()}. --callback init(InitArgs :: any(), LastEvtId :: any(), Req :: cowboy_req:req()) -> +-callback init(InitArgs::any(), LastEvtId::any(), Req::cowboy_req:req()) -> {ok, NewReq :: cowboy_req:req(), State :: any()} | {no_content, NewReq :: cowboy_req:req()} | { @@ -204,4 +204,5 @@ build_field(Name, Value) -> build_data(undefined) -> throw(data_required); build_data(Data) -> - [[<<"data: ">>, X, <<"\n">>] || X <- binary:split(Data, <<"\n">>, [global])]. + [[<<"data: ">>, X, <<"\n">>] + || X <- binary:split(Data, <<"\n">>, [global])].