[DRE-commits] [ruby-httparty] 06/10: New patch git-in-gemspecs.patch to remove use of git in gemspecs

Cédric Boutillier boutil at moszumanska.debian.org
Sat Nov 25 21:37:31 UTC 2017


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

boutil pushed a commit to branch master
in repository ruby-httparty.

commit 5ad87433bcf3c0ba002e2d75b9657806b84ca875
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat Nov 25 10:56:30 2017 +0100

    New patch git-in-gemspecs.patch to remove use of git in gemspecs
---
 debian/changelog                     |  1 +
 debian/patches/git-in-gemspecs.patch | 23 +++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 864b6e4..a88313c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ ruby-httparty (0.15.6-1) unstable; urgency=medium
   * Bump Standards-Version to 4.1.1 (no changes needed)
   * Bump debhelper compatibility level to 10
   * Refresh skip_failing_test.patch
+  * New patch git-in-gemspecs.patch to remove use of git in gemspecs
 
  -- Cédric Boutillier <boutil at debian.org>  Sat, 25 Nov 2017 10:41:34 +0100
 
diff --git a/debian/patches/git-in-gemspecs.patch b/debian/patches/git-in-gemspecs.patch
new file mode 100644
index 0000000..d3557e5
--- /dev/null
+++ b/debian/patches/git-in-gemspecs.patch
@@ -0,0 +1,23 @@
+Description: don't use git in gemspecs
+Origin: vendor
+Forwarded: no
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2017-11-25
+
+--- a/httparty.gemspec
++++ b/httparty.gemspec
+@@ -20,11 +20,11 @@
+   # If this line is removed, all hard partying will cease.
+   s.post_install_message = "When you HTTParty, you must party hard!"
+ 
+-  all_files = `git ls-files`.split("\n")
+-  test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
++  all_files = Dir.glob("**/*").select {|v| v !~ /^debian/}
++  test_files = all_files.select {|v| v =~ /^(test|spec|features)/}
+ 
+   s.files         = all_files - test_files
+   s.test_files    = test_files
+-  s.executables   = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
++  s.executables   = all_files.select {|v| v =~ /^bin\//}.map { |f| File.basename(f) }
+   s.require_paths = ["lib"]
+ end
diff --git a/debian/patches/series b/debian/patches/series
index bc3ea45..4a4c3f5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 skip_failing_test.patch
+git-in-gemspecs.patch

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



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