Ruby tdb - 0.2.0 - optional thread-safety
[ruby-tdb.git] / tdb.gemspec
blob9aa953a6802703b1c21560232cf49d0cfecd4691
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|
7   s.name = %q{tdb}
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|
17     x.chomp!
18     if File.directory?(x)
19       manifest.grep(%r{\A#{x}/})
20     elsif File.file?(x)
21       x
22     else
23       nil
24     end
25   end.flatten.compact
27   s.files = manifest
28   s.rdoc_options = [ "-t", summary ]
29   s.require_paths = %w(lib ext)
30   s.rubyforge_project = %q{tdb}
31   s.summary = summary
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
36 end