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|
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|
19 manifest.grep(%r{\A#{x}/})
33 s.require_paths = %w(lib ext)
34 s.rubyforge_project = %q{rainbows}
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