Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5975fd7a1c
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (31 sloc) 1.159 kB
require 'rubygems'
require 'rubygems/package_task'
require 'find'
spec = Gem::Specification.new do |s|
s.name = "leveldb-ruby"
s.version = "0.14"
s.date = Time.now
s.email = "wmorgan-leveldb-ruby-gemspec@masanjin.net"
s.authors = ["William Morgan"]
s.summary = "a Ruby binding to LevelDB"
s.homepage = "http://github.com/wmorgan/leveldb-ruby"
s.files = %w(README LICENSE ext/leveldb/extconf.rb ext/leveldb/platform.rb lib/leveldb.rb ext/leveldb/leveldb.cc leveldb/Makefile leveldb/build_detect_platform)
Find.find("leveldb") { |x| s.files += [x] if x =~ /\.(cc|h)$/}
s.extensions = %w(ext/leveldb/extconf.rb)
s.executables = []
s.extra_rdoc_files = %w(README ext/leveldb/leveldb.cc)
s.rdoc_options = %w(-c utf8 --main README --title LevelDB)
s.description = "LevelDB-Ruby is a Ruby binding to LevelDB."
end
task :rdoc do |t|
sh "rm -rf doc; rdoc #{spec.rdoc_options.join(' ')} #{spec.extra_rdoc_files.join(' ')} lib/leveldb.rb"
end
Gem::PackageTask.new spec do
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
# vim: syntax=ruby
Jump to Line
Something went wrong with that request. Please try again.