diff options
Diffstat (limited to 'highline.gemspec')
-rw-r--r-- | highline.gemspec | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/highline.gemspec b/highline.gemspec index b0d6009..69dbc60 100644 --- a/highline.gemspec +++ b/highline.gemspec @@ -4,33 +4,32 @@ lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "highline/version" -GEM_VERSION = HighLine::VERSION +Gem::Specification.new do |spec| + spec.name = "highline" + spec.version = HighLine::VERSION + spec.author = "James Edward Gray II" + spec.email = "james@graysoftinc.com" -SPEC = Gem::Specification.new do |spec| - spec.name = "highline" - spec.version = GEM_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 = "yard" - spec.extra_rdoc_files = %w[README.md TODO Changelog.md LICENSE] - - spec.require_path = "lib" - - spec.author = "James Edward Gray II" - spec.email = "james@graysoftinc.com" - spec.rubyforge_project = "highline" - spec.homepage = "https://github.com/JEG2/highline" - spec.license = "Ruby" - spec.description = <<END_DESC + spec.summary = "HighLine is a high-level command-line IO library." + spec.description = <<END_DESC A high-level IO library that provides validation, type conversion, and more for command-line interfaces. HighLine also includes a complete menu system that can crank out anything from simple list selection to complete shells with just minutes of work. END_DESC + spec.homepage = "https://github.com/JEG2/highline" + spec.license = "Ruby" + + spec.files = `git ls-files -z`.split("\x0").reject do |f| + f.match(%r{^(test|spec|features)/}) + end + spec.require_paths = ["lib"] + + spec.extra_rdoc_files = %w[README.md TODO Changelog.md LICENSE] - spec.add_development_dependency "code_statistics" spec.required_ruby_version = ">= 1.9.3" + + spec.add_development_dependency "bundler" + spec.add_development_dependency "rake" + spec.add_development_dependency "minitest" end |