genosaurus 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -167,11 +167,8 @@ initialization.
167
167
  37: <span class="ruby-ivar">@manifest_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">f</span>), <span class="ruby-value str">&quot;manifest.yml&quot;</span>)
168
168
  38: <span class="ruby-keyword kw">end</span>
169
169
  39: <span class="ruby-keyword kw">end</span>
170
- 40: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@templates_directory_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@manifest_path</span>.<span class="ruby-identifier">nil?</span>
171
- 41: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;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.&quot;</span>
172
- 42: <span class="ruby-keyword kw">end</span>
173
- 43: <span class="ruby-identifier">setup</span>
174
- 44: <span class="ruby-keyword kw">end</span>
170
+ 40: <span class="ruby-identifier">setup</span>
171
+ 41: <span class="ruby-keyword kw">end</span>
175
172
  </pre>
176
173
  </div>
177
174
  </div>
@@ -283,9 +280,9 @@ generators.
283
280
  onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
284
281
  <div class="method-source-code" id="M000007-source">
285
282
  <pre>
286
- <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 73</span>
287
- 73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after_generate</span>
288
- 74: <span class="ruby-keyword kw">end</span>
283
+ <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 70</span>
284
+ 70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after_generate</span>
285
+ 71: <span class="ruby-keyword kw">end</span>
289
286
  </pre>
290
287
  </div>
291
288
  </div>
@@ -310,9 +307,9 @@ href="Genosaurus.html#M000001">run</a>.
310
307
  onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
311
308
  <div class="method-source-code" id="M000006-source">
312
309
  <pre>
313
- <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 68</span>
314
- 68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before_generate</span>
315
- 69: <span class="ruby-keyword kw">end</span>
310
+ <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 65</span>
311
+ 65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before_generate</span>
312
+ 66: <span class="ruby-keyword kw">end</span>
316
313
  </pre>
317
314
  </div>
318
315
  </div>
@@ -441,9 +438,12 @@ href="Genosaurus.html#M000003">templates_directory_path</a>.
441
438
  onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
442
439
  <div class="method-source-code" id="M000008-source">
443
440
  <pre>
444
- <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 80</span>
445
- 80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">manifest</span>
446
- 81: <span class="ruby-identifier">ivar_cache</span> <span class="ruby-keyword kw">do</span>
441
+ <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 77</span>
442
+ 77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">manifest</span>
443
+ 78: <span class="ruby-identifier">ivar_cache</span> <span class="ruby-keyword kw">do</span>
444
+ 79: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">templates_directory_path</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">manifest_path</span>.<span class="ruby-identifier">nil?</span>
445
+ 80: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;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.&quot;</span>
446
+ 81: <span class="ruby-keyword kw">end</span>
447
447
  82: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">manifest_path</span>)
448
448
  83: <span class="ruby-comment cmt"># run using the yml file</span>
449
449
  84: <span class="ruby-identifier">template</span> = <span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">manifest_path</span>).<span class="ruby-identifier">read</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-value str">&quot;-&gt;&quot;</span>)
@@ -495,10 +495,10 @@ return the correct path.
495
495
  onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
496
496
  <div class="method-source-code" id="M000004-source">
497
497
  <pre>
498
- <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 58</span>
499
- 58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">manifest_path</span>
500
- 59: <span class="ruby-ivar">@manifest_path</span>
501
- 60: <span class="ruby-keyword kw">end</span>
498
+ <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 55</span>
499
+ 55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">manifest_path</span>
500
+ 56: <span class="ruby-ivar">@manifest_path</span>
501
+ 57: <span class="ruby-keyword kw">end</span>
502
502
  </pre>
503
503
  </div>
504
504
  </div>
@@ -573,10 +573,10 @@ href="Genosaurus.html#M000005">setup</a> work needed by the generator.
573
573
  onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
574
574
  <div class="method-source-code" id="M000005-source">
575
575
  <pre>
576
- <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 63</span>
577
- 63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
578
- 64: <span class="ruby-comment cmt"># does nothing, unless overridden in subclass.</span>
579
- 65: <span class="ruby-keyword kw">end</span>
576
+ <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 60</span>
577
+ 60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
578
+ 61: <span class="ruby-comment cmt"># does nothing, unless overridden in subclass.</span>
579
+ 62: <span class="ruby-keyword kw">end</span>
580
580
  </pre>
581
581
  </div>
582
582
  </div>
@@ -637,10 +637,10 @@ return the correct path.
637
637
  onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
638
638
  <div class="method-source-code" id="M000003-source">
639
639
  <pre>
640
- <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 50</span>
641
- 50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">templates_directory_path</span>
642
- 51: <span class="ruby-ivar">@templates_directory_path</span>
643
- 52: <span class="ruby-keyword kw">end</span>
640
+ <span class="ruby-comment cmt"># File lib/genosaurus.rb, line 47</span>
641
+ 47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">templates_directory_path</span>
642
+ 48: <span class="ruby-ivar">@templates_directory_path</span>
643
+ 49: <span class="ruby-keyword kw">end</span>
644
644
  </pre>
645
645
  </div>
646
646
  </div>
data/doc/created.rid CHANGED
@@ -1 +1 @@
1
- Thu, 15 May 2008 00:07:39 -0400
1
+ Thu, 15 May 2008 11:29:21 -0400
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Wed May 14 23:35:59 -0400 2008</td>
59
+ <td>Thu May 15 10:54:04 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu May 15 00:02:36 -0400 2008</td>
59
+ <td>Thu May 15 11:26:33 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
data/lib/genosaurus.rb CHANGED
@@ -37,9 +37,6 @@ class Genosaurus
37
37
  @manifest_path = File.join(File.dirname(f), "manifest.yml")
38
38
  end
39
39
  end
40
- if @templates_directory_path.nil? || @manifest_path.nil?
41
- 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."
42
- end
43
40
  setup
44
41
  end
45
42
 
@@ -79,6 +76,9 @@ class Genosaurus
79
76
  # of the templates_directory_path.
80
77
  def manifest
81
78
  ivar_cache do
79
+ if templates_directory_path.nil? || manifest_path.nil?
80
+ 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."
81
+ end
82
82
  if File.exists?(manifest_path)
83
83
  # run using the yml file
84
84
  template = ERB.new(File.open(manifest_path).read, nil, "->")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genosaurus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements: []
74
74
 
75
75
  rubyforge_project: magrathea
76
- rubygems_version: 1.1.1
76
+ rubygems_version: 1.0.1
77
77
  signing_key:
78
78
  specification_version: 2
79
79
  summary: genosaurus