1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Gem::Specification.new do |s|
s.name = 'text-format'
s.version = '1.0.0'
s.summary = %q{Text::Format formats fixed-width text nicely.}
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.rdoc_options = %w(--title Text::Format --main README --line-numbers)
s.extra_rdoc_files = %w(README Changelog Install)
s.test_files = %w(tests/tc_text_format.rb)
s.autorequire = %q{text/format}
s.require_paths = %w{lib}
s.files = Dir.glob("**/*").delete_if do |item|
item.include?("CVS") or item.include?(".svn") or
item == "install.rb" or item =~ /~$/ or
item =~ /gem(?:spec)?$/
end
s.author = %q{Austin Ziegler}
s.email = %q{austin@rubyforge.org}
s.rubyforge_project = %q(text-format)
s.homepage = %q{http://rubyforge.org/projects/text-format}
description = []
File.open("README") do |file|
file.each do |line|
line.chomp!
break if line.empty?
description << "#{line.gsub(/\[\d\]/, '')}"
end
end
s.description = description[2..-1].join(" ")
s.add_dependency('text-hyphen', '~> 1.0.0')
end
|