Refresh drop-git-ls-files.patch
Cédric Boutillier
4 years ago
0 | 0 | Description: Drop git ls-files in .gemspec |
1 | 1 | Replace the git ls-files with Dir.glob as build is not in git directory |
2 | 2 | Author: Sophie Brun <sophie@freexian.com> |
3 | Last-Update: 2017-09-07 | |
3 | Last-Update: 2018-08-20 | |
4 | 4 | --- |
5 | 5 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
6 | 6 | --- a/gitlab.gemspec |
7 | 7 | +++ b/gitlab.gemspec |
8 | @@ -12,7 +12,7 @@ Gem::Specification.new do |gem| | |
9 | gem.summary = %q{A Ruby wrapper and CLI for the GitLab API} | |
10 | gem.homepage = "https://github.com/narkoz/gitlab" | |
8 | @@ -11,7 +11,7 @@ | |
9 | gem.summary = 'A Ruby wrapper and CLI for the GitLab API' | |
10 | gem.homepage = 'https://github.com/narkoz/gitlab' | |
11 | 11 | |
12 | - gem.files = `git ls-files`.split($/) | |
13 | + gem.files = Dir.glob('**/*') | |
14 | gem.bindir = "exe" | |
15 | gem.executables = gem.files.grep(%r{^exe/}) { |f| File.basename(f) } | |
16 | gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) | |
12 | - gem.files = `git ls-files`.split($/). | |
13 | + gem.files = Dir.glob('**/*'). | |
14 | reject { |f| f[/^spec/] } - | |
15 | %w[Dockerfile docker-compose.yml docker.env .travis.yml .rubocop.yml .dockerignore] | |
16 | gem.bindir = 'exe' |