File: remove-git-in-gemspec.patch

package info (click to toggle)
ruby-invisible-captcha 1.1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 396 kB
  • sloc: ruby: 669; makefile: 6; javascript: 1
file content (26 lines) | stat: -rw-r--r-- 1,055 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
22
23
24
25
26
From: Sruthi Chandran <srud@debian.org>
Date: Thu, 10 Oct 2019 22:26:50 +0530
Subject: Remove the use of git in gemspec

Forwarded: not-needed
---
 invisible_captcha.gemspec | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/invisible_captcha.gemspec b/invisible_captcha.gemspec
index 60a1113..2da7e15 100644
--- a/invisible_captcha.gemspec
+++ b/invisible_captcha.gemspec
@@ -14,9 +14,9 @@ Gem::Specification.new do |spec|
   spec.homepage      = "https://github.com/markets/invisible_captcha"
   spec.license       = "MIT"
 
-  spec.files         = `git ls-files`.split($/)
-  spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
-  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
+  spec.files         = Dir.glob("**/*").select {|v| v !~ /^debian/}
+  spec.executables   = spec.files.select {|v| v =~ /^bin\//}.map { |f| File.basename(f) }
+  testfiles          = spec.files.select {|v| v =~ /^(test|spec|features)/}
   spec.require_paths = ["lib"]
 
   spec.add_dependency 'rails', '>= 4.2'