[DRE-commits] [itamae] 07/08: Add patch to avoid git command in .gemspec.

Scott Leggett smlx-guest at moszumanska.debian.org
Thu Dec 1 10:34:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

smlx-guest pushed a commit to branch master
in repository itamae.

commit dde8d1b38ee61ac6782ea2cbf0f2d4bd1421bc57
Author: Scott Leggett <scott at sl.id.au>
Date:   Thu Dec 1 00:59:50 2016 +1100

    Add patch to avoid git command in .gemspec.
---
 ...01-Replace-use-of-git-command-in-.gemspec.patch | 34 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 35 insertions(+)

diff --git a/debian/patches/0001-Replace-use-of-git-command-in-.gemspec.patch b/debian/patches/0001-Replace-use-of-git-command-in-.gemspec.patch
new file mode 100644
index 0000000..84efdd0
--- /dev/null
+++ b/debian/patches/0001-Replace-use-of-git-command-in-.gemspec.patch
@@ -0,0 +1,34 @@
+From: Scott Leggett <scott at sl.id.au>
+Date: Thu, 1 Dec 2016 00:59:24 +1100
+Subject: Replace use of git command in .gemspec.
+
+---
+ itamae.gemspec | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/itamae.gemspec b/itamae.gemspec
+index 2286a11..e4e5e40 100644
+--- a/itamae.gemspec
++++ b/itamae.gemspec
+@@ -2,6 +2,10 @@
+ lib = File.expand_path('../lib', __FILE__)
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+ require 'itamae/version'
++require 'rake'
++
++include_glob = %w(**/* **/.* .*/**/* .*/**/.* .* *)
++exclude_glob = %w(../**/* ../**/.* ./**/* ./**/.* .git/**/*)
+ 
+ Gem::Specification.new do |spec|
+   spec.name          = "itamae"
+@@ -12,7 +16,9 @@ Gem::Specification.new do |spec|
+   spec.homepage      = "https://github.com/itamae-kitchen/itamae"
+   spec.license       = "MIT"
+ 
+-  spec.files         = `git ls-files`.split($/)
++  spec.files         =
++    ::Rake::FileList[*include_glob].exclude(*exclude_glob)
++    .reject { |path| File.directory? path }
+   spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
+   spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
+   spec.require_paths = ["lib"]
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d005875
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Replace-use-of-git-command-in-.gemspec.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/itamae.git



More information about the Pkg-ruby-extras-commits mailing list