README/gemspec: a better description, hopefully
[unicorn.git] / unicorn.gemspec
blobb5af54dcb737a24cf6def7cec71752372fe9238c
1 # -*- encoding: binary -*-
3 ENV["VERSION"] or abort "VERSION= must be specified"
4 manifest = File.readlines('.manifest').map! { |x| x.chomp! }
6 Gem::Specification.new do |s|
7   s.name = %q{unicorn}
8   s.version = ENV["VERSION"]
10   s.authors = ["Eric Wong"]
11   s.date = Time.now.utc.strftime('%Y-%m-%d')
12   s.description = File.read("README").split(/\n\n/)[1]
13   s.email = %q{mongrel-unicorn@rubyforge.org}
14   s.executables = %w(unicorn unicorn_rails)
15   s.extensions = %w(ext/unicorn_http/extconf.rb)
17   s.extra_rdoc_files = File.readlines('.document').map! do |x|
18     x.chomp!
19     if File.directory?(x)
20       manifest.grep(%r{\A#{x}/})
21     elsif File.file?(x)
22       x
23     else
24       nil
25     end
26   end.flatten.compact
28   s.files = manifest
29   s.homepage = %q{http://unicorn.bogomips.org/}
31   s.rdoc_options = [ "-Na", "-t",
32                      "Unicorn: Rack HTTP server for Unix and fast clients" ]
33   s.require_paths = %w(lib ext)
34   s.rubyforge_project = %q{mongrel}
35   s.summary = %q{Rack HTTP server for Unix and fast clients}
36   s.test_files = manifest.grep(%r{\Atest/unit/test_*\.rb\z})
38   s.add_dependency(%q<rack>)
39   s.licenses = %w(GPLv2 Ruby)
40 end