-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (30 loc) · 938 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- ruby -*-
begin
require 'hoe'
rescue LoadError
require 'rubygems'
require 'hoe'
end
require 'rspec/core/rake_task'
$LOAD_PATH.unshift 'lib'
require 'impostor'
Hoe.plugin :bundler, :git
Hoe.spec('impostor') do |p|
p.version = Impostor::VERSION
p.rubyforge_name = 'impostor'
p.author = 'Mike Mondragon'
p.email = 'mikemondragon@gmail.com'
p.summary = 'imPOSTor posts messages to non-RESTful forums and blogs'
p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
p.urls = [ p.paragraphs_of('README.txt', 0).first.split(/\n/).map{ |line| line.strip }[2] ]
p.readme_file = "README.txt"
p.history_file = "History.txt"
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.extra_deps << ['nokogiri', '~> 1.4']
p.extra_deps << ['mechanize', '~> 2.5.1']
p.clean_globs << 'coverage'
p.testlib = :rspec
end
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
# vim: syntax=Ruby