[DRE-commits] [ruby-combustion] 04/08: Remove 'git ls-files' command from gemspec

Lucas Moura lucasmoura-guest at moszumanska.debian.org
Sat Mar 5 15:35:04 UTC 2016


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

lucasmoura-guest pushed a commit to branch master
in repository ruby-combustion.

commit cc5a1e5b38464a67942c807f54850d347184f3ef
Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128 at gmail.com>
Date:   Fri Mar 4 18:03:04 2016 -0300

    Remove 'git ls-files' command from gemspec
---
 debian/changelog                             |  1 +
 debian/patches/remove_git_from_gemspec.patch | 27 +++++++++++++++++++++++++++
 debian/patches/series                        |  1 +
 3 files changed, 29 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 51e0e16..2accef8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ruby-combustion (0.5.4-1) UNRELEASED; urgency=medium
   * Team upload.
   * New upstream release.
   * Add package tests.
+  * Remove 'git ls-files' command from gemspec.
 
  -- Lucas Albuquerque Medeiros de Moura <lucas.moura128 at gmail.com>  Fri, 04 Mar 2016 17:50:27 -0300
 
diff --git a/debian/patches/remove_git_from_gemspec.patch b/debian/patches/remove_git_from_gemspec.patch
new file mode 100644
index 0000000..8dd86b2
--- /dev/null
+++ b/debian/patches/remove_git_from_gemspec.patch
@@ -0,0 +1,27 @@
+Description: Remove git ls-files calls from gemspec
+ Since when building the package there is no .git dir, the variable
+ that use git ls-files commands will always be empty. Therefore, 
+ the Dir command was used instead.
+
+Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128 at gmail.com>
+Last-updated: 2016-03-04
+Forwarded: not-needed
+Bug: not-needed
+
+Index: ruby-combustion/combustion.gemspec
+===================================================================
+--- ruby-combustion.orig/combustion.gemspec	2016-03-04 17:49:18.382136192 -0300
++++ ruby-combustion/combustion.gemspec	2016-03-04 17:59:50.848890122 -0300
+@@ -11,9 +11,9 @@
+ 
+   s.rubyforge_project = 'combustion'
+ 
+-  s.files         = `git ls-files`.split("\n")
+-  s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
+-  s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
++  s.files         = Dir['README.md', 'lib/**/*', 'spec/**/*', 'templates/*']
++  s.test_files    = Dir['spec/**/*']
++  s.executables   = Dir['bin/*']
+   s.require_paths = ['lib']
+ 
+   s.add_runtime_dependency 'activesupport', '>= 3.0.0'
diff --git a/debian/patches/series b/debian/patches/series
index 46ef495..398f59a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+remove_git_from_gemspec.patch
 set-source-root-in-generator.patch

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



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