quiet some mismatched indentation warnings
[unicorn.git] / unicorn.gemspec
blobe43c60e7213b737c9e4346c076c3d2b738030c4d
1 # -*- encoding: binary -*-
2 manifest = File.exist?('.manifest') ?
3   IO.readlines('.manifest').map!(&:chomp!) : `git ls-files`.split("\n")
5 # don't bother with tests that fork, not worth our time to get working
6 # with `gem check -t` ... (of course we care for them when testing with
7 # GNU make when they can run in parallel)
8 test_files = manifest.grep(%r{\Atest/unit/test_.*\.rb\z}).map do |f|
9   File.readlines(f).grep(/\bfork\b/).empty? ? f : nil
10 end.compact
12 Gem::Specification.new do |s|
13   s.name = %q{unicorn}
14   s.version = (ENV['VERSION'] || '5.4.0').dup
15   s.authors = ['unicorn hackers']
16   s.summary = 'Rack HTTP server for fast clients and Unix'
17   s.description = File.read('README').split("\n\n")[1]
18   s.email = %q{unicorn-public@bogomips.org}
19   s.executables = %w(unicorn unicorn_rails)
20   s.extensions = %w(ext/unicorn_http/extconf.rb)
21   s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f|
22     File.exist?(f)
23   end
24   s.files = manifest
25   s.homepage = 'https://bogomips.org/unicorn/'
26   s.test_files = test_files
28   # technically we need ">= 1.9.3", too, but avoid the array here since
29   # old rubygems versions (1.8.23.2 at least) do not support multiple
30   # version requirements here.
31   s.required_ruby_version = '< 3.0'
33   # We do not have a hard dependency on rack, it's possible to load
34   # things which respond to #call.  HTTP status lines in responses
35   # won't have descriptive text, only the numeric status.
36   s.add_development_dependency(%q<rack>)
38   s.add_dependency(%q<kgio>, '~> 2.6')
39   s.add_dependency(%q<raindrops>, '~> 0.7')
41   s.add_development_dependency('test-unit', '~> 3.0')
43   # Note: To avoid ambiguity, we intentionally avoid the SPDX-compatible
44   # 'Ruby' here since Ruby 1.9.3 switched to BSD-2-Clause, but we
45   # inherited our license from Mongrel when Ruby was at 1.8.
46   # We cannot automatically switch licenses when Ruby changes.
47   s.licenses = ['GPL-2.0+', 'Ruby-1.8']
48 end