mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	[ruby/optparse] gemspec: Explicit files list [ci skip]
This avoid shelling out, and includes a narrower list of files.
f3ca83caff
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
			
			
This commit is contained in:
		
							parent
							
								
									a5ecce9187
								
							
						
					
					
						commit
						ec355813b0
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		|  | @ -22,11 +22,7 @@ Gem::Specification.new do |spec| | |||
|   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"] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Olle Jonsson
						Olle Jonsson