-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
61 lines (52 loc) · 2.06 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
49
50
51
52
53
54
55
56
57
58
59
60
61
require "rake/testtask"
require "rake/rdoctask"
require "rubygems"
require "rake/gempackagetask"
desc "Default task: run all tests"
task :default => :test
Rake::TestTask.new do |test|
test.libs << "test"
test.pattern = "test/**/*_test.rb"
test.warning = true
test.verbose = true
end
Rake::RDocTask.new do |rdoc|
rdoc.main = "README.rdoc"
rdoc.rdoc_dir = "doc/html"
rdoc.title = "Oklahoma Mixer Documentation"
rdoc.rdoc_files.include *%w[ README.rdoc INSTALL.rdoc
TODO.rdoc CHANGELOG.rdoc
AUTHORS.rdoc MIT-LICENSE
lib/ ]
end
spec = Gem::Specification.new do |spec|
spec.name = "oklahoma_mixer"
spec.version = File.read(
File.join(File.dirname(__FILE__), *%w[lib oklahoma_mixer.rb])
)[/^\s*VERSION\s*=\s*(['"])(\d\.\d\.\d)\1/, 2]
spec.platform = Gem::Platform::RUBY
spec.summary = "An full featured and robust FFI interface to Tokyo Cabinet."
spec.test_files = Dir.glob("test/*_test.rb")
spec.files = Dir.glob("{lib,test}/**/*.rb") +
Dir.glob("*.rdoc") +
%w[MIT-LICENSE Rakefile]
spec.has_rdoc = true
spec.extra_rdoc_files = %w[ README.rdoc INSTALL.rdoc
TODO.rdoc CHANGELOG.rdoc
AUTHORS.rdoc MIT-LICENSE ]
spec.rdoc_options << "--title" << "Oklahoma Mixer Documentation" <<
"--main" << "README.rdoc"
spec.add_dependency("ffi", ">= 0.5.4")
spec.add_development_dependency("rake")
spec.author = "James Edward Gray II"
spec.email = "[email protected]"
spec.homepage = "http://github.com/JEG2/oklahoma_mixer"
spec.description = <<END_DESC
Oklahoma Mixer is a intended to be an all inclusive wrapper for Tokyo Cabinet.
It provides Rubyish interfaces for all database types and supports the full
range of features provided.
END_DESC
end
Rake::GemPackageTask.new(spec) do |pkg|
# do nothing: the spec is all we need
end