GNUmakefile: no news yet...
[metropolis.git] / metropolis.gemspec
blobe06ef046427cf9e686a70fafa15d03cc3758912f
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}
19   s.executables = []
21   s.extra_rdoc_files = File.readlines('.document').map! do |x|
22     x.chomp!
23     if File.directory?(x)
24       manifest.grep(%r{\A#{x}/})
25     elsif File.file?(x)
26       x
27     else
28       nil
29     end
30   end.flatten.compact
32   s.files = manifest
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}
39   s.summary = summary
41   s.test_files = test_files
42   s.add_dependency(%q<rack>)
44   # s.licenses = %w(AGPL) # licenses= method is not in older RubyGems
45 end