vesper 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. data/bin/vesper +125 -15
  2. data/lib/vesper/{template → framework}/.gitignore +0 -0
  3. data/lib/vesper/{template → framework}/Gemfile +0 -0
  4. data/lib/vesper/{template → framework}/Rakefile +0 -0
  5. data/lib/vesper/{template/README.md → framework/Readme.md} +0 -0
  6. data/lib/vesper/{template → framework}/application/hello_world.rb +0 -0
  7. data/lib/vesper/{template → framework}/config.ru +0 -0
  8. data/lib/vesper/{template → framework}/config/databases.rb +0 -0
  9. data/lib/vesper/{template → framework}/config/mime_types.rb +0 -0
  10. data/lib/vesper/{template → framework}/config/schedule.rb +0 -0
  11. data/lib/vesper/{template → framework}/config/sessions.rb +0 -0
  12. data/lib/vesper/{template → framework}/data/seeds.rb +0 -0
  13. data/lib/vesper/{template → framework}/data/transmogrify.rb +0 -0
  14. data/lib/vesper/framework/loader.rb +9 -0
  15. data/lib/vesper/{template → framework}/log/messages.log +0 -0
  16. data/lib/vesper/{template → framework}/plugins/addendums/Readme.md +0 -0
  17. data/lib/vesper/{template → framework}/plugins/addendums/application/helpers.rb +0 -0
  18. data/lib/vesper/{template → framework}/plugins/addendums/application/number.rb +0 -0
  19. data/lib/vesper/{template → framework}/plugins/addendums/application/string.rb +0 -0
  20. data/lib/vesper/{template → framework}/plugins/log/Readme.md +0 -0
  21. data/lib/vesper/{template → framework}/plugins/log/application/log.rb +0 -0
  22. data/lib/vesper/{template → framework}/plugins/log/tasks/log.rb +0 -0
  23. data/lib/vesper/{template → framework}/plugins/markdown/Gemfile +0 -0
  24. data/lib/vesper/{template → framework}/plugins/markdown/Readme.md +0 -0
  25. data/lib/vesper/{template → framework}/plugins/markdown/application/markdown.rb +0 -0
  26. data/lib/vesper/{template → framework}/plugins/markdown/config/markdown.rb +0 -0
  27. data/lib/vesper/{template → framework}/plugins/timepiece/Gemfile +0 -0
  28. data/lib/vesper/{template → framework}/plugins/timepiece/Readme.md +0 -0
  29. data/lib/vesper/{template → framework}/plugins/timepiece/application/timepiece.rb +0 -0
  30. data/lib/vesper/{template → framework}/public/css/design.css +0 -0
  31. data/lib/vesper/{template → framework}/public/img/fyeah.jpg +0 -0
  32. data/lib/vesper/{template → framework}/public/js/hide_addressbar.js +0 -0
  33. data/lib/vesper/{template → framework}/public/robots.txt +0 -0
  34. data/lib/vesper/{template → framework}/tasks/databases.rb +0 -0
  35. data/lib/vesper/{template → framework}/tasks/irb.rb +0 -0
  36. data/lib/vesper/{template → framework}/tmp/restart.txt +0 -0
  37. data/lib/vesper/{template → framework}/views/hello_world.html +0 -0
  38. data/lib/vesper/{template → framework}/views/layout.html +0 -0
  39. data/lib/vesper/version.rb +1 -1
  40. data/vesper.gemspec +1 -1
  41. metadata +56 -57
  42. data/lib/vesper/template/Gemfile.lock +0 -85
  43. data/lib/vesper/template/loader.rb +0 -15
data/bin/vesper CHANGED
@@ -1,24 +1,134 @@
1
1
  #!/usr/bin/env ruby
2
-
3
2
  require 'fileutils.rb'
4
3
 
