forked from tyler/uppercut
/
Rakefile
52 lines (39 loc) · 1.18 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
51
require "rake"
require "rake/clean"
require "rake/gempackagetask"
require "rake/rdoctask"
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 = "tbmcmullen@gmail.com"
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 :default => :spec
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
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec