Skip to content
This repository
tree: d1ac83bc2a
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 41 lines (34 sloc) 1.232 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
require 'rubygems'
require 'rubygems/package_task'
require 'find'

spec = Gem::Specification.new do |s|
 s.name = "leveldb-ruby"
 s.version = "0.15"
 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 << 'ext' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end

task :build do |t|
  sh "cd ext/leveldb && ruby extconf.rb && make"
end

# vim: syntax=ruby
Something went wrong with that request. Please try again.