5
- if ARGV[0] && ARGV[1]
6
- case ARGV[0]
7
- when 'create'
8
- puts "Creating #{ARGV[1]}..."
9
- FileUtils.cp_r File.dirname(__FILE__) + '/../lib/vesper/template', ARGV[1] unless Dir.exists? ARGV[1]
10
- puts "Bundling gems..."
11
- exec "cd #{ARGV[1]} && bundle > /dev/null && echo '\n#{ARGV[1]} is ready. Next steps:\n cd #{ARGV[1]}\n rackup\n'"
4
+
5
+ def show_options
6
+ puts ''
7
+ puts 'Commands:'
8
+ puts ''
9
+ puts ' vesper create application'
10
+ puts ' Summary: Create a new Vesper web app.'
11
+ puts ' Example: vesper create application MyApp'
12
+ puts ''
13
+ puts ' vesper create app'
14
+ puts ' Summary: Create a new Vesper web app.'
15
+ puts ' Alias for vesper create application.'
16
+ puts ' Example: vesper create app MyApp'
17
+ puts ''
18
+ puts ' vesper install plugin'
19
+ puts ' Summary: Install a plugin from the repo (http://vesperapps.com/plugins).'
20
+ puts ' Should be run from inside an existing Vesper app.'
21
+ puts ' Example: vesper install plugin sms'
22
+ puts ''
23
+ puts ' vesper remove plugin'
24
+ puts ' Summary: Removes an existing plugin from a Vesper app.'
25
+ puts ' Example: vesper remove plugin sms'
26
+ puts ''
27
+ puts ' vesper create plugin'
28
+ puts ' Summary: Creates an empty plugin for development.'
29
+ puts ' Should be run from inside an existing Vesper app.'
30
+ puts ' Example: vesper create plugin MyPlugin'
31
+ puts ''
32
+ puts 'Documentation can be found online at: http://vesperapps.com/learn'
33
+ puts ''
34
+ puts 'Questions and comments should be send to: jarrodtaylor@me.com'
35
+ puts ''
36
+ end
37
+
38
+
39
+ def show_coming_soon_message
40
+ puts ''
41
+ puts 'That command isn\'t available yet.'
42
+ puts 'Vesper is still under development, so try again with the next release.'
43
+ puts 'You can follow along with development at: https://github.com/jarrodtaylor/vesper'
44
+ puts ''
45
+ end
46
+
47
+
48
+ def create_app app_name
49
+ puts "Creating #{app_name}..."
50
+ FileUtils.cp_r File.dirname(__FILE__) + '/../lib/vesper/framework', app_name unless Dir.exists? app_name
51
+ puts "Bundling gems..."
52
+ exec "cd #{app_name} && bundle > /dev/null && echo '\n#{app_name} is ready. Next steps:\n cd #{app_name}\n rackup\n'"
53
+ end
54
+
55
+
56
+ # This should probably use a template, but we'll get to that later...
57
+ def create_plugin plugin_name
58
+ if Dir.exists? "plugins/#{plugin_name}"
59
+ puts ''
60
+ puts "#{plugin_name} is already installed in /plugins."
61
+ puts ''
62
+ else
63
+ puts 'Creating plugin...'
64
+ FileUtils.mkdir "plugins/#{plugin_name}"
65
+ FileUtils.mkdir "plugins/#{plugin_name}/application"
66
+ File.new "plugins/#{plugin_name}/application/#{plugin_name}.rb", 'w+'
67
+ FileUtils.mkdir "plugins/#{plugin_name}/config"
68
+ File.new "plugins/#{plugin_name}/config/#{plugin_name}.rb", 'w+'
69
+ FileUtils.mkdir "plugins/#{plugin_name}/tasks"
70
+ File.new "plugins/#{plugin_name}/tasks/#{plugin_name}.rb", 'w+'
71
+ File.new "plugins/#{plugin_name}/Gemfile", 'w+'
72
+ File.new "plugins/#{plugin_name}/Readme.md", 'w+'
73
+ puts ''
74
+ puts "#{plugin_name} has been install in /plugins."
75
+ puts 'For more information on Vesper plugin development, visit: http://vesperapps.com/learn'
76
+ puts ''
77
+ end
78
+ end
79
+
80
+
81
+ def remove_plugin plugin_name
82
+ if Dir.exists? "plugins/#{plugin_name}"
83
+ FileUtils.rm_rf "plugins/#{plugin_name}"
84
+ puts ''
85
+ puts "#{plugin_name} plugin removed."
86
+ puts ''
12
87
  else
13
- # This should be temporary until there are more ARGV[0] commands
14
88
  puts ''
15
- puts 'To create a Vesper app:'
16
- puts ' vesper create <app_name>'
89
+ puts 'That plugin isn\'t installed'
17
90
  puts ''
18
91
  end
92
+ end
93
+
94
+
95
+ def install_plugin plugin_name
96
+ # Download and install plugin
97
+ # Bundle gems
98
+ # Show next steps
99
+ show_coming_soon_message
100
+ end
101
+
102
+
103
+ unless ARGV[0] && ARGV[1] && ARGV[2]
104
+ show_options
19
105
  else
