Skip to content

Commit

Permalink
Switch to yard
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Feb 7, 2011
1 parent 5aea0f4 commit a7828ff
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 20 deletions.
5 changes: 3 additions & 2 deletions .gitignore
@@ -1,5 +1,6 @@
*.swp
test.db
factory_girl-*.gem
rdoc
coverage
doc
.yardoc
coverage
3 changes: 3 additions & 0 deletions .yardopts
@@ -0,0 +1,3 @@
lib/**/*.rb
-
LICENSE
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -7,4 +7,6 @@ gem "activerecord", :require => false
gem "rr"
gem "sqlite3-ruby", :require => false
gem "appraisal"
gem "yard"
gem "bluecloth"

4 changes: 4 additions & 0 deletions Gemfile.lock
Expand Up @@ -16,6 +16,7 @@ GEM
rake
arel (1.0.1)
activesupport (~> 3.0.0)
bluecloth (2.0.9)
builder (2.1.2)
cucumber (0.9.4)
builder (~> 2.1.2)
Expand Down Expand Up @@ -43,16 +44,19 @@ GEM
sqlite3-ruby (1.3.2)
term-ansicolor (1.0.5)
tzinfo (0.3.23)
yard (0.6.4)

PLATFORMS
ruby

DEPENDENCIES
activerecord
appraisal
bluecloth
cucumber
rake
rcov
rr
rspec (~> 2.0)
sqlite3-ruby
yard
22 changes: 5 additions & 17 deletions Rakefile
@@ -1,13 +1,13 @@
require 'rubygems'
require 'bundler/setup'
require 'rake'
require 'rake/rdoctask'
require 'rcov/rcovtask'
require 'date'
require 'rake/gempackagetask'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'appraisal'
require 'yard'

desc 'Default: run the specs and features.'
task :default => 'spec:unit' do
Expand Down Expand Up @@ -35,23 +35,8 @@ Rcov::RcovTask.new do |t|
t.verbose = true
end

desc 'Generate documentation for the factory_girl plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Factory Girl'
rdoc.options << '--line-numbers' << "--main" << "README.rdoc"
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('CONTRIBUTION_GUIDELINES.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end

desc 'Update documentation on website'
task :sync_docs => 'rdoc' do
`rsync -ave ssh rdoc/ dev@dev.thoughtbot.com:/home/dev/www/dev.thoughtbot.com/factory_girl`
end

desc "Clean files generated by rake tasks"
task :clobber => [:clobber_rdoc, :clobber_rcov]
task :clobber => [:clobber_rcov]

Cucumber::Rake::Task.new(:features) do |t|
t.fork = true
Expand All @@ -64,3 +49,6 @@ Rake::GemPackageTask.new($specification) do |package|
package.need_tar = true
end

YARD::Rake::YardocTask.new do |t|
end

2 changes: 1 addition & 1 deletion lib/factory_girl/definition_proxy.rb
Expand Up @@ -22,7 +22,7 @@ def initialize(factory)
#
# Arguments:
# * name: +Symbol+ or +String+
# The name of this attribute. This will be assigned using :"#{name}=" for
# The name of this attribute. This will be assigned using "name=" for
# generated instances.
# * value: +Object+
# If no block is given, this value will be used for this attribute.
Expand Down

0 comments on commit a7828ff

Please sign in to comment.