Permalink
Browse files

Add YARD rake task and dependencies

  • Loading branch information...
1 parent ae2d824 commit 9aef13b501fbb00c502675c2e203f6c3c4c3dfe2 @sferik committed Dec 24, 2010
Showing with 23 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +5 −0 .yardopts
  3. +12 −0 Rakefile
  4. +4 −0 rails_admin.gemspec
View
@@ -4,6 +4,8 @@
*.swp
.DS_Store
.bundle
+.rvmrc
+.yardoc
Gemfile.lock
coverage/*
db/*.sqlite3
View
@@ -0,0 +1,5 @@
+--no-private
+--protected
+--markup markdown
+-
+LICENSE.mkd
View
@@ -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
View
@@ -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"]

0 comments on commit 9aef13b

Please sign in to comment.