-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile.rb
48 lines (36 loc) · 1.44 KB
/
Rakefile.rb
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
require 'lib/freelancer'
require 'rake/rdoctask'
require 'rake/gempackagetask'
desc 'generate API documentation to doc/rdocs/index.html'
spec=Gem::Specification.new do |s|
s.name = 'freelancer4r'
s.version = Freelancer::VERSION
s.platform = Gem::Platform::RUBY
s.summary = 'Freelancer API for ruby'
s.description = 'Freelancer API for ruby. More informaito about freelancer api see http://developer.freelancer.com'
s.require_paths = ['lib']
s.files = ['README.rdoc', 'Rakefile.rb', 'LICENSE.txt']
s.files += ['lib/freelancer.rb'] + Dir['lib/freelancer/**/*.rb']
s.has_rdoc = true
s.rdoc_options = ['--main', 'README.rdoc', '--inline-source']
s.extra_rdoc_files = ['README.rdoc','CHANGELOG']
s.authors = ['Janos Haber']
s.email = '[email protected]'
s.homepage = 'http://github.com/b0c1/freelancer4r'
s.add_dependency(%q<json>, [">= 1.4.0"])
s.add_dependency(%q<oauth>, [">= 0.4.1"])
end
Rake::RDocTask.new do |rd|
rd.rdoc_dir = ENV['RDOC_DIR'] if ENV['RDOC_DIR']
rd.title = "Freelancer.com API for ruby documentation"
rd.main = 'README.txt'
rd.rdoc_files.include 'README.rdoc', 'CHANGELOG', "lib/freelancer.rb", "lib/freelancer/**/*\.rb"
rd.options << '--inline-source'
rd.options << '--line-numbers'
rd.options << '--all'
# rd.options << '--fileboxes'
# rd.options << '--diagram'
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end