forked from innku/metropoli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
42 lines (37 loc) · 1.29 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
# encoding: UTF-8
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
desc 'Run Metropoli unit tests.'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
task :default => :test
desc 'Generate documentation for Metropoli'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "Metropoli #{version}"
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "metropoli"
gem.summary = %Q{City database engine for rails 3}
gem.description = %Q{With this engine you can generate a flexible and unobstrusive city database engine that you can relate to your rails 3 models}
gem.email = "adrian@innku.com"
gem.homepage = "http://github.com/adriancuadros/metropoli"
gem.authors = ["Adrian Cuadros"]
gem.add_development_dependency "rspec", "=1.3.0"
gem.add_dependency('sinatra', '>=1.0')
gem.add_dependency("json", "~> 1.4.6")
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end