ruby-changes:46356
From: hsbt <ko1@a...>
Date: Tue, 25 Apr 2017 16:56:02 +0900 (JST)
Subject: [ruby-changes:46356] hsbt:r58470 (trunk): Import gemspec and test file changes from ruby/gdbm.
hsbt 2017-04-25 16:55:56 +0900 (Tue, 25 Apr 2017) New Revision: 58470 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58470 Log: 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. Modified files: trunk/ext/gdbm/gdbm.gemspec trunk/test/gdbm/test_gdbm.rb Index: ext/gdbm/gdbm.gemspec =================================================================== --- ext/gdbm/gdbm.gemspec (revision 58469) +++ ext/gdbm/gdbm.gemspec (revision 58470) @@ -1,17 +1,26 @@ https://github.com/ruby/ruby/blob/trunk/ext/gdbm/gdbm.gemspec#L1 -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@r..."] - s.authors = ["Yukihiro Matsumoto"] - s.email = ["matz@r..."] - 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 Index: test/gdbm/test_gdbm.rb =================================================================== --- test/gdbm/test_gdbm.rb (revision 58469) +++ test/gdbm/test_gdbm.rb (revision 58470) @@ -6,6 +6,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/gdbm/test_gdbm.rb#L6 if defined? GDBM require 'test/unit' + require 'envutil' unless defined?(EnvUtil) require 'tmpdir' require 'fileutils' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/