public
Description: A Ruby web application framework
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack.git
Click here to lend your support to: mack and make a donation at www.pledgie.com !
Application generator should generate orm support in the right place [#51 
state:resolved]
dsutedja (author)
Thu Jul 24 11:03:13 -0700 2008
commit  cea5fbfdf8bb6a462dc5975ffe360f882b6d9b3a
tree    c7d88875b24014c6d3ef221d205f1ad1886751b0
parent  27377420d7755048861f04cdead812cb320dbb28
...
24
25
26
 
 
27
28
29
...
24
25
26
27
28
29
30
31
0
@@ -24,6 +24,8 @@
0
 * [#49] mack-data_mapper:  mack-data_mapper.rb will require mack-data_mapper_tasks.rb
0
 * [#49] Updated warning message if orm is defined in app_config (i.e. user only needs to require mack-[orm_name], instead of both that and mack-[orm_name]_tasks).
0
 * [#50] Mack will now have 2 environment files: mack_core and mack_app.  Mack.rb will load both files, but it gives other module a chance to load just the core files and not the application's files.
0
+* [#51] Application generator should generate orm support in the right place
0
+* [#52] mack-more: mack-[orm] should require mack-[orm].rb using its full path.
0
 * gem: application_configuration 1.5.1
0
 * gem: ruby-debug 0.10.0
0
 
...
2
3
4
5
6
7
8
...
2
3
4
 
5
6
7
0
@@ -2,7 +2,6 @@ whiny_config_missing: false
0
 
0
 mack::session_id: _<%= @options["app"].downcase %>_session_id
0
 
0
-orm: <%= @options["orm"] %>
0
 mack::testing_framework: <%= @options["testing_framework"] %>
0
 
0
 # Mack provides RJS support through mack-javascript gem.
...
5
6
7
 
 
 
8
9
10
...
5
6
7
8
9
10
11
12
13
0
@@ -5,6 +5,9 @@
0
 # :libs, optional, is an array of files you want to require.
0
 # :source, options, is the source you want to use to install a particular gem.
0
 require_gems do |gem|
0
+<% if @options["orm"] -%>
0
+  gem.add "mack-<%=@options["orm"]%>", :libs => "mack-<%=@options["orm"]%>"
0
+<% end -%>
0
   # examples:
0
   # gem.add :redgreen, :version => "1.2.2", :libs => :redgreen
0
   # gem.add :termios

Comments