20
- puts ''
21
- puts 'To create a Vesper app:'
22
- puts ' vesper create <app_name>'
23
- puts ''
106
+ command = ARGV[0]
107
+ option = ARGV[1]
108
+ name = ARGV[2]
109
+
110
+ case command
111
+ when 'create'
112
+ if option == 'application' || option == 'app'
113
+ create_app name
114
+ elsif option == 'plugin'
115
+ create_plugin name
116
+ else
117
+ show_options
118
+ end
119
+ when 'install'
120
+ if option == 'plugin'
121
+ install_plugin name
122
+ else
123
+ show_options
124
+ end
125
+ when 'remove'
126
+ if option == 'plugin'
127
+ remove_plugin name
128
+ else
129
+ show_options
130
+ end
131
+ else
132
+ show_options
133
+ end
24
134
  end
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,9 @@
1
+ # Use the gems in Gemfile
2
+ require 'bundler'
3
+ Bundler.require
4
+
5
+ # Directories to load, in order
6
+ ['config', 'plugins/**/config', 'plugins/**/application', 'application'].each {|dir| Dir["./#{dir}/**/*.rb"].each {|file| require file}}
7
+
8
+ # Tell DataMapper that all the models are ready
9
+ DataMapper.finalize
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Vesper
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
data/vesper.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
16
  s.require_paths = ["lib"]
17
17
 
18
- s.post_install_message = "\nTo create a Vesper app:\n vesper create <app_name>\n\nSend any questions or comments to jarrodtaylor@me.com\n\n"
18
+ s.post_install_message = "\nTo see what vesper can do:\n vesper options\n\nSend any questions or comments to jarrodtaylor@me.com\n\n"
19
19
 
20
20
  s.add_development_dependency "bundler", "~> 1.0.21"
21
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vesper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &70097654583800 !ruby/object:Gem::Requirement
16
+ requirement: &70120681077000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.21
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70097654583800
24
+ version_requirements: *70120681077000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70097654582560 !ruby/object:Gem::Requirement
27
+ requirement: &70120681076400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.21
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70097654582560
35
+ version_requirements: *70120681076400
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: chronic
38
- requirement: &70097654580600 !ruby/object:Gem::Requirement
38
+ requirement: &70120681075740 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.6.5
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70097654580600
46
+ version_requirements: *70120681075740
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: data_mapper
49
- requirement: &70097654595260 !ruby/object:Gem::Requirement
49
+ requirement: &70120681090540 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.2.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70097654595260
57
+ version_requirements: *70120681090540
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: dm-sqlite-adapter
60
- requirement: &70097654591960 !ruby/object:Gem::Requirement
60
+ requirement: &70120681087640 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.2.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70097654591960
68
+ version_requirements: *70120681087640
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: redcarpet
71
- requirement: &70097654589680 !ruby/object:Gem::Requirement
71
+ requirement: &70120681086000 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 2.0.0
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70097654589680
79
+ version_requirements: *70120681086000
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: sinatra
82
- requirement: &70097654603820 !ruby/object:Gem::Requirement
82
+ requirement: &70120681084660 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 1.3.1
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70097654603820
90
+ version_requirements: *70120681084660
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: whenever
93
- requirement: &70097654603320 !ruby/object:Gem::Requirement
93
+ requirement: &70120681099980 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: 0.7.0
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70097654603320
101
+ version_requirements: *70120681099980
102
102
  description:
103
103
  email: jarrodtaylor@me.com
104
104
  executables:
@@ -112,50 +112,49 @@ files:
112
112
  - Rakefile
113
113
  - bin/vesper
114
114
  - lib/vesper.rb
