[DRE-commits] [ruby-recaptcha] 04/04: New v0.4.0 has now a valid gemspec and a debian/watch file.

David Martínez ender at moszumanska.debian.org
Tue Jul 28 08:00:23 UTC 2015


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

ender pushed a commit to branch master
in repository ruby-recaptcha.

commit dbb961ab4fe8c51052f29f195f09aa98105276f7
Author: David Martínez Moreno <ender at debian.org>
Date:   Tue Jul 28 00:54:33 2015 -0700

    New v0.4.0 has now a valid gemspec and a debian/watch file.
---
 debian/changelog                         | 11 +++++++++--
 debian/control                           |  2 +-
 debian/patches/gemspec_without_git.patch | 21 +++++++++++++++++++++
 debian/patches/series                    |  1 +
 debian/watch                             |  5 +++++
 5 files changed, 37 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 65a5e82..cb5c5bc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,15 @@
-ruby-recaptcha (0.3.6-3) UNRELEASED; urgency=medium
+ruby-recaptcha (0.4.0-1) UNRELEASED; urgency=medium
 
+  * New upstream release:
+    - Support for ReCAPTCHA v2.
   * Fix rails dependency to be >> 4.1, due to #754981.
+  * debian/patches: Added gemspec_without_git to deal with the infamous `git
+    ls-files` usual command, invalid in our chroots, and thus ship a valid
+    gemspec (LP: #1400564).
+  * debian/watch: Added. 
+  * debian/control: Bumped to 3.9.6 (no changes).
 
- -- David Martínez Moreno <ender at debian.org>  Mon, 21 Jul 2014 22:46:06 +0200
+ -- David Martínez Moreno <ender at debian.org>  Mon, 27 Jul 2015 23:29:18 -0700
 
 ruby-recaptcha (0.3.6-2.1) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index 3dc24a5..1388eb7 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: David Martínez Moreno <ender at debian.org>
 Build-Depends: debhelper (>= 9),
                gem2deb (>= 0.2.6~)
-Standards-Version: 3.9.5
+Standards-Version: 3.9.6
 Homepage: https://github.com/ambethia/recaptcha/
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-recaptcha.git
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-recaptcha.git
diff --git a/debian/patches/gemspec_without_git.patch b/debian/patches/gemspec_without_git.patch
new file mode 100644
index 0000000..8569473
--- /dev/null
+++ b/debian/patches/gemspec_without_git.patch
@@ -0,0 +1,21 @@
+Description: Use a gemspec that doesn't depend on git.
+ The .tar.gz obviously doesn't have a .git and in the pdebuild chroots
+ we also don't have the git binary.
+Author: David Martínez Moreno <ender at debian.org>
+Bug-Ubuntu: https://launchpad.net/bugs/1400564
+Forwarded: no
+Last-Update: 2015-07-28
+
+--- ruby-recaptcha-0.4.0.orig/recaptcha.gemspec
++++ ruby-recaptcha-0.4.0/recaptcha.gemspec
+@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
+ 
+   s.rubyforge_project = "recaptcha"
+ 
+-  s.files         = `git ls-files`.split("\n")
+-  s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
++  s.files         = Dir.glob("lib/**/*")
++  s.test_files    = Dir.glob("{test,spec,features}/**/*")
+   s.require_paths = ["lib"]
+ 
+   s.add_development_dependency "mocha"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..599ab92
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gemspec_without_git.patch
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ecc5235
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/ruby-recaptcha-$1\.tar\.gz/ \
+  https://github.com/ambethia/recaptcha/releases .*/v?(\d\S*)\.tar\.gz

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



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