tests: fix to run under MRI 1.8.6
[raindrops.git] / raindrops.gemspec
blob29c8cbbbb3233b2ec6f60dd3e1d157188619cbcf
1 # -*- encoding: binary -*-
3 ENV["VERSION"] or abort "VERSION= must be specified"
4 manifest = File.readlines('.manifest').map! { |x| x.chomp! }
5 test_files = manifest.grep(%r{\Atest/test_.*\.rb\z})
7 Gem::Specification.new do |s|
8   s.name = %q{raindrops}
9   s.version = ENV["VERSION"]
11   s.authors = ["raindrops hackers"]
12   s.date = Time.now.utc.strftime('%Y-%m-%d')
13   s.description = File.read("README").split(/\n\n/)[1]
14   s.email = %q{raindrops@librelist.com}
15   s.extensions = %w(ext/raindrops/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://raindrops.bogomips.org/}
30   s.summary = %q{real-time stats for preforking Rack servers}
31   s.rdoc_options = [ "-Na", "-t", "raindrops - #{s.summary}" ]
32   s.require_paths = %w(lib)
33   s.rubyforge_project = %q{rainbows}
35   s.test_files = test_files
37   # s.licenses = %w(LGPLv3) # accessor not compatible with older RubyGems
38 end