public
Description: A simple DSL for creating Jabber agents
Homepage: http://codehallow.com/uppercut
Clone URL: git://github.com/tyler/uppercut.git
uppercut / Rakefile
100644 51 lines (40 sloc) 1.236 kb
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 "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 = "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 :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