[DRE-commits] [ruby-terminal-table] 03/03: Add a patch to remove git ls in gemspec
Sophie Brun
sbrun-guest at moszumanska.debian.org
Fri Sep 8 09:58:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbrun-guest pushed a commit to branch master
in repository ruby-terminal-table.
commit bfb39f235c6e8f64b22b7b05fffbafae211fd3a6
Author: Sophie Brun <sophie at freexian.com>
Date: Fri Sep 8 11:33:56 2017 +0200
Add a patch to remove git ls in gemspec
---
debian/patches/drop-git-ls-files.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/drop-git-ls-files.patch b/debian/patches/drop-git-ls-files.patch
new file mode 100644
index 0000000..3a02ff8
--- /dev/null
+++ b/debian/patches/drop-git-ls-files.patch
@@ -0,0 +1,18 @@
+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 at freexian.com>
+Last-Update: 2017-09-07
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/terminal-table.gemspec
++++ b/terminal-table.gemspec
+@@ -13,7 +13,8 @@ Gem::Specification.new do |spec|
+ spec.homepage = "https://github.com/tj/terminal-table"
+ spec.license = "MIT"
+
+- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
++ spec.files = Dir.glob('**/*')
++ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
+ spec.require_paths = ["lib"]
+
+ spec.add_development_dependency "bundler", "~> 1.10"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b6c9316
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+drop-git-ls-files.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-terminal-table.git
More information about the Pkg-ruby-extras-commits
mailing list