Permalink
Browse files

Make expm compilable on the latest version of elixir

  • Loading branch information...
1 parent d5e7c44 commit c59e359906ac3e354e83276121c18ac36d5576e7 @yrashk committed Jun 5, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 Makefile
  2. +2 −2 lib/cli.ex
View
@@ -13,12 +13,12 @@ sys.config: config.exs
@ERL_LIBS=deps elixir -pa ebin -e "config = Expm.Config.file!(%b{config.exs}); config.sys_config!(%b{sys.config})"
start: expm sys.config
- @ERL_LIBS=deps elixir --sname expm --erl "-pa ebin -config sys -s Elixir-Expm" --no-halt
+ @ERL_LIBS=deps elixir --sname expm --erl "-pa ebin -config sys -s Elixir.Expm" --no-halt
rel: rel/expm
rel/expm: expm
@mix relex.assemble
start-rel: rel sys.config
- @./rel/expm/erts-*/bin/erl -sname expm -config sys -s 'Elixir-Expm' -noinput
+ @./rel/expm/erts-*/bin/erl -sname expm -config sys -s 'Elixir.Expm' -noinput
View
@@ -165,7 +165,7 @@ defrecord Expm.CLI, repository: Expm.Repository.HTTP.new.url, username: nil, pas
lc {dep, version} inlist Expm.Package.deps(repo, pkg) do
IO.puts "#{dep} #{version}"
end
- rescue Expm.Package.VersionNotFound[]=e ->
+ rescue e in [Expm.Package.VersionNotFound] ->
IO.puts e.message
end
def run(["deps", package, version], rec) do
@@ -174,7 +174,7 @@ defrecord Expm.CLI, repository: Expm.Repository.HTTP.new.url, username: nil, pas
lc {dep, version} inlist Expm.Package.deps(repo, pkg) do
IO.puts "#{dep} #{version}"
end
- rescue Expm.Package.VersionNotFound[]=e ->
+ rescue e in [Expm.Package.VersionNotFound] ->
IO.puts e.message
end

0 comments on commit c59e359

Please sign in to comment.