FAQ: reorder bit on Rack 1.1.x and Rails 2.3.x
[unicorn.git] / unicorn.gemspec
blob47d567077858171e6402ac64a1fea3c7389c5223
1 # -*- encoding: binary -*-
2 ENV["VERSION"] or abort "VERSION= must be specified"
3 manifest = File.readlines('.manifest').map! { |x| x.chomp! }
4 require 'olddoc'
5 extend Olddoc::Gemspec
6 name, summary, title = readme_metadata
8 # don't bother with tests that fork, not worth our time to get working
9 # with `gem check -t` ... (of course we care for them when testing with
10 # GNU make when they can run in parallel)
11 test_files = manifest.grep(%r{\Atest/unit/test_.*\.rb\z}).map do |f|
12   File.readlines(f).grep(/\bfork\b/).empty? ? f : nil
13 end.compact
15 Gem::Specification.new do |s|
16   s.name = %q{unicorn}
17   s.version = ENV["VERSION"].dup
18   s.authors = ["#{name} hackers"]
19   s.summary = summary
20   s.description = readme_description
21   s.email = %q{unicorn-public@bogomips.org}
22   s.executables = %w(unicorn unicorn_rails)
23   s.extensions = %w(ext/unicorn_http/extconf.rb)
24   s.extra_rdoc_files = extra_rdoc_files(manifest)
25   s.files = manifest
26   s.homepage = Olddoc.config['rdoc_url']
27   s.test_files = test_files
29   # for people that are absolutely stuck on Rails 2.3.2 and can't
30   # up/downgrade to any other version, the Rack dependency may be
31   # commented out.  Nevertheless, upgrading to Rails 2.3.4 or later is
32   # *strongly* recommended for security reasons.
33   s.add_dependency(%q<rack>)
34   s.add_dependency(%q<kgio>, '~> 2.6')
35   s.add_dependency(%q<raindrops>, '~> 0.7')
37   s.add_development_dependency('test-unit', '~> 3.0')
38   s.add_development_dependency('olddoc', '~> 1.0')
40   s.licenses = ["GPLv2+", "Ruby 1.8"]
41 end