doc: update Static_Files documentation page
[rainbows.git] / rainbows.gemspec
blob0b78a18fb595f38d1021a25691df84d6198f172b
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{rainbows}
15   s.version = ENV["VERSION"]
17   s.authors = ["Rainbows! hackers"]
18   s.date = Time.now.utc.strftime('%Y-%m-%d')
19   s.description = File.read("README").split(/\n\n/)[1]
20   s.email = %q{rainbows-talk@rubyforge.org}
21   s.executables = %w(rainbows)
23   s.extra_rdoc_files = File.readlines('.document').map! do |x|
24     x.chomp!
25     if File.directory?(x)
26       manifest.grep(%r{\A#{x}/})
27     elsif File.file?(x)
28       x
29     else
30       nil
31     end
32   end.flatten.compact
34   s.files = manifest
35   s.homepage = %q{http://rainbows.rubyforge.org/}
36   s.summary = %q{Unicorn for sleepy apps and slow clients}
37   s.rdoc_options = [ "-t", "Rainbows! #{s.summary}" ]
38   s.require_paths = %w(lib)
39   s.rubyforge_project = %q{rainbows}
41   s.test_files = test_files
43   # we want a newer Rack for a valid HeaderHash#each
44   s.add_dependency(%q<rack>, ['~> 1.1'])
46   # we need Unicorn for the HTTP parser and process management
47   # Unicorn 0.991.0 handles config.ru when started outside of
48   # the prespecified working_directory
49   s.add_dependency(%q<unicorn>, [">= 1.1.1", "< 2.0.0"])
50   s.add_development_dependency(%q<isolate>, "~> 2.1.0")
52   # optional runtime dependencies depending on configuration
53   # see t/test_isolate.rb for the exact versions we've tested with
54   #
55   # Revactor >= 0.1.5 includes UNIX domain socket support
56   # s.add_dependency(%q<revactor>, [">= 0.1.5"])
57   #
58   # Revactor depends on Rev, too, 0.3.0 got the ability to attach IOs
59   # s.add_dependency(%q<rev>, [">= 0.3.2"])
60   #
61   # Rev depends on IOBuffer, which got faster in 0.1.3
62   # s.add_dependency(%q<iobuffer>, [">= 0.1.3"])
63   #
64   # We use the new EM::attach/watch API in 0.12.10
65   # s.add_dependency(%q<eventmachine>, ["~> 0.12.10"])
66   #
67   # NeverBlock, currently only available on http://gems.github.com/
68   # s.add_dependency(%q<espace-neverblock>, ["~> 0.1.6.1"])
70   # s.licenses = %w(GPLv2 Ruby) # accessor not compatible with older RubyGems
71 end