Commit 03d8d138 by Jon Frisby

Switch to YARD.

parent f094da62
spec/**/*.rb
lib/**/*.rb
-
README.rdoc
CHANGELOG.rdoc
TODO.rdoc
.DS_Store .DS_Store
doc/* /.yardoc/*
rdoc/* /doc/*
coverage/* /coverage/*
spec/debug.log /spec/debug.log
pkg/* /pkg/*
dist /dist
Gemfile.lock /Gemfile.lock
*.gem *.gem
/.idea/ /.idea/
.rvmrc .rvmrc
......
--no-private
...@@ -6,11 +6,16 @@ ...@@ -6,11 +6,16 @@
* Recognize column+type, and don't change a file unless the column+type combination of the new schema are different than that of the old (i.e., don't regenerate if columns happen to be in a different order. That's just how life is sometimes.) * Recognize column+type, and don't change a file unless the column+type combination of the new schema are different than that of the old (i.e., don't regenerate if columns happen to be in a different order. That's just how life is sometimes.)
* Grab old specification even if it has \r\n as line endings rather than pure \ns * Grab old specification even if it has \r\n as line endings rather than pure \ns
* Various warning and specification fixes * Various warning and specification fixes
* Fix "no such file to load -- annotate/annotate_models (MissingSourceFile)" error (require statements in tasks now use full path to lib files) * Fix "no such file to load -- annotate/annotate_models (MissingSourceFile)"
* warn about macros, to mitigate when we're included during a production run, not just a rakefile run -- possibly at the expense of too much noise error (require statements in tasks now use full path to lib files)
* warn about macros, to mitigate when we're included during a production run,
not just a rakefile run -- possibly at the expense of too much noise
* Adding rake as a runtime dependency * Adding rake as a runtime dependency
* If the schema is already in the model file, it will be replaced into the same location. If it didn't previously exist, it'll be placed according to the "position", as before. * If the schema is already in the model file, it will be replaced into the same
* Allow task loading from Rakefile for gems (plugin installation already auto-detects). location. If it didn't previously exist, it'll be placed according to the
"position", as before.
* Allow task loading from Rakefile for gems (plugin installation already
auto-detects).
* Add skip_on_db_migrate option as well for people that don't want it * Add skip_on_db_migrate option as well for people that don't want it
* Fix options parsing to convert strings to proper booleans * Fix options parsing to convert strings to proper booleans
* Add support for Fabrication fabricators * Add support for Fabrication fabricators
...@@ -72,7 +77,8 @@ ...@@ -72,7 +77,8 @@
== 2.4.0 2009-12-13 == 2.4.0 2009-12-13
* Incorporated lots of patches from the Github community, including support for Blueprints fixtures * Incorporated lots of patches from the Github community, including support for
Blueprints fixtures
* Several bug fixes * Several bug fixes
== 2.1 2009-10-18 == 2.1 2009-10-18
......
...@@ -6,8 +6,10 @@ group :development do ...@@ -6,8 +6,10 @@ group :development do
gem 'mg' gem 'mg'
gem 'rspec' gem 'rspec'
gem 'wrong', '>=0.6.2' gem 'wrong', '>=0.6.2'
gem 'rdoc'
gem 'files', '>=0.2.1' gem 'files', '>=0.2.1'
platforms :ruby do
gem 'yard', :require => false
end
end end
gem 'activesupport', '>= 3.0.0', :require => nil gem 'activesupport', '>= 3.0.0', :require => nil
...@@ -129,10 +129,9 @@ annotation are consistent regardless of what order migrations are executed in, u ...@@ -129,10 +129,9 @@ annotation are consistent regardless of what order migrations are executed in, u
== WARNING == WARNING
Note that this code will blow away the initial/final comment Note that this code will blow away the initial/final comment block in your
block in your models if it looks like it was previously added models if it looks like it was previously added by this gem, so you don't want
by annotate models, so you don't want to add additional text to add additional text to an automatically created comment block.
to an automatically created comment block.
BACK UP YOUR MODELS BEFORE USING THIS TOOL! BACK UP YOUR MODELS BEFORE USING THIS TOOL!
......
...@@ -19,38 +19,25 @@ require "#{here}/lib/annotate" ...@@ -19,38 +19,25 @@ require "#{here}/lib/annotate"
# want other tests/tasks run by default? Add them to the list # want other tests/tasks run by default? Add them to the list
task :default => [:spec] task :default => [:spec]
# mg ("minimalist gems") defines rake tasks: require 'mg'
#
# rake gem
# Build gem into dist/
#
# rake gem:publish
# Push the gem to RubyGems.org
#
# rake gem:install
# Build and install as local gem
#
# rake package
# Build gem and tarball into dist/
begin
require 'mg'
rescue LoadError
abort "Please `gem install mg`"
end
MG.new("annotate.gemspec") MG.new("annotate.gemspec")
task :default => :spec
require "rspec/core/rake_task" # RSpec 2.0 require "rspec/core/rake_task" # RSpec 2.0
RSpec::Core::RakeTask.new(:spec) do |t| RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = ['spec/*_spec.rb', 'spec/**/*_spec.rb'] t.pattern = ['spec/*_spec.rb', 'spec/**/*_spec.rb']
t.rspec_opts = ['--backtrace', '--format d'] t.rspec_opts = ['--backtrace', '--format d']
end end
require 'rdoc/task' require 'yard'
RDoc::Task.new do |rdoc| YARD::Rake::YardocTask.new do |t|
rdoc.rdoc_dir = 'rdoc' # t.files = ['features/**/*.feature', 'features/**/*.rb', 'lib/**/*.rb']
rdoc.title = "annotated_models #{Annotate.version}" # t.options = ['--any', '--extra', '--opts'] # optional
rdoc.rdoc_files.include('README*') end
rdoc.rdoc_files.include('lib/**/*.rb')
namespace :yard do
task :clobber do
FileUtils.rm_f(".yardoc")
FileUtils.rm_f("doc")
end
end end
task :clobber => :'yard:clobber'
== TODO
- clean up history
- change default position back to "top" for all annotations
- add "top" and "bottom" as synonyms for "before" and "after"
- change 'exclude' to 'only' (double negatives are not unconfusing)
== TODO (proposed)
- push two identical gems, named 'annotate' and 'annotate_models'
- supply two binaries, named 'annotate' and 'annotate_models', since there's already a unix tool named 'annotate'
- test EVERYTHING
...@@ -10,9 +10,9 @@ Gem::Specification.new do |s| ...@@ -10,9 +10,9 @@ Gem::Specification.new do |s|
s.email = ["alex@stinky.com", "ctran@pragmaquest.com", "x@nofxx.com", "turadg@aleahmad.net"] s.email = ["alex@stinky.com", "ctran@pragmaquest.com", "x@nofxx.com", "turadg@aleahmad.net"]
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.extra_rdoc_files = ["README.rdoc"] s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc", "TODO.rdoc"]
s.files = %w( README.rdoc History.txt ) s.files = %w( README.rdoc CHANGELOG.rdoc TODO.rdoc )
s.files += Dir.glob("lib/**/*") s.files += Dir.glob("lib/**/*")
s.files += Dir.glob("tasks/**/*") s.files += Dir.glob("tasks/**/*")
s.files += ["bin/annotate"] # todo: annotate_models s.files += ["bin/annotate"] # todo: annotate_models
......
TODO
-----
* clean up history
* change default position back to "top" for all annotations
* add "top" and "bottom" as synonyms for "before" and "after"
* change 'exclude' to 'only' (double negatives are not unconfusing)
TODO (proposed)
----------------
* make a mailing list
alex@stinky.com
ctran@pragmaquest.com
x@nofxx.com
turadg@aleahmad.net
jfrisby@mrjoy.com
Jack Danger Canty
peterpunk
Ian Duggan
Bill Harding
* push two identical gems, named 'annotate' and 'annotate_models'
* supply two binaries, named 'annotate' and 'annotate_models', since there's already a unix tool named 'annotate'
* test EVERYTHING
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment