-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRakefile
50 lines (40 loc) · 1.21 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require "rake"
require "rake/clean"
require "rake/gempackagetask"
require "rake/rdoctask"
require "spec/rake/spectask"
require "fileutils"
require File.dirname(__FILE__) + "/lib/uppercut"
include FileUtils
NAME = "uppercut"
begin
require 'rubygems'
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = NAME
s.summary = "A DSL for writing agents and notifiers for Jabber."
s.email = "[email protected]"
s.homepage = "http://github.com/tyler/uppercut"
s.description = s.summary
s.authors = ["Tyler McMullen"]
s.add_dependency 'xmpp4r'
s.files = FileList["[A-Z]*.*", "{bin,generators,lib,test,spec,examples}/**/*"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
task :doc => [:rdoc]
namespace :doc do
Rake::RDocTask.new do |rdoc|
files = ["README", "LICENSE", "CHANGELOG", "lib/**/*.rb"]
rdoc.rdoc_files.add(files)
rdoc.main = "README"
rdoc.title = "Uppercut Docs"
rdoc.rdoc_dir = "doc/rdoc"
rdoc.options << "--line-numbers" << "--inline-source"
end
end
desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/*_spec.rb']
end