tests: fix broken monster trywrite test
[kgio.git] / kgio.gemspec
blob285f06520a25cfe66cf4fb046debba4c9ba5a0e4
1 ENV["VERSION"] or abort "VERSION= must be specified"
2 manifest = File.readlines('.manifest').map! { |x| x.chomp! }
3 summary = File.readlines("README")[0].gsub(/\A=\s+\S+[^\w]+/, '').strip
4 description = File.read("README").split(/\n\n/)[1].strip
6 Gem::Specification.new do |s|
7   s.name = %q{kgio}
8   s.version = ENV["VERSION"]
10   s.homepage = 'http://unicorn.bogomips.org/kgio/'
11   s.authors = ["kgio hackers"]
12   s.date = Time.now.utc.strftime('%Y-%m-%d')
13   s.description = description
14   s.email = %q{mongrel-unicorn@rubyforge.org}
16   s.extra_rdoc_files = File.readlines('.document').map! do |x|
17     x.chomp!
18     if File.directory?(x)
19       manifest.grep(%r{\A#{x}/})
20     elsif File.file?(x)
21       x
22     else
23       nil
24     end
25   end.flatten.compact
27   s.files = manifest
28   s.rdoc_options = [ "-t", summary ]
29   s.require_paths = %w(lib ext)
30   s.rubyforge_project = %q{rainbows}
31   s.summary = summary
32   s.test_files = Dir['test/test_*.rb']
33   s.extensions = %w(ext/kgio/extconf.rb)
35   # s.license = %w(GPL Ruby) # disabled for compatibility with older RubyGems
36 end