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 !
Fixed Mack blowing up if there is no config/initializers/gems.rb file. [#91 
state:resolved]
markbates (author)
Fri Aug 15 10:42:47 -0700 2008
commit  52b8dee642efc5aef7024af468c1402582499685
tree    276c570ad8125ba0ac73d5224f0a3424240966e9
parent  89e3fed23f182b925e7ea5c57f114c9e71925907
...
 
1
2
3
...
1
2
3
4
0
@@ -1,3 +1,4 @@
0
+* [#91] Fixed Mack blowing up if there is no config/initializers/gems.rb file.
0
 * [#90] Added deprecation system.
0
 * [#89] rake gems:* will now only display warning if any gem required is not installed (and not break)
0
 * [#88] Implemented pending SQLite3 tests in mack-activerecord
...
7
8
9
10
11
12
13
 
 
 
 
 
 
 
14
15
16
...
7
8
9
 
 
 
 
10
11
12
13
14
15
16
17
18
19
0
@@ -7,10 +7,13 @@ require 'application_configuration'
0
 require File.join(File.dirname(__FILE__), "mack", "initialization", "configuration.rb")
0
 
0
 require File.join(File.dirname(__FILE__), 'mack_core')
0
-require File.join(Mack.root, "config", "initializers", "gems.rb")
0
-begin
0
-  Mack::Utils::GemManager.instance.do_requires
0
-rescue Gem::LoadError
0
+gems_rb = File.join(Mack.root, "config", "initializers", "gems.rb")
0
+if File.exists?(gems_rb)
0
+  begin
0
+    require File.join(Mack.root, "config", "initializers", "gems.rb")
0
+    Mack::Utils::GemManager.instance.do_requires
0
+  rescue Gem::LoadError
0
+  end
0
 end
0
 
0
 orm = app_config.orm

Comments