File: 0001-gemspec-drop-git-usage.patch

package info (click to toggle)
ruby-power-assert 2.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 232 kB
  • sloc: ruby: 1,661; makefile: 5; sh: 4
file content (21 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Antonio Terceiro <terceiro@debian.org>
Date: Sat, 19 May 2018 12:58:15 -0300
Subject: gemspec: drop git usage

---
 power_assert.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/power_assert.gemspec b/power_assert.gemspec
index ec7d4c2..9cba957 100644
--- a/power_assert.gemspec
+++ b/power_assert.gemspec
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
   s.summary     = "Power Assert for Ruby"
   s.description = "Power Assert shows each value of variables and method calls in the expression. It is useful for testing, providing which value wasn't correct when the condition is not satisfied."
 
-  s.files         = `git ls-files -z`.split("\x0").reject do |f|
+  s.files         = (Dir.glob('**/*') - Dir.glob('debian/**/*')).reject do |f|
     f.match(%r{\A(?:test|spec|features|benchmark|bin)/})
   end
   s.bindir        = 'exe'