forked from jicksta/superators
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
28 lines (23 loc) · 802 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
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require './lib/superators.rb'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |opts|
opts.rspec_opts = %w'-c'
end
desc "Generate a HTML report of the RSpec specs"
RSpec::Core::RakeTask.new "report" do |opts|
opts.rspec_opts = %w'--format html:report.html'
end
Hoe.spec 'superators' do
self.version = Superators::VERSION
self.rubyforge_name = 'superators'
self.author = 'Jay Phillips'
self.email = 'jay -at- codemecca.com'
self.summary = 'Superators add new sexy operators to your Ruby objects.'
self.description = paragraphs_of('README.txt', 2..4).join("\n\n")
self.url = paragraphs_of('README.txt', 0).first.split(/\n/)[-1].strip
self.changes = paragraphs_of('History.txt', 0..1).join("\n\n")
end
# vim: syntax=Ruby