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
952013ef
Commit
952013ef
authored
Oct 23, 2009
by
Alex Chaffee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
documentation
parent
5b3d4459
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
42 deletions
+25
-42
README.rdoc
README.rdoc
+22
-41
annotate_models.rb
lib/annotate/annotate_models.rb
+2
-1
todo.txt
todo.txt
+1
-0
No files found.
README.rdoc
View file @
952013ef
...
@@ -27,12 +27,12 @@ The schema comment looks like this:
...
@@ -27,12 +27,12 @@ The schema comment looks like this:
It also annotates geometrical columns, geom type and srid, when using SpatialAdapter or PostgisAdapter:
It also annotates geometrical columns, geom type and srid, when using SpatialAdapter or PostgisAdapter:
# == Schema Info
# == Schema Info
#
#
# Table name: trips
# Table name: trips
#
#
# local :geometry point, 4326
# local :geometry point, 4326
# path :geometry line_string, 4326
# path :geometry line_string, 4326
Also, if you pass the -r option, it'll annotate routes.rb with the output of "rake routes".
Also, if you pass the -r option, it'll annotate routes.rb with the output of "rake routes".
...
@@ -72,6 +72,11 @@ To automatically annotate after running 'rake db:migrate':
...
@@ -72,6 +72,11 @@ To automatically annotate after running 'rake db:migrate':
[needs more clarity] unpack the gem into vendor/plugins, or maybe vendor/gems, or maybe just require tasks/migrate.rake.
[needs more clarity] unpack the gem into vendor/plugins, or maybe vendor/gems, or maybe just require tasks/migrate.rake.
If you install annotate_models as a plugin, it will automatically
adjust your <tt>rake db:migrate</tt> tasks so that they update the
annotations in your model files for you once the migration is
completed.
== OPTIONS
== OPTIONS
Usage: annotate [options] [model_file]*
Usage: annotate [options] [model_file]*
...
@@ -81,15 +86,11 @@ To automatically annotate after running 'rake db:migrate':
...
@@ -81,15 +86,11 @@ To automatically annotate after running 'rake db:migrate':
-v, --version Show the current version of this gem
-v, --version Show the current version of this gem
-m, --show-migration Include the migration version number in the annotation
-m, --show-migration Include the migration version number in the annotation
-i, --show-indexes List the table's database indexes in the annotation
-i, --show-indexes List the table's database indexes in the annotation
-s, --simple-indexes Concat the column's related indexes in the annotation
--model-dir dir Annotate model files stored in dir rather than app/models
--model-dir dir Annotate model files stored in dir rather than app/models
-R, --require path Additional files to require before loading models
-R, --require path Additional files to require before loading models
-e, --exclude [tests,fixtures] Do not annotate fixtures, test files, or both
-e, --exclude [tests,fixtures] Do not annotate fixtures, test files, or both
If you install annotate_models as a plugin, it will automatically
adjust your <tt>rake db:migrate</tt> tasks so that they update the
annotations in your model files for you once the migration is
completed.
== WARNING
== WARNING
...
@@ -111,29 +112,13 @@ to an automatically created comment block.
...
@@ -111,29 +112,13 @@ to an automatically created comment block.
Released under the same license as Ruby. No Support. No Warranty.
Released under the same license as Ruby. No Support. No Warranty.
== Author:
== AUTHOR:
Original code by:
Dave Thomas -- Pragmatic Programmers, LLC
AnnotateModels mods by:
Alexander Semyonov ( http://github.com/rotuka/annotate_models )
AnnotateRoutes originally by:
Original code by: Dave Thomas -- Pragmatic Programmers, LLC
Overhauled by: Alex Chaffee
Gemmed by: Cuong Tran
Maintained by: Alex Chaffee and Cuong Tran
Gavin Montague ( http://github.com/govan/annotate-routes )
== Forked from:
http://github.com/ctran/annotate_models
== Modifications
- alex@pivotallabs.com
=======
Modifications by:
Modifications by:
- Alex Chaffee - http://github.com/alexch - alex@pivotallabs.com
- Alex Chaffee - http://github.com/alexch - alex@pivotallabs.com
...
@@ -145,13 +130,9 @@ Modifications by:
...
@@ -145,13 +130,9 @@ Modifications by:
- Neal Clark - http://github.com/nclark
- Neal Clark - http://github.com/nclark
- Jacqui Maher - http://github.com/jacqui
- Jacqui Maher - http://github.com/jacqui
- Nick Plante - http://github.com/zapnap - http://blog.zerosum.org
- Nick Plante - http://github.com/zapnap - http://blog.zerosum.org
- Pedro Visintin - http://github.com/peterpunk - http://www.pedrovisintin.com
- Bob Potter - http://github.com/bpot
- Gavin Montague - http://github.com/govan/
- Alexander Semyonov - http://github.com/rotuka/
and many others that I may have missed to add.
and many others that I may have missed to add.
<<<<<<< HEAD
Primary maintainers: Cuong Tran and Alex Chaffee
=======
== This fork
Marcos Piccinini ( http://github.com/nofxx/annotate )
>>>>>>> nofxx/master
lib/annotate/annotate_models.rb
View file @
952013ef
...
@@ -273,7 +273,8 @@ module AnnotateModels
...
@@ -273,7 +273,8 @@ module AnnotateModels
rescue
Exception
=>
e
rescue
Exception
=>
e
puts
"Unable to annotate
#{
file
}
:
#{
e
.
inspect
}
"
puts
"Unable to annotate
#{
file
}
:
#{
e
.
inspect
}
"
puts
""
puts
""
puts
e
.
backtrace
.
join
(
"
\n\t
"
)
# todo: check if all backtrace lines are in "gems" -- if so, it's an annotate bug, so print the whole stack trace.
# puts e.backtrace.join("\n\t")
end
end
end
end
if
annotated
.
empty?
if
annotated
.
empty?
...
...
todo.txt
View file @
952013ef
...
@@ -2,3 +2,4 @@ TODO
...
@@ -2,3 +2,4 @@ TODO
-----
-----
change default position back to "top" for all
change default position back to "top" for all
add "top" and "bottom" as synonyms for "before" and "after"
add "top" and "bottom" as synonyms for "before" and "after"
change 'exclude' to 'only' (double negatives are not unconfusing)
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