DIR = File.dirname(__FILE__) LIB = File.join(DIR, *%w[lib highline.rb]) VERSION = open(LIB) { |lib| lib.each { |line| if v = line[/^\s*VERSION\s*=\s*(['"])(\d+\.\d+\.\d+)\1/, 2] break v end } } SPEC = Gem::Specification.new do |spec| spec.name = "highline" spec.version = VERSION spec.platform = Gem::Platform::RUBY spec.summary = "HighLine is a high-level command-line IO library." spec.files = `git ls-files`.split("\n") spec.test_files = `git ls-files -- test/*.rb`.split("\n") spec.has_rdoc = true spec.extra_rdoc_files = %w{README INSTALL TODO CHANGELOG LICENSE} spec.rdoc_options << '--title' << 'HighLine Documentation' << '--main' << 'README' spec.require_path = 'lib' spec.author = "James Edward Gray II" spec.email = "james@graysoftinc.com" spec.rubyforge_project = "highline" spec.homepage = "http://highline.rubyforge.org" spec.description = <