mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import gemspec and test file changes from ruby/gdbm.
* gdbm.gemspec: Update basic configuraiton for standalone gdbm gem. * test/gdbm/test_gdbm.rb: In standalone environment, It needs to explicit loading of EnvUtil module for test suite. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3c7785451e
commit
0adeb1c8ab
2 changed files with 24 additions and 14 deletions
|
@ -1,17 +1,26 @@
|
||||||
Gem::Specification.new do |s|
|
# coding: utf-8
|
||||||
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."
|
|
||||||
|
|
||||||
s.require_path = %w{lib}
|
Gem::Specification.new do |spec|
|
||||||
s.files = %w{depend extconf.rb gdbm.c}
|
spec.name = "gdbm"
|
||||||
s.extensions = %w{extconf.rb}
|
spec.version = "0.0.1"
|
||||||
s.required_ruby_version = ">= 2.5.0dev"
|
spec.date = '2017-02-24'
|
||||||
|
spec.authors = ["Yukihiro Matsumoto"]
|
||||||
|
spec.email = ["matz@ruby-lang.org"]
|
||||||
|
|
||||||
s.authors = ["Yukihiro Matsumoto"]
|
spec.summary = "Ruby extension for GNU dbm."
|
||||||
s.email = ["matz@ruby-lang.org"]
|
spec.description = "Ruby extension for GNU dbm."
|
||||||
s.homepage = "https://www.ruby-lang.org"
|
spec.homepage = "https://github.com/ruby/gdbm"
|
||||||
s.license = "BSD-2-Clause"
|
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
|
end
|
||||||
|
|
|
@ -6,6 +6,7 @@ end
|
||||||
|
|
||||||
if defined? GDBM
|
if defined? GDBM
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
require 'envutil' unless defined?(EnvUtil)
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue