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 !
More work for requiring gems in a nice way.
markbates (author)
Mon Mar 31 14:30:10 -0700 2008
commit  f8b73a88db2267d35b72af06f3475905696fcbd3
tree    5d83ea661802973ae3918ed1d64732d5450a6deb
parent  d325e95548e41804501886e9c439218c843b1d1a
...
12
13
14
 
 
 
 
15
16
...
12
13
14
15
16
17
18
19
20
0
@@ -12,4 +12,8 @@ module Kernel
0
     Mack::Utils::Crypt::Keeper.instance.worker(worker).decrypt(value)
0
   end
0
   
0
+ def require_gems
0
+ yield Mack::Utils::GemManager.instance
0
+ end
0
+
0
 end
0
\ No newline at end of file
...
57
58
59
60
 
 
 
 
 
61
62
63
...
57
58
59
 
60
61
62
63
64
65
66
67
0
@@ -57,7 +57,11 @@ unless Object.const_defined?("MACK_INITIALIZED")
0
   # set up application stuff:
0
 
0
   # set up routes:
0
- require File.join(MACK_ROOT, "config", "routes")
0
+ require File.join(MACK_CONFIG, "routes")
0
+
0
+ # set up gems:
0
+ require File.join(MACK_CONFIG, "gems")
0
+ Mack::Utils::GemManager.instance.do_requires
0
 
0
   # require 'plugins':
0
   require File.join(File.dirname(__FILE__), "initializers", "plugins.rb")

Comments

    No one has commented yet.