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

42 lines (34 sloc) 1.076 kb
#!/usr/bin/env rake
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
begin
require 'rdoc/task'
rescue LoadError
require 'rdoc/rdoc'
require 'rake/rdoctask'
RDoc::Task = Rake::RDocTask
end
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'HasContent'
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include('README.md', 'CHANGELOG', 'MIT-LICENSE')
rdoc.rdoc_files.include('lib/**/*.rb')
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
desc "Run the specs with simplecov"
task :simplecov => [:simplecov_env, :spec]
task :simplecov_env do ENV['SIMPLECOV'] = '1' end
task :default => :spec
Bundler::GemHelper.install_tasks
task :release => :check_gemfile
task :check_gemfile do
if File.exists?("Gemfile.lock") && File.read("Gemfile.lock") != File.read("Gemfile.lock.development")
cp "Gemfile.lock", "Gemfile.lock.development"
raise "** Gemfile.lock.development has been updated, please commit these changes."
end
end
Jump to Line
Something went wrong with that request. Please try again.