Skip to content

Commit

Permalink
Add YARD rake task and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Dec 24, 2010
1 parent ae2d824 commit 9aef13b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*.swp
.DS_Store
.bundle
.rvmrc
.yardoc
Gemfile.lock
coverage/*
db/*.sqlite3
Expand Down
5 changes: 5 additions & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--no-private
--protected
--markup markdown
-
LICENSE.mkd
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

task :default => :spec

namespace :doc do
require 'yard'
YARD::Rake::YardocTask.new do |task|
task.files = ['LICENSE.mkd', 'lib/**/*.rb']
task.options = [
'--protected',
'--output-dir', 'doc/yard',
'--markup', 'markdown',
]
end
end
4 changes: 4 additions & 0 deletions rails_admin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
require File.expand_path('../lib/rails_admin/version', __FILE__)

Gem::Specification.new do |s|
# If you add a development dependency, please maintain alphabetical order
s.add_development_dependency('devise', '~> 1.1')
s.add_development_dependency('dummy_data', '~> 0.9')
s.add_development_dependency('maruku', '~> 0.6')
s.add_development_dependency('paperclip', '~> 2.3')
s.add_development_dependency('rspec-rails', '~> 2.3')
s.add_development_dependency('simplecov', '~> 0.3')
s.add_development_dependency('webrat', '~> 0.7')
s.add_development_dependency('yard', '~> 0.6')
s.add_development_dependency('ZenTest', '~> 4.4')
# If you add a runtime dependency, please maintain alphabetical order
s.add_runtime_dependency('builder', '~> 2.1.0')
s.add_runtime_dependency('rails', '~> 3.0.3')
s.authors = ["Erik Michaels-Ober", "Bogdan Gaza"]
Expand Down

0 comments on commit 9aef13b

Please sign in to comment.