From 1e47ddc03a3f78fc5a74eb8ba7cfa2c3d2ce5399 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 17 Jan 2011 08:14:10 +0000 Subject: switch site to wrongdoc No more JavaScript! Down with JavaScript! \o/ --- tdb.gemspec | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'tdb.gemspec') 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 -- cgit v1.2.3-24-ge0c7