impressionist/Rakefile

24 lines
516 B
Ruby
Raw Normal View History

#!/usr/bin/env rake
2012-03-12 01:38:05 +00:00
require 'bundler/setup'
require 'rspec/core/rake_task'
Bundler::GemHelper.install_tasks
2011-02-04 04:13:41 +00:00
2012-03-12 01:38:05 +00:00
RSpec::Core::RakeTask.new do |task|
task.rspec_opts = "-r ./test_app/spec/spec_helper.rb"
2012-03-12 01:38:05 +00:00
task.pattern = "./test_app/spec/**/*_spec.rb"
2011-02-04 04:13:41 +00:00
end
2012-03-12 01:38:05 +00:00
task :test => :spec
task :default => :spec
2011-02-04 04:13:41 +00:00
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