corrupt 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README +8 -1
- data/lib/corrupt.rb +2 -2
- data/lib/corrupt/generators/app.rb +2 -0
- data/lib/corrupt/system.rb +2 -2
- metadata +1 -1
data/README
CHANGED
@@ -6,6 +6,14 @@ So many buzz-words, it could kill a baby seal.
|
|
6
6
|
|
7
7
|
== Getting Started
|
8
8
|
|
9
|
+
If you haven't already:
|
10
|
+
|
11
|
+
# From Rubyforge
|
12
|
+
$ [sudo] gem install corrupt
|
13
|
+
|
14
|
+
# From Github
|
15
|
+
$ [sudo] gem install Oshuma-corrupt --source http://gems.github.com/
|
16
|
+
|
9
17
|
This will generate a new application:
|
10
18
|
|
11
19
|
$ corrupt -n /path/to/kickass_app
|
@@ -19,4 +27,3 @@ Then just copy and edit the example app_config.yml:
|
|
19
27
|
Now start the server (through Rack):
|
20
28
|
|
21
29
|
$ rake run:rackup
|
22
|
-
|
data/lib/corrupt.rb
CHANGED
@@ -6,7 +6,7 @@ begin
|
|
6
6
|
require 'dm-timestamps'
|
7
7
|
require 'haml'
|
8
8
|
require 'logger'
|
9
|
-
require 'maruku'
|
9
|
+
require 'maruku' # TODO: Might get removed.
|
10
10
|
require 'singleton'
|
11
11
|
require 'sqlite3'
|
12
12
|
require 'yaml'
|
@@ -28,7 +28,7 @@ require 'corrupt/generators'
|
|
28
28
|
require 'corrupt/framework/controller'
|
29
29
|
|
30
30
|
module Corrupt
|
31
|
-
VERSION = '0.3.
|
31
|
+
VERSION = '0.3.5'
|
32
32
|
|
33
33
|
# Setup the Corrupt environment.
|
34
34
|
def self.boot!
|
data/lib/corrupt/system.rb
CHANGED
@@ -44,11 +44,11 @@ module Corrupt
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def prepare_router
|
47
|
-
load File.
|
47
|
+
load File.expand_path(File.dirname(Corrupt.app_root) + '/config/routes.rb')
|
48
48
|
end
|
49
49
|
|
50
50
|
def setup_database
|
51
|
-
database = File.join(Corrupt.
|
51
|
+
database = File.join(Corrupt.app_root, '..', Corrupt::Config['database'])
|
52
52
|
DataMapper.setup(:default, "sqlite3:///#{database}")
|
53
53
|
end
|
54
54
|
|