unicorn 1.1.7 - major fixes to minor components
[unicorn.git] / unicorn.gemspec
blob973ca09d51e4316bd4954ec9a2a59329e47860bb
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/unit/test_.*\.rb\z}).map do |f|
10   File.readlines(f).grep(/\bfork\b/).empty? ? f : nil
11 end.compact
13 Gem::Specification.new do |s|
14   s.name = %q{unicorn}
15   s.version = ENV["VERSION"]
17   s.authors = ["Unicorn hackers"]
18   s.date = Time.now.utc.strftime('%Y-%m-%d')
19   s.description = File.read("README").split(/\n\n/)[1].delete('\\')
20   s.email = %q{mongrel-unicorn@rubyforge.org}
21   s.executables = %w(unicorn unicorn_rails)
22   s.extensions = %w(ext/unicorn_http/extconf.rb)
24   s.extra_rdoc_files = File.readlines('.document').map! do |x|
25     x.chomp!
26     if File.directory?(x)
27       manifest.grep(%r{\A#{x}/})
28     elsif File.file?(x)
29       x
30     else
31       nil
32     end
33   end.flatten.compact
35   s.files = manifest
36   s.homepage = %q{http://unicorn.bogomips.org/}
38   summary = %q{Rack HTTP server for fast clients and Unix}
39   s.rdoc_options = [ "-t", "Unicorn: #{summary}" ]
40   s.require_paths = %w(lib ext)
41   s.rubyforge_project = %q{mongrel}
42   s.summary = summary
44   s.test_files = test_files
46   # for people that are absolutely stuck on Rails 2.3.2 and can't
47   # up/downgrade to any other version, the Rack dependency may be
48   # commented out.  Nevertheless, upgrading to Rails 2.3.4 or later is
49   # *strongly* recommended for security reasons.
50   s.add_dependency(%q<rack>)
52   s.add_development_dependency('isolate', '~> 3.0.0')
54   # s.licenses = %w(GPLv2 Ruby) # licenses= method is not in older RubyGems
55 end