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 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
-
@@ -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.4'
31
+ VERSION = '0.3.5'
32
32
 
33
33
  # Setup the Corrupt environment.
34
34
  def self.boot!
@@ -72,6 +72,8 @@ module Corrupt
72
72
  Dir.mkdir(@path) unless File.exists?(@path)
73
73
  create_directories
74
74
  copy_files
75
+ # TODO: Send this to the logger maybe?
76
+ $stdout.puts "Application created in: #{@path}"
75
77
  end
76
78
 
77
79
  def create_directories
@@ -44,11 +44,11 @@ module Corrupt
44
44
  end
45
45
 
46
46
  def prepare_router
47
- load File.join(Corrupt.root, 'config', 'routes.rb')
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.root, Corrupt::Config['database'])
51
+ database = File.join(Corrupt.app_root, '..', Corrupt::Config['database'])
52
52
  DataMapper.setup(:default, "sqlite3:///#{database}")
53
53
  end
54
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corrupt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell