kcar 0.1.2 - one bugfix for one liners
[kcar.git] / kcar.gemspec
blobbb224e23d94482de568e184b8f0a0600cfcf1b92
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{kcar}
8   s.version = ENV["VERSION"]
10   s.homepage = 'http://bogomips.org/kcar/'
11   s.authors = ["kcar hackers"]
12   s.date = Time.now.utc.strftime('%Y-%m-%d')
13   s.description = description
14   s.email = %q{kcar@librelist.com}
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 = [
29     "-a",
30     "-t",
31     summary
32   ]
33   s.require_paths = %w(lib ext)
34   s.rubyforge_project = %q{rainbows}
35   s.summary = summary
36   s.test_files = Dir['test/test_*.rb']
37   s.extensions = %w(ext/kcar/extconf.rb)
39   # s.license = %w(GPL Ruby) # disabled for compatibility with older RubyGems
40 end