public
Fork of ctran/annotate_models
Description: Annotate ActiveRecord models as a gem
Homepage: http://agilewebdevelopment.com/plugins/annotate_models
Clone URL: git://github.com/dustin/annotate_models.git
Add a script so don't need to rely on Sake anymore
ctran (author)
Fri Feb 29 07:52:46 -0800 2008
commit  3502a73c1559887f86978cf9cfe2f8aff124fa55
tree    21d47fcbdb5bc0429c1cbc5887b24739f2344719
parent  4bf03485a4bf161bb463dda3b3b848f68400d508
...
11
12
13
 
14
15
16
17
18
...
11
12
13
14
15
 
16
17
18
0
@@ -11,8 +11,8 @@ log/debug.log
0
 script/destroy
0
 script/generate
0
 script/txt2html
0
+bin/annotate
0
 setup.rb
0
-tasks/annotate.rake
0
 tasks/deployment.rake
0
 tasks/environment.rake
0
 tasks/website.rake
...
25
26
27
28
29
30
31
32
33
 
 
34
35
36
...
25
26
27
 
28
29
30
 
 
31
32
33
34
35
0
@@ -25,12 +25,11 @@ Install
0
 =======
0
 
0
   sudo gem install sake annotate_models
0
- sake -i http://github.com/ctran/annotate_models/tree/master/tasks/annotate.rake?raw=true
0
   
0
 Usage
0
 =====
0
-
0
- sake annotate_models
0
+ cd [your project]
0
+ annotate
0
 
0
 Source
0
 ======
...
58
59
60
61
62
 
 
63
64
65
...
58
59
60
 
 
61
62
63
64
65
0
@@ -58,8 +58,8 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
0
   
0
   # == Optional
0
   p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
0
- p.extra_deps = [['sake', '1.0.13']] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
0
- #p.spec_extras = {} # A hash of extra values to set in the gemspec.
0
+ p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
0
+ p.spec_extras = {} # A hash of extra values to set in the gemspec.
0
   
0
 end
0
 
...
46
47
48
49
50
51
52
...
55
56
57
58
 
59
60
61
62
63
64
 
65
66
67
...
87
88
89
90
 
91
92
93
...
46
47
48
 
49
50
51
...
54
55
56
 
57
58
59
60
61
62
 
63
64
65
66
...
86
87
88
 
89
90
91
92
0
@@ -46,7 +46,6 @@
0
 
0
   <p><pre class='syntax'>
0
   <span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">annotate_models</span>
0
- <span class="ident">sake</span> <span class="punct">-</span><span class="ident">i</span> <span class="ident">http</span><span class="punct">:/</span><span class="regex"></span><span class="punct">/</span><span class="ident">github</span><span class="punct">.</span><span class="ident">com</span><span class="punct">/</span><span class="ident">ctran</span><span class="punct">/</span><span class="ident">annotate_models</span><span class="punct">/</span><span class="ident">tree</span><span class="punct">/</span><span class="ident">master</span><span class="punct">/</span><span class="ident">tasks</span><span class="punct">/</span><span class="ident">deployment</span><span class="punct">.</span><span class="ident">rake?raw</span><span class="punct">=</span><span class="constant">true</span>
0
 </pre></p>
0
 
0
 
0
@@ -55,13 +54,13 @@ Add a comment summarizing the current schema to the top of each ActiveRecord mod
0
 
0
 
0
   <p>This was created by Dave Thomas as a Rails plugin.
0
-This is now a gem that can be used together with <a href="http://errtheblog.com/posts/60-sake-bomb">Sake</a></p>
0
+This is now a gem that can run from command line</p>
0
 
0
 
0
   <h2>Demonstration of usage</h2>
0
 
0
 
0
- <p>Go to your <span class="caps">RAILS</span>_ROOT dir, then run <code>sake annotate_models</code></p>
0
+ <p>Go to your <span class="caps">RAILS</span>_ROOT dir, then run <code>annotate</code></p>
0
 
0
 
0
   <h2>How to submit patches</h2>
0
@@ -87,7 +86,7 @@ This is now a gem that can be used together with <a href="http://errtheblog.com/
0
 
0
   <p>Comments are welcome. Send an email to <a href="mailto:ctran@pragmaquest.com">Cuong Tran</a></p>
0
     <p class="coda">
0
- <a href="ctran@pragmaquest.com">Cuong Tran</a>, 28th February 2008<br>
0
+ <a href="ctran@pragmaquest.com">Cuong Tran</a>, 29th February 2008<br>
0
       Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
0
     </p>
0
 </div>
...
10
11
12
13
14
15
16
17
18
19
20
 
21
22
23
24
 
25
26
27
...
10
11
12
 
13
14
15
16
17
18
 
19
20
21
22
 
23
24
25
26
0
@@ -10,18 +10,17 @@ h2. Installing
0
 
0
 <pre syntax="ruby">
0
   sudo gem install annotate_models
0
- sake -i http://github.com/ctran/annotate_models/tree/master/tasks/annotate.rake?raw=true
0
 </pre>
0
 
0
 h2. The basics
0
 Add a comment summarizing the current schema to the top of each ActiveRecord model source file.
0
 
0
 This was created by Dave Thomas as a Rails plugin.
0
-This is now a gem that can be used together with "Sake":http://errtheblog.com/posts/60-sake-bomb
0
+This is now a gem that can run from command line
0
 
0
 h2. Demonstration of usage
0
 
0
-Go to your RAILS_ROOT dir, then run <code>sake annotate_models</code>
0
+Go to your RAILS_ROOT dir, then run <code>annotate</code>
0
 
0
 h2. How to submit patches
0
 

Comments

    No one has commented yet.