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
cc7f3b15
Commit
cc7f3b15
authored
Feb 29, 2012
by
Jon Frisby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming bin to avoid conflict with ImageMagick.
parent
25b0f9a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
History.txt
History.txt
+2
-0
README.rdoc
README.rdoc
+5
-5
annotate.gemspec
annotate.gemspec
+0
-2
annotate_models
bin/annotate_models
+1
-1
No files found.
History.txt
View file @
cc7f3b15
...
...
@@ -21,6 +21,8 @@
* Fix handling of files with no trailing newline when putting annotations at
the end of the file.
* Accept String or Symbol for :position (et al) options.
* Rename "annotate" bin to "annotate_models" to avoid conflicting with
ImageMagick.
== 2.1 2009-10-18
...
...
README.rdoc
View file @
cc7f3b15
...
...
@@ -61,19 +61,19 @@ Into environment gems from Github checkout:
To annotate all your models, tests, fixtures, etc.:
cd /path/to/app
annotate
annotate
_models
To annotate your models and tests:
annotate --exclude fixtures
annotate
_models
--exclude fixtures
To annotate just your models:
annotate --exclude tests,fixtures
annotate
_models
--exclude tests,fixtures
To annotate routes.rb:
annotate -r
annotate
_models
-r
To automatically annotate after running 'rake db:migrate', ensure you've added
annotate_models to your Rails project's Gemfile, and run this:
...
...
@@ -86,7 +86,7 @@ you can use to tailor the output.
== OPTIONS
Usage: annotate [options] [model_file]*
Usage: annotate
_models
[options] [model_file]*
-d, --delete Remove annotations from all model files
-p, --position [before|after] Place the annotations at the top (before) or the bottom (after) of the model file
-r, --routes Annotate routes.rb with the output of 'rake routes'
...
...
annotate.gemspec
View file @
cc7f3b15
...
...
@@ -12,7 +12,6 @@ Gem::Specification.new do |s|
s
.
date
=
"2012-03-01"
s
.
description
=
"When run, inserts table descriptions from db.schema into a comment block of relevant source code."
s
.
email
=
[
"alex@stinky.com"
,
"ctran@pragmaquest.com"
,
"x@nofxx.com"
,
"turadg@aleahmad.net"
]
s
.
executables
=
[
"annotate"
]
s
.
extra_rdoc_files
=
[
"README.rdoc"
]
...
...
@@ -25,7 +24,6 @@ Gem::Specification.new do |s|
"Rakefile"
,
"VERSION.yml"
,
"annotate.gemspec"
,
"bin/annotate"
,
"lib/annotate.rb"
,
"lib/annotate/active_record_patch.rb"
,
"lib/annotate/annotate_models.rb"
,
...
...
bin/annotate
→
bin/annotate
_models
View file @
cc7f3b15
...
...
@@ -8,7 +8,7 @@ require 'rake'
task
=
:annotate_models
OptionParser
.
new
do
|
opts
|
opts
.
banner
=
"Usage: annotate [options] [model_file]*"
opts
.
banner
=
"Usage: annotate
_models
[options] [model_file]*"
opts
.
on
(
'-d'
,
'--delete'
,
"Remove annotations from all model files"
)
do
...
...
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