[DRE-commits] [ruby-capture-output] 01/01: Release Debian package 1.0.0-1

Alexander GQ Gerasiov gq at moszumanska.debian.org
Thu Feb 19 13:13:00 UTC 2015


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

gq pushed a commit to branch master
in repository ruby-capture-output.

commit 572d3e21d0d5930b2429e7297a3040b9a83182dc
Author: Alexander GQ Gerasiov <gq at cs.msu.su>
Date:   Thu Feb 19 16:00:03 2015 +0300

    Release Debian package 1.0.0-1
    
    Signed-off-by: Alexander GQ Gerasiov <gq at cs.msu.su>
---
 debian/changelog                |  5 ++++
 debian/compat                   |  1 +
 debian/control                  | 23 ++++++++++++++++++
 debian/copyright                | 54 +++++++++++++++++++++++++++++++++++++++++
 debian/patches/fix-tests.patch  | 40 ++++++++++++++++++++++++++++++
 debian/patches/series           |  1 +
 debian/ruby-capture-output.docs |  1 +
 debian/ruby-tests.rake          |  7 ++++++
 debian/rules                    | 15 ++++++++++++
 debian/source/format            |  1 +
 debian/watch                    |  2 ++
 11 files changed, 150 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..05d3008
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-capture-output (1.0.0-1) unstable; urgency=medium
+
+  * Initial release (Closes: #778763)
+
+ -- Alexander GQ Gerasiov <gq at debian.org>  Thu, 19 Feb 2015 16:10:17 +0300
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..b871d29
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: ruby-capture-output
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Alexander GQ Gerasiov <gq at debian.org>
+Build-Depends: debhelper (>= 7.0.50~), gem2deb, ruby-rspec, rake
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-capture-output.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-capture-output.git;a=summary
+Homepage: http://github.com/jpastuszek/capture-output
+Testsuite: autopkgtest-pkg-ruby
+XS-Ruby-Versions: all
+
+Package: ruby-capture-output
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
+Description: Ruby library to grab given IO output and return it as a string
+ Provides Caputere.output, Capture.stdout and Capture.stderr methods that can be
+ used to grab output generated by current or spawned process.
+ .
+ This is useful for testing when you need to start a process and check its
+ output or when you need to check current process output.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..bf67bfa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,54 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: capture-output
+Source: https://github.com/jpastuszek/capture-output
+
+Files: *
+Copyright: 2012 Jakub Pastuszek
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Alexander GQ Gerasiov <gq at debian.org>
+License: GPL-2+ or 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.
+
+License: GPL-2+
+ This program is free software; you can redistribute it
+ and/or modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later
+ version.
+ .
+ This program is distributed in the hope that it will be
+ useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE.  See the GNU General Public License for more
+ details.
+ .
+ You should have received a copy of the GNU General Public
+ License along with this package; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA  02110-1301 USA
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/patches/fix-tests.patch b/debian/patches/fix-tests.patch
new file mode 100644
index 0000000..777abd7
--- /dev/null
+++ b/debian/patches/fix-tests.patch
@@ -0,0 +1,40 @@
+Description: Fix race in tests.
+Author: Alexander Gerasiov <gq at debian.org>
+Last-Update: 2015-02-19
+Forwarded: https://github.com/jpastuszek/capture-output/pull/1
+Index: ruby-capture-output-1.0.0/spec/capture-output_spec.rb
+===================================================================
+--- ruby-capture-output-1.0.0.orig/spec/capture-output_spec.rb	2015-02-19 02:02:10.000000000 +0300
++++ ruby-capture-output-1.0.0/spec/capture-output_spec.rb	2015-02-19 02:27:48.107669177 +0300
+@@ -3,14 +3,16 @@
+ describe Capture do
+   it "#stdout should capture all STDOUT IO content" do
+ 		Capture.stdout do
+-			Process.spawn('echo "hello world"')
++			pid = Process.spawn('echo "hello world"')
++			Process.wait pid
+ 			STDOUT.puts 'puts'
+ 		end.should == "hello world\nputs\n"
+   end
+ 
+   it "#stderr should capture all STDERR IO content" do
+ 		Capture.stderr do
+-			Process.spawn('echo "hello world" 1>&2')
++			pid = Process.spawn('echo "hello world" 1>&2')
++			Process.wait pid
+ 			STDERR.puts 'puts'
+ 		end.should == "hello world\nputs\n"
+   end
+@@ -18,8 +20,10 @@
+ 	it "#stdout and #stderr in combination" do
+ 		Capture.stdout do
+ 			Capture.stderr do
+-				Process.spawn('echo "hello world out"')
+-				Process.spawn('echo "hello world err" 1>&2')
++				pid = Process.spawn('echo "hello world out"')
++				Process.wait pid
++				pid = Process.spawn('echo "hello world err" 1>&2')
++				Process.wait pid
+ 			end.should == "hello world err\n"
+ 		end.should == "hello world out\n"
+ 	end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d04b329
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-tests.patch
diff --git a/debian/ruby-capture-output.docs b/debian/ruby-capture-output.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-capture-output.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..99987ae
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+  spec.pattern = './spec/*_spec.rb'
+end
+
+task :default => :spec
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/watch b/debian/watch
new file mode 100644
index 0000000..db17818
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/capture-output .*/capture-output-(.*).tar.gz

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



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