[DRE-commits] [gem2deb] 01/01: Gem2Deb::Metadata. Parse timestamp as Date insted of Time

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Aug 27 15:39:05 UTC 2016


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

terceiro pushed a commit to branch master
in repository gem2deb.

commit 316cf9368d0fc87cb278ebe243e68792f45a2008
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Aug 27 12:38:40 2016 -0300

    Gem2Deb::Metadata. Parse timestamp as Date insted of Time
    
    Fixes test suite on jessie (Closes: #835588)
---
 debian/changelog        | 7 +++++++
 lib/gem2deb/metadata.rb | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 5ab9116..7a7c7ba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gem2deb (0.33) UNRELEASED; urgency=medium
+
+  * Gem2Deb::Metadata. Parse timestamp as Date insted of Time. Fixes test
+    suite on jessie (Closes: #835588)
+
+ -- Antonio Terceiro <terceiro at debian.org>  Sat, 27 Aug 2016 12:37:40 -0300
+
 gem2deb (0.32) unstable; urgency=medium
 
   * --gem-install: append new directories to the whitelist from the
diff --git a/lib/gem2deb/metadata.rb b/lib/gem2deb/metadata.rb
index c7fbd24..328b638 100644
--- a/lib/gem2deb/metadata.rb
+++ b/lib/gem2deb/metadata.rb
@@ -150,7 +150,7 @@ module Gem2Deb
 
     def set_gemspec_date
       if @gemspec && File.exist?('debian/changelog')
-        @gemspec.date = Time.parse(`dpkg-parsechangelog -SDate`.strip)
+        @gemspec.date = Date.parse(`dpkg-parsechangelog -SDate`.strip)
       end
     end
 

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



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