impressionist/Rakefile

32 lines
745 B
Ruby
Raw Normal View History

#!/usr/bin/env rake
2011-02-04 04:13:41 +00:00
require 'bundler'
Bundler::GemHelper.install_tasks
2011-02-04 04:13:41 +00:00
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 'rdoc/task'
2011-02-04 04:13:41 +00:00
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "impressionist #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
namespace :impressionist do
require File.dirname(__FILE__) + "/lib/impressionist/bots"
2011-11-28 02:56:44 +00:00
2011-02-04 04:13:41 +00:00
desc "output the list of bots from http://www.user-agents.org/"
2011-11-28 02:56:44 +00:00
task :bots do
2011-02-04 04:13:41 +00:00
p Impressionist::Bots.consume
end
2012-03-06 22:20:22 +00:00
end