forked from takeru/tiny_ds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
45 lines (38 loc) · 1.18 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
require 'rubygems'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rubygems/specification'
require 'date'
require File.dirname(__FILE__) + '/lib/tiny_ds/version'
# set up pretty rdoc if possible
begin
gem 'rdoc'
require 'sdoc'
ENV['RDOCOPT'] = '-T lightblue'
rescue Exception
end
spec = Gem::Specification.new do |s|
s.name = "tiny_ds"
s.version = TinyDS::VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
s.description = "Tiny datastore library for Google App Engine with JRuby"
s.summary = "Supports CRUD like a ActiveRecord or DataMapepr " +
"but with parent/child and entity-group-transaction"
s.author = "Takeru Sasaki"
s.email = "[email protected]"
s.homepage = "http://github.com/takeru/tiny_ds"
s.require_path = 'lib'
s.files = %w(LICENSE README.rdoc Rakefile) +
Dir.glob("spec/**/*.rb") + Dir.glob("lib/**/*.rb")
s.add_dependency('appengine-apis')
end
task :default => :gem
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end