-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathRakefile
64 lines (53 loc) · 1.81 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
52
53
54
55
56
57
58
59
60
61
62
63
64
require "spec/rake/spectask"
require "rake/rdoctask"
task :default => :spec
desc "Run all of the specs"
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "\"spec/spec.opts\""]
t.fail_on_error = false
end
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "moqueue"
s.summary = "Mocktacular Companion to AMQP Library. Happy TATFTing!"
s.email = "[email protected]"
s.homepage = "http://github.com/danielsdeleo/moqueue"
s.description = "Mocktacular Companion to AMQP Library. Happy TATFTing!"
s.authors = ["Daniel DeLeo"]
s.files = FileList["[A-Za-z]*", "{lib,spec}/**/*"]
s.rubyforge_project = "moqueue"
s.add_dependency("amqp")
end
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
# These are new tasks
begin
require 'jeweler/rubyforge_tasks'
require 'rake/contrib/sshpublisher'
Jeweler::RubyforgeTasks.new
namespace :rubyforge do
desc "Release gem and RDoc documentation to RubyForge"
task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
namespace :release do
desc "Publish RDoc to RubyForge."
task :docs => [:rdoc] do
config = YAML.load(
File.read(File.expand_path('~/.rubyforge/user-config.yml'))
)
host = "#{config['username']}@rubyforge.org"
remote_dir = "/var/www/gforge-projects/moqueue/"
local_dir = 'rdoc'
Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
end
end
end
rescue LoadError
puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
end
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
rd.rdoc_dir = "rdoc"
end