summaryrefslogtreecommitdiff
path: root/ext/gdbm/gdbm.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gdbm/gdbm.gemspec')
-rw-r--r--ext/gdbm/gdbm.gemspec37
1 files changed, 23 insertions, 14 deletions
diff --git a/ext/gdbm/gdbm.gemspec b/ext/gdbm/gdbm.gemspec
index ace6793..fe4a36c 100644
--- a/ext/gdbm/gdbm.gemspec
+++ b/ext/gdbm/gdbm.gemspec
@@ -1,17 +1,26 @@
-Gem::Specification.new do |s|
- s.name = "gdbm"
- s.version = '0.0.1'
- s.date = '2017-02-24'
- s.summary = "Ruby extension for GNU dbm."
- s.description = "Ruby extension for GNU dbm."
+# coding: utf-8
- s.require_path = %w{lib}
- s.files = %w{depend extconf.rb gdbm.c}
- s.extensions = %w{extconf.rb}
- s.required_ruby_version = ">= 2.5.0dev"
+Gem::Specification.new do |spec|
+ spec.name = "gdbm"
+ spec.version = "0.0.1"
+ spec.date = '2017-02-24'
+ spec.authors = ["Yukihiro Matsumoto"]
+ spec.email = ["matz@ruby-lang.org"]
- s.authors = ["Yukihiro Matsumoto"]
- s.email = ["matz@ruby-lang.org"]
- s.homepage = "https://www.ruby-lang.org"
- s.license = "BSD-2-Clause"
+ spec.summary = "Ruby extension for GNU dbm."
+ spec.description = "Ruby extension for GNU dbm."
+ spec.homepage = "https://github.com/ruby/gdbm"
+ spec.license = "BSD-2-Clause"
+
+ spec.files = ["ext/gdbm/extconf.rb", "ext/gdbm/gdbm.c"]
+ spec.bindir = "exe"
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+ spec.require_paths = ["lib"]
+ spec.extensions = ["ext/gdbm/extconf.rb"]
+ 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 "rake-compiler"
+ spec.add_development_dependency "test-unit"
end