forked from expectedbehavior/rexchange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRAKEFILE
75 lines (60 loc) · 1.99 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
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env ruby
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
require 'pscp'
PACKAGE_VERSION = '0.3.4'
PACKAGE_FILES = FileList[
'README',
'CHANGELOG',
'RAKEFILE',
'MIT-LICENSE',
'lib/**/*.rb',
'test/*.rb'
].to_a
PROJECT = 'rexchange'
ENV['RUBYFORGE_USER'] = "[email protected]"
ENV['RUBYFORGE_PROJECT'] = "/var/www/gforge-projects/#{PROJECT}"
task :default => [:rdoc]
desc 'Generate Documentation'
rd = Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = "RExchange -- A simple wrapper around Microsoft Exchange Server's WebDAV API"
rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README'
rdoc.rdoc_files.include(PACKAGE_FILES)
end
gem_spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = PROJECT
s.summary = "A simple wrapper around Microsoft Exchange Server's WebDAV API"
s.description = "Connect, browse, and iterate through folders and messages on an Exchange Server"
s.version = PACKAGE_VERSION
s.authors = 'Sam Smoot', 'Scott Bauer'
s.email = '[email protected]; [email protected]'
s.rubyforge_project = PROJECT
s.homepage = 'http://substantiality.net'
s.files = PACKAGE_FILES
s.require_path = 'lib'
s.requirements << 'none'
s.autorequire = 'rexchange'
s.has_rdoc = true
s.rdoc_options << '--line-numbers' << '--inline-source' << '--main' << 'README'
s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
end
Rake::GemPackageTask.new(gem_spec) do |p|
p.gem_spec = gem_spec
p.need_tar = true
p.need_zip = true
end
desc "Publish RDOC to RubyForge"
task :rubyforge => [:rdoc, :gem] do
Rake::SshDirPublisher.new(ENV['RUBYFORGE_USER'], ENV['RUBYFORGE_PROJECT'], 'doc').upload
end
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/*.rb']
t.verbose = true
end