File: drop-git-ls-files.patch

package info (click to toggle)
ruby-gitlab 4.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,752 kB
  • sloc: ruby: 8,203; makefile: 6; sh: 4
file content (17 lines) | stat: -rw-r--r-- 748 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Drop git ls-files in .gemspec
 Replace the git ls-files with Dir.glob as build is not in git directory
Author: Sophie Brun <sophie@freexian.com>
Last-Update: 2018-08-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/gitlab.gemspec
+++ b/gitlab.gemspec
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
   gem.summary       = 'A Ruby wrapper and CLI for the GitLab API'
   gem.homepage      = 'https://github.com/narkoz/gitlab'
 
-  gem.files         = `git ls-files`.split($/)
+  gem.files         = Dir.glob('**/*')
                                     .grep_v(/^spec/) -
                       %w[Dockerfile docker-compose.yml docker.env .travis.yml
                          .rubocop.yml .dockerignore]