# encoding: utf-8 require 'rubygems' require 'bundler' 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-search" gem.homepage = "http://github.com/bighostkim/simple-search" gem.license = "MIT" gem.summary = %Q{ActiveRecord searching/paging/sorting/grouping from url} gem.description = %Q{ Translates url commands for searching, paging, sorting, groupion against ActiveRecord and its associations. Provides view helpers including links for order and urls for search, group, and page. } 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-search #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end require 'rspec/core/rake_task' desc 'Default: run specs.' task :default => :spec desc "Run specs" RSpec::Core::RakeTask.new do |t| t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. # Put spec opts in a file named .rspec in root end