[DRE-commits] [kwalify] 01/03: upgraded gemspec
Marc Dequènes
duck at moszumanska.debian.org
Sun Jun 26 04:42:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
duck pushed a commit to branch master
in repository kwalify.
commit 14b4b817465c2a4eea6a528e63aa72395b217745
Author: Marc Dequènes (Duck) <Duck at DuckCorp.org>
Date: Sun Jun 26 06:24:20 2016 +0200
upgraded gemspec
---
debian/changelog | 6 +++++
debian/patches/gemspec_upgrade.patch | 48 ++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 55 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index ab2d975..c4ad69e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+kwalify (0.7.2-4) UNRELEASED; urgency=medium
+
+ * Upgraded ancient gemspec, causing FTBFS (Closes: #828165)
+
+ -- Marc Dequènes (Duck) <Duck at DuckCorp.org> Sun, 26 Jun 2016 06:23:53 +0200
+
kwalify (0.7.2-3) unstable; urgency=medium
* Added patches: (Closes: #794140)
diff --git a/debian/patches/gemspec_upgrade.patch b/debian/patches/gemspec_upgrade.patch
new file mode 100644
index 0000000..1e2aee9
--- /dev/null
+++ b/debian/patches/gemspec_upgrade.patch
@@ -0,0 +1,48 @@
+Index: kwalify/kwalify.gemspec
+===================================================================
+--- kwalify.orig/kwalify.gemspec
++++ kwalify/kwalify.gemspec
+@@ -1,14 +1,6 @@
+-#!/usr/bin/ruby
++# -*- encoding: utf-8 -*-
+
+-###
+-### $Rev$
+-### $Release: 0.7.2 $
+-### copyright(c) 2005-2010 kuwata-lab all rights reserved.
+-###
+-
+-require 'rubygems'
+-
+-spec = Gem::Specification.new do |s|
++Gem::Specification.new do |s|
+ ## package information
+ s.name = "kwalify"
+ s.author = "makoto kuwata"
+@@ -19,7 +11,7 @@ spec = Gem::Specification.new do |s|
+ s.description = <<-'END'
+ Kwalify is a parser, schema validator, and data binding tool for YAML and JSON.
+ END
+-
++
+ ## files
+ files = []
+ files.concat Dir.glob('lib/**/*')
+@@ -37,17 +29,3 @@ spec = Gem::Specification.new do |s|
+ s.bindir = "bin"
+ s.test_file = 'test/test.rb'
+ end
+-
+-# Quick fix for Ruby 1.8.3 / YAML bug (thanks to Ross Bamford)
+-if (RUBY_VERSION == '1.8.3')
+- def spec.to_yaml
+- out = super
+- out = '--- ' + out unless out =~ /^---/
+- out
+- end
+-end
+-
+-if $0 == __FILE__
+- Gem::manage_gems
+- Gem::Builder.new(spec).build
+-end
diff --git a/debian/patches/series b/debian/patches/series
index d3a889b..f94eada 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ test_fix_tmpdir.patch
test_config_class_conflict.patch
text_fix_data.patch
test_set_encoding.patch
+gemspec_upgrade.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/kwalify.git
More information about the Pkg-ruby-extras-commits
mailing list