115
- - lib/vesper/template/.gitignore
116
- - lib/vesper/template/Gemfile
117
- - lib/vesper/template/Gemfile.lock
118
- - lib/vesper/template/README.md
119
- - lib/vesper/template/Rakefile
120
- - lib/vesper/template/application/hello_world.rb
121
- - lib/vesper/template/config.ru
122
- - lib/vesper/template/config/databases.rb
123
- - lib/vesper/template/config/mime_types.rb
124
- - lib/vesper/template/config/schedule.rb
125
- - lib/vesper/template/config/sessions.rb
126
- - lib/vesper/template/data/seeds.rb
127
- - lib/vesper/template/data/transmogrify.rb
128
- - lib/vesper/template/loader.rb
129
- - lib/vesper/template/log/messages.log
130
- - lib/vesper/template/plugins/addendums/Readme.md
131
- - lib/vesper/template/plugins/addendums/application/helpers.rb
132
- - lib/vesper/template/plugins/addendums/application/number.rb
133
- - lib/vesper/template/plugins/addendums/application/string.rb
134
- - lib/vesper/template/plugins/log/Readme.md
135
- - lib/vesper/template/plugins/log/application/log.rb
136
- - lib/vesper/template/plugins/log/tasks/log.rb
137
- - lib/vesper/template/plugins/markdown/Gemfile
138
- - lib/vesper/template/plugins/markdown/Readme.md
139
- - lib/vesper/template/plugins/markdown/application/markdown.rb
140
- - lib/vesper/template/plugins/markdown/config/markdown.rb
141
- - lib/vesper/template/plugins/timepiece/Gemfile
142
- - lib/vesper/template/plugins/timepiece/Readme.md
143
- - lib/vesper/template/plugins/timepiece/application/timepiece.rb
144
- - lib/vesper/template/public/css/design.css
145
- - lib/vesper/template/public/img/fyeah.jpg
146
- - lib/vesper/template/public/js/hide_addressbar.js
147
- - lib/vesper/template/public/robots.txt
148
- - lib/vesper/template/tasks/databases.rb
149
- - lib/vesper/template/tasks/irb.rb
150
- - lib/vesper/template/tmp/restart.txt
151
- - lib/vesper/template/views/hello_world.html
152
- - lib/vesper/template/views/layout.html
115
+ - lib/vesper/framework/.gitignore
116
+ - lib/vesper/framework/Gemfile
117
+ - lib/vesper/framework/Rakefile
118
+ - lib/vesper/framework/Readme.md
119
+ - lib/vesper/framework/application/hello_world.rb
120
+ - lib/vesper/framework/config.ru
121
+ - lib/vesper/framework/config/databases.rb
122
+ - lib/vesper/framework/config/mime_types.rb
123
+ - lib/vesper/framework/config/schedule.rb
124
+ - lib/vesper/framework/config/sessions.rb
125
+ - lib/vesper/framework/data/seeds.rb
126
+ - lib/vesper/framework/data/transmogrify.rb
127
+ - lib/vesper/framework/loader.rb
128
+ - lib/vesper/framework/log/messages.log
129
+ - lib/vesper/framework/plugins/addendums/Readme.md
130
+ - lib/vesper/framework/plugins/addendums/application/helpers.rb
131
+ - lib/vesper/framework/plugins/addendums/application/number.rb
132
+ - lib/vesper/framework/plugins/addendums/application/string.rb
133
+ - lib/vesper/framework/plugins/log/Readme.md
134
+ - lib/vesper/framework/plugins/log/application/log.rb
135
+ - lib/vesper/framework/plugins/log/tasks/log.rb
136
+ - lib/vesper/framework/plugins/markdown/Gemfile
137
+ - lib/vesper/framework/plugins/markdown/Readme.md
138
+ - lib/vesper/framework/plugins/markdown/application/markdown.rb
139
+ - lib/vesper/framework/plugins/markdown/config/markdown.rb
140
+ - lib/vesper/framework/plugins/timepiece/Gemfile
141
+ - lib/vesper/framework/plugins/timepiece/Readme.md
142
+ - lib/vesper/framework/plugins/timepiece/application/timepiece.rb
143
+ - lib/vesper/framework/public/css/design.css
144
+ - lib/vesper/framework/public/img/fyeah.jpg
145
+ - lib/vesper/framework/public/js/hide_addressbar.js
146
+ - lib/vesper/framework/public/robots.txt
147
+ - lib/vesper/framework/tasks/databases.rb
148
+ - lib/vesper/framework/tasks/irb.rb
149
+ - lib/vesper/framework/tmp/restart.txt
150
+ - lib/vesper/framework/views/hello_world.html
151
+ - lib/vesper/framework/views/layout.html
153
152
  - lib/vesper/version.rb
154
153
  - vesper.gemspec
155
154
  homepage: http://jarrodtaylor.github.com/vesper/
156
155
  licenses: []
