forked from josephholsten/rets4r
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
executable file
·57 lines (51 loc) · 1.87 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
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
require 'fileutils'
include FileUtils
# impart all tasks in lib/tasks/
Dir['lib/tasks/*.rake'].each { |task| import task }
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rets4r"
gem.summary = 'A native Ruby implementation of RETS (Real Estate Transaction Standard).'
gem.authors = ['Scott Patterson', 'John Wulff', 'bgetting', "Jacob Basham"]
gem.email = ['scott.patterson@digitalaun.com', 'john@johnwulff.com', 'brian@terra-firma-design.com','jacob@paperpigeons.net']
gem.homepage = 'http://rets4r.rubyforge.org/'
gem.files = FileList["[A-Z]*", "{examples,lib,test}/**/*"]
gem.rubyforge_project = 'rets4r'
gem.extra_rdoc_files = ['CONTRIBUTORS', 'README.rdoc', 'LICENSE', 'RUBYS', 'GPL',
'CHANGELOG', 'TODO' ]
gem.rdoc_options << '--main' << 'README.rdoc'
gem.test_files = FileList['test/test_*.rb']
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << "test"
test.pattern = ["test/test_*.rb", "test/*_test.rb"]
test.verbose = true
end
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "rets4r #{version}"
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end