Skip to content

Commit

Permalink
Configured Yard and RSpec rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
alsemyonov committed Aug 16, 2011
1 parent 515685b commit cfd3578
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.bundle
Gemfile.lock
pkg/*
/doc
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
--colour
-Ilib
-Ispec
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ group :development do
gem 'ripl-rails', require: 'ripl/rails'
gem 'ripl-rocket', require: 'ripl/rocket'
end

group :documentation do
gem 'yard'
end
20 changes: 20 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
require 'bundler/gem_tasks'

begin
require 'yard'
YARD::Rake::YardocTask.new(:doc)
rescue LoadError
task :doc do
abort "YARD is not available. In order to run yardoc, you must: gem install yard"
end
end

begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
task :spec do
abort "RSpec is not available. In order to run specs, you must: gem install rspec"
end
end

task default: :spec

0 comments on commit cfd3578

Please sign in to comment.