1 # -*- encoding: binary -*-
3 ENV["VERSION"] or abort "VERSION= must be specified"
4 manifest = File.readlines('.manifest').map! { |x| x.chomp! }
6 # don't bother with tests that fork, not worth our time to get working
7 # with `gem check -t` ... (of course we care for them when testing with
8 # GNU make when they can run in parallel)
9 test_files = manifest.grep(%r{\Atest/test_.*\.rb\z})
11 Gem::Specification.new do |s|
12 s.name = %q{metropolis}
13 s.version = ENV["VERSION"].dup
15 s.authors = ["The Sleeper"]
16 s.date = Time.now.utc.strftime('%Y-%m-%d')
17 s.description = File.read("README").split(/\n\n/)[1].delete('\\')
18 s.email = %q{metropolis@librelist.org}
21 s.extra_rdoc_files = File.readlines('.document').map! do |x|
24 manifest.grep(%r{\A#{x}/})
33 s.homepage = %q{http://metropolis.bogomips.org/}
35 summary = File.readlines("README")[0].delete('\'')
36 s.rdoc_options = [ "-t", summary ]
37 s.require_paths = %w(lib)
38 s.rubyforge_project = %q{rainbows}
41 s.test_files = test_files
42 s.add_dependency(%q<rack>)
43 s.add_dependency(%q<tokyocabinet>)
45 # s.licenses = %w(AGPL) # licenses= method is not in older RubyGems