forked from dustin/ruby-freebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
48 lines (43 loc) · 1.44 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
require 'rake'
require 'rubygems'
Gem::manage_gems
require 'rake/gempackagetask'
require 'rake/testtask'
require 'rake/rdoctask'
spec = Gem::Specification.new do |s|
s.name = "freebase"
s.version = "0.0.1"
s.author = "Chris Eppstein"
s.email = "[email protected]"
s.homepage = "http://rubyforge.org/projects/freebaseapi/"
s.rubyforge_project = "freebaseapi"
s.platform = Gem::Platform::RUBY
s.summary = "Ruby wrapper for the Freebase.com API that makes interacting with freebase.com in your Ruby on Rails application as easy as using Active Record. Freebase is a free, collaborative semantic database."
s.files = FileList["{bin,lib}/**/*"].to_a
s.require_path = "lib"
s.autorequire = "freebase"
s.test_files = FileList["{test}/**/*test.rb"].to_a
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
s.add_dependency("activesupport", ">= 2.0.2")
s.add_dependency("json", ">= 1.1.2")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the freebase plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the freebase plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Freebase'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end