summaryrefslogtreecommitdiff
path: root/highline.gemspec
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-09-24 06:09:44 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-09-25 06:49:33 -0300
commit7063e71f864d9afbfb296495ec01b19233ff9c8c (patch)
tree6b3a33409b9d2b81330445a238a52e3b202280f8 /highline.gemspec
parent2db872c17887e3de54b364b5c87977e247980183 (diff)
downloadhighline-7063e71f864d9afbfb296495ec01b19233ff9c8c.tar.gz
Update Gemfile and gemspec to current defaults
* Remove deprecated has_rdoc option * Remove test_files option * Remove platform. Has already a default. * Update files option * Move some basic dependencies into gemspec file * Call gemspec on Gemfile so we can test gem source at console
Diffstat (limited to 'highline.gemspec')
-rw-r--r--highline.gemspec41
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