From 58938c980f38a4581b4a0e8a780fffe7ac95bc93 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 26 Nov 2010 02:27:17 +0000 Subject: initial --- tdb.gemspec | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tdb.gemspec (limited to 'tdb.gemspec') diff --git a/tdb.gemspec b/tdb.gemspec new file mode 100644 index 0000000..aa10d0a --- /dev/null +++ b/tdb.gemspec @@ -0,0 +1,36 @@ +ENV["VERSION"] or abort "VERSION= must be specified" +manifest = File.readlines('.manifest').map! { |x| x.chomp! } +summary = File.readlines("README")[0].gsub(/\A=\s+\S+[^\w]+/, '').strip +description = File.read("README").split(/\n\n/)[1].strip + +Gem::Specification.new do |s| + s.name = %q{tdb} + s.version = ENV["VERSION"] + + s.homepage = 'http://bogomips.org/ruby-tdb/' + s.authors = ["Ruby tdb hackers"] + s.date = Time.now.utc.strftime('%Y-%m-%d') + s.description = description + s.email = %q{ruby.tdb@librelist.org} + + s.extra_rdoc_files = File.readlines('.document').map! do |x| + x.chomp! + if File.directory?(x) + manifest.grep(%r{\A#{x}/}) + elsif File.file?(x) + x + else + nil + end + end.flatten.compact + + s.files = manifest + s.rdoc_options = [ "-t", summary ] + s.require_paths = %w(lib ext) + s.rubyforge_project = %q{tdb} + s.summary = summary + s.test_files = Dir['test/test_*.rb'] + s.extensions = %w(ext/tdb/extconf.rb) + + # s.license = %w(LGPL) # disabled for compatibility with older RubyGems +end -- cgit v1.2.3-24-ge0c7