skeevis / dcgov

... a ruby gem for the not-yet-complete API published by the DC OCTO

This URL has Read+Write access

dcgov / Rakefile
100644 52 lines (45 sloc) 1.333 kb
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
#
# To change this template, choose Tools | Templates
# and open the template in the editor.
 
 
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/testtask'
require 'spec/rake/spectask'
 
spec = Gem::Specification.new do |s|
  s.name = 'DCGOV'
  s.version = '0.0.1'
  s.has_rdoc = true
  s.extra_rdoc_files = ['README', 'LICENSE']
  s.summary = 'A basic interface to the citywide API published by the District of Columbia'
  s.description = s.summary
  s.author = 'Zvi Band'
  s.email = 'zvi@skeevisarts.com'
  s.homepage = 'http://skeevisarts.com'
  # s.executables = ['your_executable_here']
  s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
  s.require_path = "lib"
  s.bindir = "bin"
  s.add_dependency("json")
end
 
Rake::GemPackageTask.new(spec) do |p|
  p.gem_spec = spec
  p.need_tar = true
  p.need_zip = true
end
 
Rake::RDocTask.new do |rdoc|
  files =['README', 'LICENSE', 'lib/**/*.rb']
  rdoc.rdoc_files.add(files)
  rdoc.main = "README" # page to start on
  rdoc.title = "DCGOV Docs"
  rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
  rdoc.options << '--line-numbers'
end
 
Rake::TestTask.new do |t|
  t.test_files = FileList['test/**/*.rb']
end
 
Spec::Rake::SpecTask.new do |t|
  t.spec_files = FileList['spec/**/*.rb']
end