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 gems:* [#59 state:resolved]
dsutedja (author)
Thu Jul 31 06:32:52 -0700 2008
commit  a0c3b4c13163ad66037e8088da888ff069135085
tree    73bd5398129a95977489345fed8c32cf76d23a7e
parent  e81da1d91b7450d718f3cf3b7e4b48454990c2f4
...
 
 
1
 
 
2
3
4
 
 
 
 
 
 
 
5
6
7
8
9
10
11
12
13
 
 
14
 
15
 
16
17
18
19
20
21
 
 
 
 
 
 
 
 
22
23
24
25
26
27
28
29
30
31
32
33
34
 
35
36
37
...
1
2
3
4
5
6
 
 
7
8
9
10
11
12
13
14
 
15
 
 
 
 
 
 
16
17
18
19
20
21
22
23
24
 
 
25
26
27
28
29
30
31
32
33
34
 
35
 
 
 
 
 
 
 
 
 
 
36
37
38
39
0
@@ -1,37 +1,39 @@
0
+* [#60] Fixed Mack executable problem
0
+* [#59] Fixed gems:* tasks
0
 * [#57] Moved most files under to lib/mack
0
+* [#56] mack-more: Added Mack::Utils::RegistryMap
0
+* [#55] mack-more: mack-facets: Mack::Utils::Registry is now Mack::Utils::RegistryList
0
 * [#54] Added DataMapper 0.9.3 support
0
-* [#24] Added mack-mailer support.
0
-* Added a rake tmp:clear task.
0
+* [#52] mack-more: mack-[orm] should require mack-[orm].rb using its full path.
0
+* [#51] Application generator should generate orm support in the right place
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 chance to load just the core files and not the application's files.
0
+* [#49] Making sure the orm tasks is available when orm_support is removed from the app_config
0
+* [#49] mack-active_record:  mack-active_record.rb will require mack-active_record_tasks.rb
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
 * [#48] rake generator:list now displays the correct names for the generator tasks.
0
-* [#46] Calling .to_param on nil now raises a NoMethodError exception.
0
 * [#47] rake gems:* tasks now work, and no longer require mack_ruby_core_extensions
0
-* [#18] Added Page caching. All that's needed for using page caching is to require the mack-caching gem, turn on
0
-  page caching in your config files with: 
0
-    use_page_caching: true
0
-  and, in your controllers, specify which pages you would like cached with the cache_pages directive:
0
-    cache_pages :only => [:index, :show] # you can also use :except
0
-* [#43] Added a Mack::Utils::Registry class to allow for easy creation of registries.
0
+* [#46] Calling .to_param on nil now raises a NoMethodError exception.
0
+* [#44] Data Factory
0
 * [#44] Mack::Runner has now been extended to allow for greater extension flexibility.
0
+* [#43] Added a Mack::Utils::Registry class to allow for easy creation of registries.
0
 * [#42] Sessions can now be turned off globally using the app_config.mack.use_sessions switch.
0
+* [#41] Deprecate orm_support.rb
0
 * [#38] There is now a registry of Controllers that are in the system.
0
 * [#36] Renamed the initialize method in the Mack::Controller module to configure_controller. This gives
0
   control of the initialize method back to the class.
0
-* [#31] Added support for ruby-debug.
0
-* [#33] mack-active_record now requires ActiveRecord 2.0.2 explicitly, not >=2.0.2
0
 * [#34] Mack::l10n now raises exception with a fully qualified name.
0
+* [#33] mack-active_record now requires ActiveRecord 2.0.2 explicitly, not >=2.0.2
0
+* [#31] Added support for ruby-debug.
0
+* [#24] Added mack-mailer support.
0
+* [#18] Added Page caching. All that's needed for using page caching is to require the mack-caching gem, turn on
0
+  page caching in your config files with: 
0
+    use_page_caching: true
0
+  and, in your controllers, specify which pages you would like cached with the cache_pages directive:
0
+    cache_pages :only => [:index, :show] # you can also use :except
0
 * [#7] Added support for Extlib::Hook in a few places.
0
-* [#41] Deprecate orm_support.rb
0
 * [#6] RJS support
0
-* [#49] Making sure the orm tasks is available when orm_support is removed from the app_config
0
-* [#49] mack-active_record:  mack-active_record.rb will require mack-active_record_tasks.rb
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
-* [#55] mack-more: mack-facets: Mack::Utils::Registry is now Mack::Utils::RegistryList
0
-* [#56] mack-more: Added Mack::Utils::RegistryMap
0
-* [#60] Fixed Mack executable problem
0
+* Added a rake tmp:clear task.
0
 * gem: application_configuration 1.5.1
0
 * gem: ruby-debug 0.10.0
0
 * gem: data_mapper 0.9.3
...
20
21
22
23
24
25
26
27
 
 
 
 
 
28
29
30
...
20
21
22
 
 
 
 
 
23
24
25
26
27
28
29
30
0
@@ -20,11 +20,11 @@ namespace :gems do
0
   
0
   private
0
   task :setup do
0
-    require File.join(File.dirname(__FILE__), "..", "core_extensions", "kernel")
0
-    require File.join(File.dirname(__FILE__), "..", "utils", "gem_manager")
0
-    require 'mack-facets'
0
-    require File.join(FileUtils.pwd, "config", "initializers", "gems")
0
-    require 'rubygems'
0
+    # require File.join(File.dirname(__FILE__), "..", "core_extensions", "kernel")
0
+    # require File.join(File.dirname(__FILE__), "..", "utils", "gem_manager")
0
+    # require 'mack-facets'
0
+    # require File.join(FileUtils.pwd, "config", "initializers", "gems")
0
+    # require 'rubygems'
0
     require 'rubygems/gem_runner'
0
     Gem.manage_gems
0
   end
...
31
32
33
34
35
36
37
 
 
 
 
 
 
 
 
 
38
39
40
41
42
...
31
32
33
 
 
 
 
34
35
36
37
38
39
40
41
42
43
 
44
45
46
0
@@ -31,12 +31,16 @@ module Mack
0
       # Requires the gem and any libs that you've specified.
0
       def do_requires
0
         @required_gem_list.each do |g|
0
-          if g.version?
0
-            gem(g.name, g.version)
0
-          else
0
-            gem(g.name)
0
+          begin
0
+            if g.version?
0
+              gem(g.name, g.version)
0
+            else
0
+              gem(g.name)
0
+            end
0
+            g.libs.each { |l| require l.to_s } if g.libs?
0
+          rescue Exception => ex
0
+            Mack.logger.warn "WARNING: gem #{g.name} [version: #{g.version}] is required, but is not installed"
0
           end
0
-          g.libs.each {|l| require l.to_s} if g.libs?
0
         end
0
       end
0
       
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+require 'ruby-debug'
0
+
0
 fl = File.join(File.dirname(__FILE__), "mack")
0
 
0
 require File.join(fl, "initialization", "configuration.rb")
...
19
20
21
22
23
24
25
...
19
20
21
 
22
23
24
0
@@ -19,7 +19,6 @@ require 'genosaurus'
0
 require 'net/http'
0
 require 'pp'
0
 require 'test/unit'
0
-require 'ruby-debug'
0
 
0
 fl = File.join(File.dirname(__FILE__), "mack")
0
 
...
49
50
51
52
 
53
54
55
...
49
50
51
 
52
53
54
55
0
@@ -49,7 +49,7 @@ namespace :gem do
0
         
0
         s.add_dependency("rack", "0.3.0")
0
         s.add_dependency("mack-more", gh.version)
0
-        s.add_dependency("application_configuration", "1.5.1")
0
+        s.add_dependency("application_configuration", "1.5.2")
0
         s.add_dependency("cachetastic", "1.7.2")
0
         s.add_dependency("log4r", "1.0.5")
0
         s.add_dependency("thin", "0.8.2")

Comments