Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (37 sloc) 0.942 kb
require 'rubygems'
gem 'rspec'
gem 'reek'
require 'rspec'
require 'rdoc/task'
require 'rspec/core/rake_task'
require 'reek/rake/task'
task :default => :spec
namespace :gem do
desc "Builds the gem"
task :build do
system "gem build *.gemspec && mkdir -p pkg/ && mv *.gem pkg/"
end
desc "Builds and installs the gem"
task :install => :build do
system "gem install pkg/"
end
end
Reek::Rake::Task.new do |task|
task.fail_on_error = true
end
desc "Generate the rdoc"
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.add [ "README.rdoc", "lib/**/*.rb" ]
rdoc.main = "README.rdoc"
rdoc.title = ""
end
desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new do |task|
task.pattern = "spec/lib/**/*_spec.rb"
end
namespace :spec do
desc "Run all integration specs in spec/acceptance directory"
RSpec::Core::RakeTask.new(:acceptance) do |task|
task.pattern = "spec/acceptance/**/*_spec.rb"
end
end
Jump to Line
Something went wrong with that request. Please try again.