File: 0002-Do-not-use-git-ls-files.patch

package info (click to toggle)
ruby-specinfra 2.84.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,340 kB
  • sloc: ruby: 9,939; makefile: 4; sh: 4
file content (21 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Do not use git ls-files in gemspec file
Author: HIGUCHI Daisuke (VDR dai) <dai@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2018-10-28

Index: ruby-specinfra/specinfra.gemspec
===================================================================
--- ruby-specinfra.orig/specinfra.gemspec
+++ ruby-specinfra/specinfra.gemspec
@@ -13,8 +13,8 @@ Gem::Specification.new do |spec|
   spec.homepage      = 'https://github.com/mizzy/specinfra'
   spec.license       = "MIT"
 
-  spec.files         = %w{LICENSE.txt README.md} + `git ls-files`.split("\n").select { |f| f =~ %r{^(?:lib/)}i }
-  spec.test_files    = %w{Gemfile specinfra.gemspec Rakefile} + `git ls-files`.split("\n").select { |f| f =~ %r{^(?:spec/)}i }
+  spec.files         = %w{LICENSE.txt README.md} + Dir.glob("lib/**/*")
+  spec.test_files    = %w{Gemfile specinfra.gemspec Rakefile} + Dir.glob("spec/**/*")
   spec.require_paths = ["lib"]
   # TODO: at some point pin to a minumum version of ruby to reduce support burden in a major version bump
   # spec.required_ruby_version  = '>= 2.3.0'