public
Description: Annotate ActiveRecord models as a gem
Homepage: http://agilewebdevelopment.com/plugins/annotate_models
Clone URL: git://github.com/ctran/annotate_models.git
Search Repo:
change the gem name to annotate-models so rubyforge is happy
ctran (author)
Fri Feb 29 11:40:21 -0800 2008
commit  b1ab589f7bd5af459978567edb0e1489b7b794af
tree    9566e6afcbe37277ff818435517242d038579ebe
parent  7f96c0c88868afc2b80fe4b4c8748a5edad27c29
...
1
2
 
3
4
5
6
7
8
9
...
21
22
23
24
25
 
26
27
28
29
30
 
 
31
32
33
34
35
 
36
37
38
39
40
 
41
42
43
44
45
46
47
 
48
49
...
 
 
1
2
3
4
5
6
7
8
...
20
21
22
 
 
23
24
25
26
 
 
27
28
29
30
31
 
 
32
33
34
35
36
 
37
38
39
40
41
42
43
 
44
45
46
0
@@ -1,5 +1,4 @@
0
-AnnotateModels
0
-==============
0
+== AnnotateModels
0
 
0
 Add a comment summarizing the current schema to the top of each ActiveRecord model source file.
0
 
0
0
0
0
0
@@ -21,30 +20,28 @@
0
 previously added by annotate models, so you don't want to add additional text to an automatically
0
 created comment block.
0
 
0
-Install
0
-=======
0
+== Install
0
 
0
   sudo gem install sake annotate_models
0
   
0
-Usage
0
-=====
0
+== Usage
0
+
0
   cd [your project]
0
   annotate
0
 
0
-Source
0
-======
0
+== Source
0
 
0
   http://github.com/ctran/annotate_models
0
   
0
   
0
-Author:
0
+== Author
0
    Dave Thomas
0
    Pragmatic Programmers, LLC
0
 
0
 Released under the same license as Ruby. No Support. No Warranty.
0
 
0
 
0
-Modifications by:
0
+== Modifications
0
  - alex@pivotallabs.com
0
  - ctran@pragmaquest.com
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@
0
 AUTHOR = 'Dave Thomas' # can also be an array of Authors
0
 EMAIL = "ctran@pragmaquest.com"
0
 DESCRIPTION = "Add a comment summarizing the current schema to the top of each ActiveRecord model source file"
0
-GEM_NAME = 'annotate_models' # what ppl will type to install your gem
0
+GEM_NAME = 'annotate-models' # what ppl will type to install your gem
0
 RUBYFORGE_PROJECT = 'annotate-models' # The unix name for your project
0
 HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
0
 DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
...
5
6
7
8
 
9
10
11
12
...
30
31
32
33
 
34
35
36
37
38
 
39
40
41
...
45
46
47
48
 
49
50
51
...
5
6
7
 
8
9
10
11
12
...
30
31
32
 
33
34
35
36
37
 
38
39
40
41
...
45
46
47
 
48
49
50
51
0
@@ -5,7 +5,7 @@
0
   <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
0
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
0
   <title>
0
- annotate_models
0
+ annotate-models
0
   </title>
0
   <script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
0
 <style>
0
0
@@ -30,12 +30,12 @@
0
 <body>
0
 <div id="main">
0
 
0
- <h1>annotate_models</h1>
0
+ <h1>annotate-models</h1>
0
     <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/annotate-models"; return false'>
0
       <p>Get Version</p>
0
       <a href="http://rubyforge.org/projects/annotate-models" class="numbers">1.0.0</a>
0
     </div>
0
- <h1>&#x2192; &#8216;annotate_models&#8217;</h1>
0
+ <h1>&#x2192; &#8216;annotate-models&#8217;</h1>
0
 
0
 
0
   <h2>What</h2>
0
@@ -45,7 +45,7 @@
0
 
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">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">annotate</span><span class="punct">-</span><span class="ident">models</span>
0
 </pre></p>
0
 
0
 
...
1
 
2
3
 
4
5
6
...
9
10
11
12
 
13
14
15
...
 
1
2
 
3
4
5
6
...
9
10
11
 
12
13
14
15
0
@@ -1,6 +1,6 @@
0
-h1. annotate_models
0
+h1. annotate-models
0
 
0
-h1. &#x2192; 'annotate_models'
0
+h1. &#x2192; 'annotate-models'
0
 
0
 
0
 h2. What
0
@@ -9,7 +9,7 @@
0
 h2. Installing
0
 
0
 <pre syntax="ruby">
0
- sudo gem install annotate_models
0
+ sudo gem install annotate-models
0
 </pre>
0
 
0
 h2. The basics
...
37
38
39
40
 
41
42
43
...
37
38
39
 
40
41
42
43
0
@@ -37,7 +37,7 @@
0
     </div>
0
     <%= body %>
0
     <p class="coda">
0
- <a href="ctran@pragmaquest.com">Cuong Tran</a>, <%= modified.pretty %><br>
0
+ <a href="http://www.pragmaquest.com">Cuong Tran</a>, <%= modified.pretty %><br>
0
       Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
0
     </p>
0
 </div>

Comments

  • Bringo Mon Jun 23 13:56:15 -0700 2008

    On Rails 2.1 I am getting some strange behavior when I try to put the following line in config/environment.rb:
    config.gem “annotate_models”
    and then:
    % rake gems:unpack:dependencies
    rake aborted!
    You have a nil object when you didn’t expect it!
    The error occurred while evaluating nil.dependencies
    I tried the hyphenated variant just for kicks and got:
    % rake gems:unpack:dependencies
    no such file to load—annotate-models
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
    I will try to investigate further, maybe this is a user problem but maybe someone can confirm or deny that this is working? Thx.

  • ctran Mon Jun 23 19:08:11 -0700 2008

    The name of the gem is annotate-models. However, you don’t need to add it to config/environment.rb. Just do “gem install annotate-models” and follow the instructions in README