diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-11-26 02:27:17 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-01 09:45:32 +0000 |
commit | 58938c980f38a4581b4a0e8a780fffe7ac95bc93 (patch) | |
tree | ece822520cf8cbabe23f4559361afaf8346aa729 /tdb.gemspec | |
download | ruby-tdb-58938c980f38a4581b4a0e8a780fffe7ac95bc93.tar.gz |
Diffstat (limited to 'tdb.gemspec')
-rw-r--r-- | tdb.gemspec | 36 |
1 files changed, 36 insertions, 0 deletions
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 |