Skip to content
This repository
Browse code

Apply patch from Tino Breddin (tolbrino) to rebar-ize nitrogen_core.

  • Loading branch information...
commit 2d17102c36002f69bc18104c233e542c1f38f033 1 parent 96eae8a
Rusty Klophaus authored January 14, 2011
1  .gitattributes
... ...
@@ -0,0 +1 @@
  1
+*.tmproj -crlf -diff -merge
13  .gitignore
... ...
@@ -0,0 +1,13 @@
  1
+*.dump
  2
+.DS_Store
  3
+coverage
  4
+.hgignore
  5
+*.beam
  6
+rel/nitrogen
  7
+TAGS
  8
+builds
  9
+Quickstart/static/nitrogen
  10
+Quickstart/static/doc
  11
+.eunit/
  12
+*.beam
  13
+*.app
19  MIT-LICENSE
... ...
@@ -0,0 +1,19 @@
  1
+Copyright (c) 2008-2009 Rusty Klophaus
  2
+
  3
+Permission is hereby granted, free of charge, to any person obtaining a copy
  4
+of this software and associated documentation files (the "Software"), to deal
  5
+in the Software without restriction, including without limitation the rights
  6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7
+copies of the Software, and to permit persons to whom the Software is
  8
+furnished to do so, subject to the following conditions:
  9
+
  10
+The above copyright notice and this permission notice shall be included in
  11
+all copies or substantial portions of the Software.
  12
+
  13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19
+THE SOFTWARE.
6  Makefile
... ...
@@ -1,5 +1,7 @@
  1
+all: compile
  2
+
1 3
 compile:
2  
-	@erl -pa ./ebin -make
  4
+	@rebar compile
3 5
 
4 6
 clean:
5  
-	@rm -rf ebin/*.beam
  7
+	@rebar clean
32  README.markdown
Source Rendered
... ...
@@ -0,0 +1,32 @@
  1
+# Nitrogen Web Framework for Erlang
  2
+
  3
+Nitrogen is an Erlang-based web framework that allows you to develop
  4
+infinitely scaleable, Ajax-rich web applications using a pure Erlang 
  5
+technology stack.
  6
+
  7
+See the [Nitrogen Project website](http://nitrogenproject.com) for
  8
+additional information.
  9
+
  10
+### Getting Started
  11
+
  12
+Download the code and move to the experimental branch.
  13
+
  14
+    git clone git://github.com/rklophaus/nitrogen.git
  15
+    cd nitrogen
  16
+
  17
+Then, run the following...
  18
+
  19
+### On Mac OSX / Linux
  20
+
  21
+    cd Quickstart 
  22
+    ./quickstart.sh
  23
+
  24
+Open your web browser to http://localhost:8000
  25
+
  26
+### Create a New Project
  27
+
  28
+    make rel_inets
  29
+    cd rel/nitrogen
  30
+    bin/nitrogen start
  31
+
  32
+Open your web browser to http://localhost:8000
4  rebar.config
... ...
@@ -0,0 +1,4 @@
  1
+% -*- Erlang -*-
  2
+{erl_opts, [fail_on_warning, debug_info]}.
  3
+{cover_enabled, true}.
  4
+{xref_checks, [undefined_function_calls]}.
5  src/handlers/log/log_handler.erl
@@ -3,6 +3,9 @@
3 3
 % See MIT-LICENSE for licensing information.
4 4
 
5 5
 -module (log_handler).
  6
+
  7
+-compile({no_auto_import,[error/1]}).
  8
+
6 9
 -export ([
7 10
     behaviour_info/1,
8 11
     info/1, info/2,
@@ -44,6 +47,6 @@ behaviour_info(callbacks) -> [
44 47
     {finish, 2},
45 48
     {info, 3},       
46 49
     {warning, 3},	
47  
-    {error, 4}
  50
+    {error, 3}
48 51
 ];
49 52
 behaviour_info(_) -> undefined.
6  src/nitrogen_core.app.src
... ...
@@ -0,0 +1,6 @@
  1
+{application, nitrogen_core, [
  2
+    {description,  "Nitrogen Web Framework for Erlang"},
  3
+    {vsn,          "2.0.5"},
  4
+    {applications, [kernel, stdlib, sasl]},
  5
+    {registered, []}
  6
+]}.

0 notes on commit 2d17102

Please sign in to comment.
Something went wrong with that request. Please try again.