File: remove_git_in_gemspec.patch

package info (click to toggle)
ruby-rspec-rails 8.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,804 kB
  • sloc: ruby: 10,881; sh: 198; makefile: 6
file content (21 lines) | stat: -rw-r--r-- 732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Debian Ruby Extras Maintainers
 <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Date: Fri, 7 Feb 2020 18:19:24 +0100
Subject: remove_git_in_gemspec

Debian package source tree is not a git repo.
---
 rspec-rails.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/rspec-rails.gemspec
+++ b/rspec-rails.gemspec
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
     'source_code_uri'   => 'https://github.com/rspec/rspec-rails',
   }
 
-  s.files            = `git ls-files -- lib/*`.split("\n")
+  s.files            = Dir.glob("lib/**/*")
   s.files           += %w[README.md LICENSE.md Changelog.md Capybara.md .yardopts .document]
   s.test_files       = []
   s.rdoc_options     = ["--charset=UTF-8"]