# encoding: utf-8 require 'rake' require 'rspec/core/rake_task' require 'rake/testtask' require 'bundler' Bundler::GemHelper.install_tasks $:.unshift File.expand_path('../lib', __FILE__) begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'rake' require 'jeweler' Jeweler::Tasks.new do |gem| # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options gem.name = "simple-layout" gem.homepage = "http://github.com/bighostkim/simple-layout" gem.license = "MIT" gem.summary = %Q{ Make layout ready for your application, so you don't have to } gem.description = %Q{This gotta be longer than summary. :). I will fill it out } gem.email = "bighostkim@gmail.com" gem.authors = ["Allen Kim"] # dependencies defined in Gemfile end Jeweler::RubygemsDotOrgTasks.new require 'rdoc/task' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "simple-layout #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end desc 'Test generators' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/*_test.rb' t.verbose = true end