-
Notifications
You must be signed in to change notification settings - Fork 2
/
rakefile.rb
49 lines (41 loc) · 1.35 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
49
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
task :default => :test
desc "Run the tests"
Rake::TestTask::new do |t|
t.test_files = FileList['test/test*.rb']
t.verbose = true
end
desc "Generate the documentation"
Rake::RDocTask::new do |rdoc|
rdoc.rdoc_dir = 'ym4r-doc/'
rdoc.title = "YM4R Documentation"
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
spec = Gem::Specification::new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'ym4r'
s.version = "0.6.0"
s.summary = "Helping the use of Google Maps and Yahoo! Maps API's from Ruby and Rails"
s.description = <<EOF
EOF
s.author = 'Guilhem Vellut'
s.email = '[email protected]'
s.homepage = "http://thepochisuperstarmegashow.com/projects/#ym4r"
s.requirements << 'none'
s.require_path = 'lib'
s.files = FileList["lib/**/*.rb", "lib/**/*.yml","tools/**/*.rb","test/**/*.rb", "README","MIT-LICENSE","rakefile.rb"]
s.test_files = FileList['test/test*.rb']
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
s.rdoc_options.concat ['--main', 'README']
end
desc "Package the library as a gem"
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end