summaryrefslogtreecommitdiff
path: root/lib/scanf.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scanf.gemspec')
-rw-r--r--lib/scanf.gemspec34
1 files changed, 21 insertions, 13 deletions
diff --git a/lib/scanf.gemspec b/lib/scanf.gemspec
index cd0c495e38..d861f78e28 100644
--- a/lib/scanf.gemspec
+++ b/lib/scanf.gemspec
@@ -1,17 +1,25 @@
+# coding: utf-8
# frozen_string_literal: true
-Gem::Specification.new do |s|
- s.name = "scanf"
- s.version = '0.0.1'
- s.date = '2017-02-14'
- s.summary = "scanf is an implementation of the C function scanf(3)."
- s.description = "scanf is an implementation of the C function scanf(3)."
- s.require_path = %w{lib}
- s.files = %w{scanf.rb}
- s.required_ruby_version = ">= 2.5.0dev"
+Gem::Specification.new do |spec|
+ spec.name = "scanf"
+ spec.version = "0.0.1"
+ spec.date = '2017-02-14'
+ spec.authors = ["David Alan Black"]
+ spec.email = ['dblack@superlink.net']
- s.authors = ["David Alan Black"]
- s.email = ['dblack@superlink.net']
- s.homepage = "https://www.ruby-lang.org"
- s.license = "BSD-2-Clause"
+ spec.summary = "scanf is an implementation of the C function scanf(3)."
+ spec.description = "scanf is an implementation of the C function scanf(3)."
+ spec.homepage = "https://github.com/ruby/scanf"
+ spec.license = "BSD-2-Clause"
+
+ spec.files = ["lib/scanf.rb"]
+ spec.bindir = "exe"
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+ spec.require_paths = ["lib"]
+ spec.required_ruby_version = ">= 2.5.0dev"
+
+ spec.add_development_dependency "bundler", "~> 1.14"
+ spec.add_development_dependency "rake", "~> 10.0"
+ spec.add_development_dependency "test-unit"
end