| 1 |
# encoding: utf-8 |
| 2 |
|
| 3 |
require 'rubygems' |
| 4 |
require 'bundler' |
| 5 |
begin |
| 6 |
Bundler.setup(:default, :development) |
| 7 |
rescue Bundler::BundlerError => e |
| 8 |
$stderr.puts e.message |
| 9 |
$stderr.puts "Run `bundle install` to install missing gems" |
| 10 |
exit e.status_code |
| 11 |
end |
| 12 |
require 'rake' |
| 13 |
|
| 14 |
require 'jeweler' |
| 15 |
Jeweler::Tasks.new do |gem| |
| 16 |
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options |
| 17 |
gem.name = "cat" |
| 18 |
gem.homepage = "http://github.com/arches/cat" |
| 19 |
gem.license = "MIT" |
| 20 |
gem.summary = %Q{Create objects in a sandbox} |
| 21 |
gem.description = %Q{Create objects in a sandbox} |
| 22 |
gem.email = "[email protected]" |
| 23 |
gem.authors = ["Chris Doyle"] |
| 24 |
# dependencies defined in Gemfile |
| 25 |
end |
| 26 |
Jeweler::RubygemsDotOrgTasks.new |
| 27 |
|
| 28 |
require 'rspec/core/rake_task' |
| 29 |
|
| 30 |
desc "Run specs" |
| 31 |
RSpec::Core::RakeTask.new do |t| |
| 32 |
end |
| 33 |
|
| 34 |
|
| 35 |
task :default => :spec |
| 36 |
|
| 37 |
require 'rdoc/task' |
| 38 |
Rake::RDocTask.new do |rdoc| |
| 39 |
version = File.exist?('VERSION') ? File.read('VERSION') : "" |
| 40 |
|
| 41 |
rdoc.rdoc_dir = 'rdoc' |
| 42 |
rdoc.title = "cat #{version}" |
| 43 |
rdoc.rdoc_files.include('README*') |
| 44 |
rdoc.rdoc_files.include('lib/**/*.rb') |
| 45 |
end |