public
Fork of markbates/mack
Description: A Ruby web application framework
Homepage: http://www.mackframework.com
Clone URL: git://github.com/juretta/mack.git
Search Repo:
Update CHANGELOG. Created 'initializers'. Rename 'gem' tasks to 'gems'.
markbates (author)
Wed Apr 02 07:26:08 -0700 2008
commit  49227d9242910362140937683d1a46d7c14c8293
tree    538ddd6fa3410703eddcaaab1b60851b6e4fecd1
parent  78e3dc3cdd25d0a64c150acdbf1788647868335f
...
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
0
@@ -1,3 +1,8 @@
0
+* Added config/initializers directory. All files in this directory will be required at start up time.
0
+* Gems can now be required simply using the initializers/gems.rb file and the require_gems method.
0
+* Added gems:list and gems:install rake tasks. The gems:list task will list any gems being required for the application. The gems:install task will install all the gems being required for the application.
0
+* gem: thing 0.7.1
0
+
0
 ===0.4.1
0
 * Improved testing support.
0
 * Added assigns support to testing. This is allows for pulling instance variables that were set in a controller to tests.
...
36
37
38
 
39
40
41
...
36
37
38
39
40
41
42
0
@@ -36,6 +36,7 @@
0
 create_dir(File.join(app, "app", "views", "default"))
0
 create_dir(File.join(app, "app", "views", "layouts"))
0
 create_dir(File.join(app, "config", "app_config"))
0
+create_dir(File.join(app, "config", "initializers"))
0
 create_dir(File.join(app, "lib", "tasks"))
0
 create_dir(File.join(app, "log"))
0
 create_dir(File.join(app, "public", "images"))
...
1
2
3
4
5
6
7
8
9
10
11
12
...
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,13 +1 @@
0
-# Using this file you can add gems dependencies to your application.
0
-# gem_name, options
0
-# gem_name is the name of the gem you want to add.
0
-# :version, optional, is the version of the gem you want to use.
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
- # examples:
0
- # gem.add :redgreen, :version => "1.2.2", :libs => :redgreen
0
- # gem.add :termios
0
- # gem.add :rubyzip, :source => "http://gems.rubyforge.org"
0
-end
...
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
0
@@ -1 +1,13 @@
0
+# Using this file you can add gems dependencies to your application.
0
+# gem_name, options
0
+# gem_name is the name of the gem you want to add.
0
+# :version, optional, is the version of the gem you want to use.
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
+ # examples:
0
+ # gem.add :redgreen, :version => "1.2.2", :libs => :redgreen
0
+ # gem.add :termios
0
+ # gem.add :rubyzip, :source => "http://gems.rubyforge.org"
0
+end
...
59
60
61
62
63
 
 
 
 
64
65
66
...
59
60
61
 
 
62
63
64
65
66
67
68
0
@@ -59,8 +59,10 @@
0
   # set up routes:
0
   require File.join(MACK_CONFIG, "routes")
0
   
0
- # set up gems:
0
- require File.join(MACK_CONFIG, "gems")
0
+ # set up initializers:
0
+ Dir.glob(File.join(MACK_CONFIG, "initializers", "**/*.rb")) do |d|
0
+ require d
0
+ end
0
   Mack::Utils::GemManager.instance.do_requires
0
 
0
   # require 'plugins':
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-namespace :gem do
0
+namespace :gems do
0
   
0
   desc "lists all the gem required for this application."
0
   task :list => :setup do
...
10
11
12
13
 
14
15
16
...
10
11
12
 
13
14
15
16
0
@@ -10,7 +10,7 @@
0
     self.project = "magrathea"
0
     self.package = "mack"
0
     self.gem_name = "mack"
0
- self.version = "0.4.1.111"
0
+ self.version = "0.4.1.112"
0
   end
0
   
0
   def gem_name_with_version
...
1
2
3
4
...
 
 
 
 
0
@@ -1,5 +1 @@
0
-require_gems do |gem|
0
- gem.add :redgreen, :version => "1.2.2", :libs => :redgreen
0
- gem.add :termios
0
-end
...
 
 
 
 
...
1
2
3
4
0
@@ -1 +1,5 @@
0
+require_gems do |gem|
0
+ gem.add :redgreen, :version => "1.2.2", :libs => :redgreen
0
+ gem.add :termios
0
+end

Comments

    No one has commented yet.