upgrade rebar to v2.5.0 and upgrade app template #131
diff --git a/.gitignore b/.gitignore
index 8f4edf4..bb59f19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
.DS_Store
/TEST-*.xml
/deps
+/.rebar
*.swp
*.beam
*.dump
diff --git a/CHANGES.md b/CHANGES.md
index 89c8078..1cd02e6 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,7 +1,9 @@
-Version 2.8.1 released XXXX-XX-XX
+Version 2.9.0 released 2014-06-24
* Increased timeout in test suite for FreeBSD
https://github.com/mochi/mochiweb/pull/121
+* Updated rebar to v2.5.0 and fixed associated build issues
+ https://github.com/mochi/mochiweb/issues/131
Version 2.8.0 released 2014-01-01
diff --git a/Makefile b/Makefile
index b94be4b..6ee073d 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
.PHONY: all edoc test clean build_plt dialyzer app
all:
- @$(REBAR) get-deps compile
+ @$(REBAR) -r get-deps compile
edoc:
@$(REBAR) doc
@@ -19,12 +19,5 @@
clean:
@$(REBAR) clean
-build_plt:
- @$(REBAR) build-plt
-
-dialyzer:
- @$(REBAR) dialyze
-
app:
- @$(REBAR) create template=mochiwebapp dest=$(DEST) appid=$(PROJECT)
-
+ @$(REBAR) -r create template=mochiwebapp dest=$(DEST) appid=$(PROJECT)
diff --git a/rebar b/rebar
index 8082f14..0d1980b 100755
--- a/rebar
+++ b/rebar
Binary files differ
diff --git a/scripts/new_mochiweb.erl b/scripts/new_mochiweb.erl
deleted file mode 100755
index f49ed39..0000000
--- a/scripts/new_mochiweb.erl
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env escript
-%% -*- mode: erlang -*-
--export([main/1]).
-
-%% External API
-
-main(_) ->
- usage().
-
-%% Internal API
-
-usage() ->
- io:format(
- "new_mochiweb.erl has been replaced by a rebar template!\n"
- "\n"
- "To create a new mochiweb using project:\n"
- " make app PROJECT=project_name\n"
- "\n"
- "To create a new mochiweb using project in a specific directory:\n"
- " make app PROJECT=project_name PREFIX=$HOME/projects/\n"
- "\n"
- ),
- halt(1).
diff --git a/src/mochiweb.app.src b/src/mochiweb.app.src
index b3b3d83..7c98141 100644
--- a/src/mochiweb.app.src
+++ b/src/mochiweb.app.src
@@ -1,7 +1,7 @@
%% This is generated from src/mochiweb.app.src
{application, mochiweb,
[{description, "MochiMedia Web Server"},
- {vsn, "2.8.1"},
+ {vsn, "2.9.0"},
{modules, []},
{registered, []},
{env, []},
diff --git a/support/templates/mochiwebapp_skel/src/mochiapp_web.erl b/support/templates/mochiwebapp_skel/src/mochiapp_web.erl
index 8976265..5fe455a 100644
--- a/support/templates/mochiwebapp_skel/src/mochiapp_web.erl
+++ b/support/templates/mochiwebapp_skel/src/mochiapp_web.erl
@@ -44,9 +44,8 @@
{type, Type}, {what, What},
{trace, erlang:get_stacktrace()}],
error_logger:error_report(Report),
- %% NOTE: mustache templates need \\ because they are not awesome.
Req:respond({500, [{"Content-Type", "text/plain"}],
- "request failed, sorry\\n"})
+ "request failed, sorry\n"})
end.
%% Internal API
diff --git a/support/templates/mochiwebapp_skel/start-dev.sh b/support/templates/mochiwebapp_skel/start-dev.sh
index fb7c45e..65c1692 100755
--- a/support/templates/mochiwebapp_skel/start-dev.sh
+++ b/support/templates/mochiwebapp_skel/start-dev.sh
@@ -1,6 +1,7 @@
#!/bin/sh
-# NOTE: mustache templates need \\ because they are not awesome.
-exec erl -pa ebin edit deps/*/ebin -boot start_sasl \\
- -sname {{appid}}_dev \\
- -s {{appid}} \\
+exec erl \
+ -pa ebin deps/*/ebin \
+ -boot start_sasl \
+ -sname {{appid}}_dev \
+ -s {{appid}} \
-s reloader