about summary refs log tree commit homepage
path: root/tdb.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'tdb.gemspec')
-rw-r--r--tdb.gemspec25
1 files changed, 8 insertions, 17 deletions
diff --git a/tdb.gemspec b/tdb.gemspec
index 9aa953a..69f963b 100644
--- a/tdb.gemspec
+++ b/tdb.gemspec
@@ -1,7 +1,8 @@
 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
+require 'wrongdoc'
+extend Wrongdoc::Gemspec
+name, summary, title = readme_metadata
 
 Gem::Specification.new do |s|
   s.name = %q{tdb}
@@ -10,27 +11,17 @@ Gem::Specification.new do |s|
   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.description = readme_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.extra_rdoc_files = extra_rdoc_files(manifest)
   s.files = manifest
-  s.rdoc_options = [ "-t", summary ]
+  s.rdoc_options = rdoc_options
   s.require_paths = %w(lib ext)
-  s.rubyforge_project = %q{tdb}
+  s.rubyforge_project = %q{qrp}
   s.summary = summary
   s.test_files = Dir['test/test_*.rb']
   s.extensions = %w(ext/tdb/extconf.rb)
+  s.add_development_dependency('wrongdoc', '~> 1.3')
 
   # s.license = %w(LGPL) # disabled for compatibility with older RubyGems
 end