Skip to content

Commit

Permalink
Fixed rebar.config for lager as first dep, ranch had compilation prob…
Browse files Browse the repository at this point in the history
…lems

with lager as last dep.
  • Loading branch information
j14159 committed Mar 8, 2013
1 parent 76a518c commit 940308c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
12 changes: 7 additions & 5 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{lib_dirs, ["deps"]}.
{deps, [
{'cowboy', ".*", {
git, "git://github.com/extend/cowboy.git", {tag, "0.8.0"}}},
{lager, ".*",
{git, "https://github.com/basho/lager", {tag, "1.2.2"}}},
{'cowboy', ".*", {
git, "git://github.com/extend/cowboy.git", {tag, "0.8.0"}}},
{mimetypes, ".*",
{git, "git://github.com/spawngrid/mimetypes.git", "master"}},
{mochijson2, ".*",
{git, "git://github.com/bjnortier/mochijson2.git", "master"}},
{lager, ".*",
{git, "https://github.com/basho/lager", {tag, "1.2.2"}}}
{git, "git://github.com/bjnortier/mochijson2.git", "master"}}
]}.

{erl_opts, [{parse_transform, lager_transform}]}.
1 change: 0 additions & 1 deletion src/score_board.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-module(score_board).
-behavior(gen_server).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, code_change/3, terminate/2]).
-compile([{parse_transform, lager_transform}]).

%%%----------------------------------------------------------------------
%%%
Expand Down
1 change: 0 additions & 1 deletion src/space.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-module(space).
-behavior(gen_server).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, code_change/3, terminate/2]).
-compile([{parse_transform, lager_transform}]).

%%%----------------------------------------------------------------------
%%%
Expand Down
1 change: 0 additions & 1 deletion src/torps.erl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ torp(Player, TicksRemaining) ->
tick ->
torp(Player, TicksRemaining - 1);
dead ->
io:format("Torp killed by space~n", []),
torp(Player, 0);
{hit, Player} ->
%% if a player hits themself with their own torpedo,
Expand Down
1 change: 0 additions & 1 deletion src/ws_handler.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-module(ws_handler).
-behaviour(cowboy_websocket_handler).
-compile([{parse_transform, lager_transform}]).

-export([init/3, websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3]).

Expand Down

0 comments on commit 940308c

Please sign in to comment.