1 ENV["VERSION"] or abort "VERSION= must be specified"
2 manifest = File.readlines('.manifest').map! { |x| x.chomp! }
3 summary = File.readlines("README")[0].gsub(/\A=\s+\S+[^\w]+/, '').strip
4 description = File.read("README").split(/\n\n/)[1].strip
6 Gem::Specification.new do |s|
8 s.version = ENV["VERSION"].dup
10 s.homepage = 'http://bogomips.org/ruby-tdb/'
11 s.authors = ["Ruby tdb hackers"]
12 s.date = Time.now.utc.strftime('%Y-%m-%d')
13 s.description = description
14 s.email = %q{ruby.tdb@librelist.org}
16 s.extra_rdoc_files = File.readlines('.document').map! do |x|
19 manifest.grep(%r{\A#{x}/})
28 s.rdoc_options = [ "-t", summary ]
29 s.require_paths = %w(lib ext)
30 s.rubyforge_project = %q{tdb}
32 s.test_files = Dir['test/test_*.rb']
33 s.extensions = %w(ext/tdb/extconf.rb)
35 # s.license = %w(LGPL) # disabled for compatibility with older RubyGems