Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
3502a73c
Commit
3502a73c
authored
Feb 29, 2008
by
Cuong Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a script so don't need to rely on Sake anymore
parent
4bf03485
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
14 deletions
+17
-14
Manifest.txt
Manifest.txt
+1
-1
README.txt
README.txt
+2
-3
annotate
bin/annotate
+5
-0
hoe.rb
config/hoe.rb
+2
-2
annotate.rb
lib/tasks/annotate.rb
+2
-1
index.html
website/index.html
+3
-4
index.txt
website/index.txt
+2
-3
No files found.
Manifest.txt
View file @
3502a73c
...
...
@@ -11,8 +11,8 @@ log/debug.log
script/destroy
script/generate
script/txt2html
bin/annotate
setup.rb
tasks/annotate.rake
tasks/deployment.rake
tasks/environment.rake
tasks/website.rake
...
...
README.txt
View file @
3502a73c
...
...
@@ -25,12 +25,11 @@ Install
=======
sudo gem install sake annotate_models
sake -i http://github.com/ctran/annotate_models/tree/master/tasks/annotate.rake?raw=true
Usage
=====
sake annotate_models
cd [your project]
annotate
Source
======
...
...
bin/annotate
0 → 100644
View file @
3502a73c
load 'Rakefile'
require 'tasks/annotate'
Rake::Task['annotate_models'].invoke
config/hoe.rb
View file @
3502a73c
...
...
@@ -58,8 +58,8 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
# == Optional
p
.
changes
=
p
.
paragraphs_of
(
"History.txt"
,
0
..
1
).
join
(
"
\n\n
"
)
p
.
extra_deps
=
[
[
'sake'
,
'1.0.13'
]
]
# An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
#
p.spec_extras = {} # A hash of extra values to set in the gemspec.
p
.
extra_deps
=
[]
# An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
p
.
spec_extras
=
{}
# A hash of extra values to set in the gemspec.
end
...
...
tasks/annotate.rake
→
lib/tasks/annotate.rb
View file @
3502a73c
...
...
@@ -2,4 +2,4 @@ desc "Add schema information (as comments) to model files"
task
:annotate_models
=>
:environment
do
require
'annotate_models'
AnnotateModels
.
do_annotations
end
end
\ No newline at end of file
website/index.html
View file @
3502a73c
...
...
@@ -46,7 +46,6 @@
<p><pre
class=
'syntax'
>
<span
class=
"ident"
>
sudo
</span>
<span
class=
"ident"
>
gem
</span>
<span
class=
"ident"
>
install
</span>
<span
class=
"ident"
>
annotate_models
</span>
<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>
</pre></p>
...
...
@@ -55,13 +54,13 @@ Add a comment summarizing the current schema to the top of each ActiveRecord mod
<p>
This was created by Dave Thomas as a Rails plugin.
This is now a gem that can
be used together with
<a
href=
"http://errtheblog.com/posts/60-sake-bomb"
>
Sake
</a>
</p>
This is now a gem that can
run from command line
</p>
<h2>
Demonstration of usage
</h2>
<p>
Go to your
<span
class=
"caps"
>
RAILS
</span>
_ROOT dir, then run
<code>
sake annotate_models
</code></p>
<p>
Go to your
<span
class=
"caps"
>
RAILS
</span>
_ROOT dir, then run
<code>
annotate
</code></p>
<h2>
How to submit patches
</h2>
...
...
@@ -87,7 +86,7 @@ This is now a gem that can be used together with <a href="http://errtheblog.com/
<p>
Comments are welcome. Send an email to
<a
href=
"mailto:ctran@pragmaquest.com"
>
Cuong Tran
</a></p>
<p
class=
"coda"
>
<a
href=
"ctran@pragmaquest.com"
>
Cuong Tran
</a>
, 2
8
th February 2008
<br>
<a
href=
"ctran@pragmaquest.com"
>
Cuong Tran
</a>
, 2
9
th February 2008
<br>
Theme extended from
<a
href=
"http://rb2js.rubyforge.org/"
>
Paul Battley
</a>
</p>
</div>
...
...
website/index.txt
View file @
3502a73c
...
...
@@ -10,18 +10,17 @@ h2. Installing
<pre syntax="ruby">
sudo gem install annotate_models
sake -i http://github.com/ctran/annotate_models/tree/master/tasks/annotate.rake?raw=true
</pre>
h2. The basics
Add a comment summarizing the current schema to the top of each ActiveRecord model source file.
This was created by Dave Thomas as a Rails plugin.
This is now a gem that can
be used together with "Sake":http://errtheblog.com/posts/60-sake-bomb
This is now a gem that can
run from command line
h2. Demonstration of usage
Go to your RAILS_ROOT dir, then run <code>
sake annotate_models
</code>
Go to your RAILS_ROOT dir, then run <code>
annotate
</code>
h2. How to submit patches
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment