ruby-changes:65814
From: Olle <ko1@a...>
Date: Thu, 8 Apr 2021 12:37:53 +0900 (JST)
Subject: [ruby-changes:65814] ec355813b0 (master): [ruby/optparse] gemspec: Explicit files list [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=ec355813b0 From ec355813b08d0371024f91eab33195d8c7891805 Mon Sep 17 00:00:00 2001 From: Olle Jonsson <olle.jonsson@g...> Date: Thu, 8 Apr 2021 05:33:56 +0200 Subject: [ruby/optparse] gemspec: Explicit files list [ci skip] This avoid shelling out, and includes a narrower list of files. https://github.com/ruby/optparse/commit/f3ca83caff Co-authored-by: Nobuyoshi Nakada <nobu@r...> --- lib/optparse/optparse.gemspec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/optparse/optparse.gemspec b/lib/optparse/optparse.gemspec index b8ec8cf..ae65966 100644 --- a/lib/optparse/optparse.gemspec +++ b/lib/optparse/optparse.gemspec @@ -22,11 +22,7 @@ Gem::Specification.new do |spec| https://github.com/ruby/ruby/blob/trunk/lib/optparse/optparse.gemspec#L22 spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = spec.homepage - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| - f.match(%r{\A(?:(?:test|spec|features)/|Gemfile|\.(?:editor|git))}) - } - end + spec.files = Dir["{doc,lib,misc}/**/*"] + %w[README.md ChangeLog COPYING] spec.bindir = "exe" spec.executables = [] spec.require_paths = ["lib"] -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/