[DRE-commits] [ruby-bert] 01/01: Imported Debian patch 1.1.6-1

Balint Reczey rbalint at moszumanska.debian.org
Wed Dec 10 18:20:47 UTC 2014


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

rbalint pushed a commit to branch master
in repository ruby-bert.

commit 7bcaf2c5a696ff0b279565ece89565c77cb26511
Author: Balint Reczey <balint at balintreczey.hu>
Date:   Thu Dec 4 19:11:56 2014 +0100

    Imported Debian patch 1.1.6-1
---
 debian/changelog                          |  5 ++++
 debian/compat                             |  1 +
 debian/control                            | 21 ++++++++++++++
 debian/copyright                          | 32 +++++++++++++++++++++
 debian/patches/01_fix_test_includes.patch | 47 +++++++++++++++++++++++++++++++
 debian/patches/02_fix_tests.patch         | 20 +++++++++++++
 debian/patches/series                     |  2 ++
 debian/ruby-bert.docs                     |  1 +
 debian/ruby-test-files.yaml               |  5 ++++
 debian/rules                              | 15 ++++++++++
 debian/source/format                      |  1 +
 debian/tests/control                      |  1 +
 debian/tests/encodedecode                 | 10 +++++++
 debian/watch                              |  2 ++
 14 files changed, 163 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7030d34
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-bert (1.1.6-1) unstable; urgency=medium
+
+  * Initial release (Closes: #772061)
+
+ -- Balint Reczey <balint at balintreczey.hu>  Thu, 04 Dec 2014 19:11:56 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..6432d40
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: ruby-bert
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders:  Balint Reczey <balint at balintreczey.hu>
+Build-Depends: debhelper (>= 7.0.50~), gem2deb, ruby-shoulda, ruby-test-unit
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-bert.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-bert.git;a=summary
+Homepage: http://github.com/mojombo/bert
+Testsuite: autopkgtest
+XS-Ruby-Versions: all
+
+Package: ruby-bert
+Architecture: any
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
+Description: BERT serializiation for Ruby
+ A BERT (Binary ERlang Term) serialization library for Ruby. It can
+ encode Ruby objects into BERT format and decode BERT binaries into
+ Ruby objects.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..dadbf21
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: bert
+Source: https://github.com/mojombo/bert
+
+Files: *
+Copyright: 2009 Tom Preston-Werner
+License: Expat
+
+Files: debian/*
+Copyright: 2014 Balint Reczey <balint at balintreczey.hu>
+License: Expat
+Comment: the Debian packaging is licensed under the same terms as the original package.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/debian/patches/01_fix_test_includes.patch b/debian/patches/01_fix_test_includes.patch
new file mode 100644
index 0000000..960dcfd
--- /dev/null
+++ b/debian/patches/01_fix_test_includes.patch
@@ -0,0 +1,47 @@
+From: Balint Reczey <balint at balintreczey.hu>
+Subject: Fix includes in test files
+Forwarded: not-needed
+
+diff --git a/test/bert_test.rb b/test/bert_test.rb
+index 10d3f46..7a32dc0 100644
+--- a/test/bert_test.rb
++++ b/test/bert_test.rb
+@@ -1,4 +1,4 @@
+-require 'test_helper'
++require File.dirname(__FILE__) + '/test_helper'
+ 
+ class BertTest < Test::Unit::TestCase
+   context "BERT" do
+diff --git a/test/decoder_test.rb b/test/decoder_test.rb
+index 3bbfee6..16d84cf 100644
+--- a/test/decoder_test.rb
++++ b/test/decoder_test.rb
+@@ -1,4 +1,4 @@
+-require 'test_helper'
++require File.dirname(__FILE__) + '/test_helper'
+ 
+ class DecoderTest < Test::Unit::TestCase
+   BERT_NIL = [131,104,2,100,0,4,98,101,114,116,100,0,3,110,105,108].pack('c*')
+diff --git a/test/encoder_test.rb b/test/encoder_test.rb
+index 75290a7..04a9c76 100644
+--- a/test/encoder_test.rb
++++ b/test/encoder_test.rb
+@@ -1,6 +1,6 @@
+ # encoding: utf-8
+ 
+-require 'test_helper'
++require File.dirname(__FILE__) + '/test_helper'
+ 
+ class EncoderTest < Test::Unit::TestCase
+   context "BERT Encoder complex type converter" do
+diff --git a/test/test_helper.rb b/test/test_helper.rb
+index d053e9a..153c659 100644
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -1,5 +1,6 @@
+ require 'rubygems'
+ require 'test/unit'
++require 'minitest/autorun'
+ require 'shoulda'
+ 
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
diff --git a/debian/patches/02_fix_tests.patch b/debian/patches/02_fix_tests.patch
new file mode 100644
index 0000000..b91e96c
--- /dev/null
+++ b/debian/patches/02_fix_tests.patch
@@ -0,0 +1,20 @@
+--- a/test/bert_test.rb
++++ b/test/bert_test.rb
+@@ -5,7 +5,7 @@
+     setup do
+       time = Time.at(1254976067)
+       @ruby = t[:user, {:name => 'TPW'}, [/cat/i, 9.9], time, nil, true, false, :true, :false]
+-      @bert = "\203h\td\000\004userh\003d\000\004bertd\000\004dictl\000\000\000\001h\002d\000\004namem\000\000\000\003TPWjl\000\000\000\002h\004d\000\004bertd\000\005regexm\000\000\000\003catl\000\000\000\001d\000\bcaselessjc9.900000000000000e+00\000\000\000\000\000\000\000\000\000\000jh\005d\000\004bertd\000\004timeb\000\000\004\346b\000\016\344\303a\000h\002d\000\004bertd\000\003nilh\002d\000\004bertd\000\004trueh\002d\000\004bertd\000\005falsed\000\004trued\000\005false"
++      @bert = "\203h\td\000\004userh\003d\000\004bertd\000\004dictl\000\000\000\001h\002d\000\004namem\000\000\000\003TPWjl\000\000\000\002h\004d\000\004bertd\000\005regexm\000\000\000\003catl\000\000\000\001d\000\bcaselessjc9.900000000000000e+00\000\000\000\000\000\000\000\000\000\000jh\005d\000\004bertd\000\004timeb\000\000\004\346b\000\016\344\303a\000h\002d\000\004bertd\000\003nilh\002d\000\004bertd\000\004trueh\002d\000\004bertd\000\005falsed\000\004trued\000\005false".force_encodi [...]
+       @ebin = "<<131,104,9,100,0,4,117,115,101,114,104,3,100,0,4,98,101,114,116,100,0,4,100,105,99,116,108,0,0,0,1,104,2,100,0,4,110,97,109,101,109,0,0,0,3,84,80,87,106,108,0,0,0,2,104,4,100,0,4,98,101,114,116,100,0,5,114,101,103,101,120,109,0,0,0,3,99,97,116,108,0,0,0,1,100,0,8,99,97,115,101,108,101,115,115,106,99,57,46,57,48,48,48,48,48,48,48,48,48,48,48,48,48,48,101,43,48,48,0,0,0,0,0,0,0,0,0,0,106,104,5,100,0,4,98,101,114,116,100,0,4,116,105,109,101,98,0,0,4,230,98,0,14,228,195,97,0 [...]
+     end
+ 
+@@ -42,7 +42,7 @@
+       dd << {}
+       dd << {:a => 1}
+       dd << {:a => 1, :b => 2}
+-      dd << Time.now
++      dd << Time.now.round(6)
+       dd << /^c(a)t$/i
+ 
+       dd << 178
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bd3193a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01_fix_test_includes.patch
+02_fix_tests.patch
diff --git a/debian/ruby-bert.docs b/debian/ruby-bert.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-bert.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
new file mode 100644
index 0000000..069534e
--- /dev/null
+++ b/debian/ruby-test-files.yaml
@@ -0,0 +1,5 @@
+---
+- test/bert_test.rb
+- test/decoder_test.rb
+- test/encoder_test.rb
+- test/test_helper.rb
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d81794d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+#
+# Uncomment to ignore all test failures (but the tests will run anyway)
+#export DH_RUBY_IGNORE_TESTS=all
+#
+# Uncomment to ignore some test failures (but the tests will run anyway).
+# Valid values:
+#export DH_RUBY_IGNORE_TESTS=ruby2.1 require-rubygems
+#
+# If you need to specify the .gemspec (eg there is more than one)
+#export DH_RUBY_GEMSPEC=gem.gemspec
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..388a9c3
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Tests: encodedecode
diff --git a/debian/tests/encodedecode b/debian/tests/encodedecode
new file mode 100755
index 0000000..60fc327
--- /dev/null
+++ b/debian/tests/encodedecode
@@ -0,0 +1,10 @@
+#!/usr/bin/ruby
+
+require 'bert'
+d = Time.now.round(6)
+if d == BERT.decode(BERT.encode(d))
+  exit 0
+else
+  p "Failed test: d = BERT.decode(BERT.encode(d)"
+  exit 1
+end
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..383d471
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/bert .*/bert-(.*).tar.gz

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



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