157
- post_install_message: ! "\nTo create a Vesper app:\n vesper create <app_name>\n\nSend
158
- any questions or comments to jarrodtaylor@me.com\n\n"
156
+ post_install_message: ! "\nTo see what vesper can do:\n vesper options\n\nSend any
157
+ questions or comments to jarrodtaylor@me.com\n\n"
159
158
  rdoc_options: []
160
159
  require_paths:
161
160
  - lib
@@ -1,85 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activesupport (3.1.3)
5
- multi_json (~> 1.0)
6
- addressable (2.2.6)
7
- bcrypt-ruby (3.0.1)
8
- chronic (0.6.5)
9
- data_mapper (1.2.0)
10
- dm-aggregates (~> 1.2.0)
11
- dm-constraints (~> 1.2.0)
12
- dm-core (~> 1.2.0)
13
- dm-migrations (~> 1.2.0)
14
- dm-serializer (~> 1.2.0)
15
- dm-timestamps (~> 1.2.0)
16
- dm-transactions (~> 1.2.0)
17
- dm-types (~> 1.2.0)
18
- dm-validations (~> 1.2.0)
19
- data_objects (0.10.7)
20
- addressable (~> 2.1)
21
- dm-aggregates (1.2.0)
22
- dm-core (~> 1.2.0)
23
- dm-constraints (1.2.0)
24
- dm-core (~> 1.2.0)
25
- dm-core (1.2.0)
26
- addressable (~> 2.2.6)
27
- dm-do-adapter (1.2.0)
28
- data_objects (~> 0.10.6)
29
- dm-core (~> 1.2.0)
30
- dm-migrations (1.2.0)
31
- dm-core (~> 1.2.0)
32
- dm-serializer (1.2.1)
33
- dm-core (~> 1.2.0)
34
- fastercsv (~> 1.5.4)
35
- json (~> 1.6.1)
36
- json_pure (~> 1.6.1)
37
- multi_json (~> 1.0.3)
38
- dm-sqlite-adapter (1.2.0)
39
- dm-do-adapter (~> 1.2.0)
40
- do_sqlite3 (~> 0.10.6)
41
- dm-timestamps (1.2.0)
42
- dm-core (~> 1.2.0)
43
- dm-transactions (1.2.0)
44
- dm-core (~> 1.2.0)
45
- dm-types (1.2.1)
46
- bcrypt-ruby (~> 3.0.0)
47
- dm-core (~> 1.2.0)
48
- fastercsv (~> 1.5.4)
49
- json (~> 1.6.1)
50
- multi_json (~> 1.0.3)
51
- stringex (~> 1.3.0)
52
- uuidtools (~> 2.1.2)
53
- dm-validations (1.2.0)
54
- dm-core (~> 1.2.0)
55
- do_sqlite3 (0.10.7)
56
- data_objects (= 0.10.7)
57
- fastercsv (1.5.4)
58
- json (1.6.3)
59
- json_pure (1.6.1)
60
- multi_json (1.0.4)
61
- rack (1.3.5)
62
- rack-protection (1.1.4)
63
- rack
64
- redcarpet (2.0.0)
65
- sinatra (1.3.1)
66
- rack (~> 1.3, >= 1.3.4)
67
- rack-protection (~> 1.1, >= 1.1.2)
68
- tilt (~> 1.3, >= 1.3.3)
69
- stringex (1.3.0)
70
- tilt (1.3.3)
71
- uuidtools (2.1.2)
72
- whenever (0.7.0)
73
- activesupport (>= 2.3.4)
74
- chronic (~> 0.6.3)
75
-
76
- PLATFORMS
77
- ruby
78
-
79
- DEPENDENCIES
80
- chronic (~> 0.6.5)
81
- data_mapper (~> 1.2.0)
82
- dm-sqlite-adapter (~> 1.2.0)
83
- redcarpet (~> 2.0.0)
84
- sinatra (~> 1.3.1)
85
- whenever (~> 0.7.0)
@@ -1,15 +0,0 @@
1
- # Use the gems in Gemfile
2
- require 'bundler'
3
- Bundler.require
4
-
5
- # Directories to load, in order
6
- [
7
- 'config',
8
- 'ext',
9
- 'plugins/**/config',
10
- 'plugins/**/application',
11
- 'application'
12
- ].each {|dir| Dir["./#{dir}/**/*.rb"].each {|file| require file}}
13
-
14
- # Tell DataMapper that all the models are ready
15
- DataMapper.finalize