public
Description: A simple and easy to use generator system for Ruby
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/genosaurus.git
Search Repo:
Fixed [#2 state:resolved] exception raised too early when relying on 
subclass defined `templates_directory_path` and `manifest_path`
markbates (author)
Thu May 15 08:35:29 -0700 2008
commit  0e9374a792e57969e9d5931ab224a4c10e4340f0
tree    d78b3393cbc995bfad581e427ec005fe4dcea934
parent  6fea0514a8ef7a6087623a6be3a85e2d0e77b998
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@
0
 require 'rubygems'
0
 require 'rubygems/gem_runner'
0
 
0
-GEM_VERSION = "1.1.7"
0
+GEM_VERSION = "1.1.8"
0
 GEM_NAME = "genosaurus"
0
 GEM_RUBYFORGE_PROJECT = "magrathea"
0
 
...
37
38
39
40
41
42
43
44
45
...
79
80
81
 
 
 
82
83
84
...
37
38
39
 
 
 
40
41
42
...
76
77
78
79
80
81
82
83
84
0
@@ -37,9 +37,6 @@
0
         @manifest_path = File.join(File.dirname(f), "manifest.yml")
0
       end
0
     end
0
- if @templates_directory_path.nil? || @manifest_path.nil?
0
- raise "Unable to dynamically figure out your templates_directory_path and manifest_path! Please implement these methods and let Genosaurus know where to find these things. Thanks."
0
- end
0
     setup
0
   end
0
   
0
@@ -79,6 +76,9 @@
0
   # of the templates_directory_path.
0
   def manifest
0
     ivar_cache do
0
+ if templates_directory_path.nil? || manifest_path.nil?
0
+ raise "Unable to dynamically figure out your templates_directory_path and manifest_path!\nPlease implement these methods and let Genosaurus know where to find these things. Thanks."
0
+ end
0
       if File.exists?(manifest_path)
0
         # run using the yml file
0
         template = ERB.new(File.open(manifest_path).read, nil, "->")

Comments

    No one has commented yet.