Skip to content

Commit 1244be5

Browse files
committed
update deps. correct compile/test issues
1 parent d85d537 commit 1244be5

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

lib/http_router.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ defmodule HttpRouter do
138138
defaults = [ { Plug.Head, [], true } | defaults ]
139139
end
140140

141-
{ conn, body } = Enum.reverse(defaults) ++
142-
Module.get_attribute(env.module, :plugs)
143-
|> Plug.Builder.compile
141+
plugs = Enum.reverse(defaults) ++
142+
Module.get_attribute(env.module, :plugs)
143+
{ conn, body } = env |> Plug.Builder.compile(plugs, [])
144144

145145
quote do
146146
def init(opts) do
@@ -346,7 +346,7 @@ defmodule HttpRouter do
346346
body = quote do
347347
conn
348348
|> Plug.Conn.resp(200, "")
349-
|> Plug.Conn.put_resp_header("Allow", unquote(allows))
349+
|> Plug.Conn.put_resp_header("allow", unquote(allows))
350350
|> Plug.Conn.send_resp
351351
end
352352

mix.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ defmodule HttpRouter.Mixfile do
1919
end
2020

2121
defp deps do
22-
[ { :cowboy, "~> 1.0.0" },
23-
{ :plug, "~> 0.12.2" },
22+
[ { :cowboy, "~> 1.0.2" },
23+
{ :plug, "~> 0.14.0" },
2424
{ :poison, "~> 1.4.0" },
25-
{ :xml_builder, "~> 0.0.5" },
26-
{ :earmark, "~> 0.1.15", only: :docs },
27-
{ :ex_doc, "~> 0.7.2", only: :docs },
28-
{ :inch_ex, only: :docs },
29-
{ :excoveralls, "~> 0.3.10", only: :test },
30-
{ :dialyze, "~> 0.1.4", only: :test } ]
25+
{ :xml_builder, "~> 0.0.6" },
26+
{ :earmark, "~> 0.1.17", only: :docs },
27+
{ :ex_doc, "~> 0.7.3", only: :docs },
28+
{ :inch_ex, "~> 0.3.3", only: :docs },
29+
{ :excoveralls, "~> 0.3.11", only: :test },
30+
{ :dialyze, "~> 0.2.0", only: :test } ]
3131
end
3232

3333
defp description do

mix.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
%{"cowboy": {:hex, :cowboy, "1.0.0"},
1+
%{"cowboy": {:hex, :cowboy, "1.0.2"},
22
"cowlib": {:hex, :cowlib, "1.0.1"},
3-
"dialyze": {:hex, :dialyze, "0.1.4"},
4-
"earmark": {:hex, :earmark, "0.1.15"},
5-
"ex_doc": {:hex, :ex_doc, "0.7.2"},
6-
"excoveralls": {:hex, :excoveralls, "0.3.10"},
7-
"exjsx": {:hex, :exjsx, "3.1.0"},
8-
"hackney": {:hex, :hackney, "1.1.0"},
3+
"dialyze": {:hex, :dialyze, "0.2.0"},
4+
"earmark": {:hex, :earmark, "0.1.17"},
5+
"ex_doc": {:hex, :ex_doc, "0.7.3"},
6+
"excoveralls": {:hex, :excoveralls, "0.3.11"},
7+
"exjsx": {:hex, :exjsx, "3.2.0"},
8+
"hackney": {:hex, :hackney, "1.3.0"},
99
"idna": {:hex, :idna, "1.0.2"},
10-
"inch_ex": {:hex, :inch_ex, "0.2.4"},
11-
"jsx": {:hex, :jsx, "2.4.0"},
12-
"plug": {:hex, :plug, "0.12.2"},
10+
"inch_ex": {:hex, :inch_ex, "0.3.3"},
11+
"jsx": {:hex, :jsx, "2.6.2"},
12+
"plug": {:hex, :plug, "0.14.0"},
1313
"poison": {:hex, :poison, "1.4.0"},
14-
"ranch": {:hex, :ranch, "1.0.0"},
15-
"ssl_verify_hostname": {:hex, :ssl_verify_hostname, "1.0.4"},
16-
"xml_builder": {:hex, :xml_builder, "0.0.5"}}
14+
"ranch": {:hex, :ranch, "1.1.0"},
15+
"ssl_verify_hostname": {:hex, :ssl_verify_hostname, "1.0.5"},
16+
"xml_builder": {:hex, :xml_builder, "0.0.6"}}

0 commit comments

Comments
 (0)