debian/0000755000000000000000000000000012266167656007207 5ustar debian/rules0000755000000000000000000000070111635725462010257 0ustar #!/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=ruby1.8 ruby1.9.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 debian/watch0000644000000000000000000000044712146000365010221 0ustar version=3 opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \ https://github.com/erikh/deprecated/tags .*/v?(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) # Bart Martens Sat, 22 Dec 2012 15:32:45 +0000 debian/source/0000755000000000000000000000000011635725462010501 5ustar debian/source/format0000644000000000000000000000001411635725462011707 0ustar 3.0 (quilt) debian/ruby-test-files.yaml0000644000000000000000000000003711635725462013123 0ustar --- - test/test_deprecated.rb debian/copyright0000644000000000000000000000333612230331104011113 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Deprecated Source: https://github.com/erikh/deprecated Files: * Copyright: Copyright (C) 2005-2012 Erik Hollensbe 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. Files: debian/* Copyright: 2008-2013, Dmitry Borodaenko License: GPL-2+ The files hereby included are 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. . 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'. debian/control0000644000000000000000000000173212266167656010615 0ustar Source: ruby-deprecated Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Dmitry Borodaenko Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.7~) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-deprecated.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-deprecated.git;a=summary Homepage: https://github.com/erikh/deprecated XS-Ruby-Versions: all Package: ruby-deprecated Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Library for handling deprecated code in Ruby Deprecated is a small library intended to aid developers working with deprecated code. The idea comes from the 'D' programming language, where developers can mark certain code as deprecated, and then allow/disallow the ability to execute deprecated code. debian/patches/0000755000000000000000000000000012230331104010602 5ustar debian/patches/series0000644000000000000000000000003312230331104012013 0ustar 0001-unit-test-fixes.patch debian/patches/0001-unit-test-fixes.patch0000644000000000000000000000402312230331104015250 0ustar From: Dmitry Borodaenko Date: Sat, 10 Sep 2011 20:38:38 +0300 Subject: unit test fixes * remove rubygems usage from the test * fix improper use of assert_raise --- test/test_deprecated.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/test_deprecated.rb b/test/test_deprecated.rb index 1e65f20..77b0532 100644 --- a/test/test_deprecated.rb +++ b/test/test_deprecated.rb @@ -1,7 +1,5 @@ #!/usr/bin/env ruby -require 'rubygems' -gem 'test-unit' require 'test/unit' $:.unshift 'lib' require 'deprecated.rb' @@ -61,13 +59,13 @@ class DeprecateTest < Test::Unit::TestCase assert_raises(DeprecatedError) { DummyClass.new.monkey } Deprecated.set_action { |klass, sym| raise DeprecatedError.new("#{klass}##{sym} is deprecated.") } - assert_raises(DeprecatedError.new("DummyClass#monkey is deprecated.")) do + assert_raises(DeprecatedError, "DummyClass#monkey is deprecated.") do DummyClass.new.monkey end Deprecated.set_action(:raise) - assert_raises(DeprecatedError.new("DummyClass#monkey is deprecated.")) do + assert_raises(DeprecatedError, "DummyClass#monkey is deprecated.") do DummyClass.new.monkey end @@ -83,7 +81,7 @@ class DeprecateTest < Test::Unit::TestCase Deprecated.set_action(:fail) - assert_raises("failed") { DummyClass.new.monkey } + assert_raises(RuntimeError, "failed") { DummyClass.new.monkey } end def test_scope @@ -102,13 +100,13 @@ class DeprecateTest < Test::Unit::TestCase end def test_scoped_actions - assert_raises(DeprecatedError.new("foo!")) { DummyClass2.new.monkey } + assert_raises(DeprecatedError, "foo!") { DummyClass2.new.monkey } end def test_replacement Deprecated.set_action(:raise) - assert_raises(DeprecatedError.new("DummyClass#monkey_bars is deprecated. Please use FooClass#fart.")) do + assert_raises(DeprecatedError, "DummyClass#monkey_bars is deprecated. Please use FooClass#fart.") do DummyClass.new.monkey_bars end end debian/compat0000644000000000000000000000000211635725462010377 0ustar 7 debian/changelog0000644000000000000000000000335312266167656011065 0ustar ruby-deprecated (3.0.1-2) unstable; urgency=low * Team upload. * d/control - removed transitional packages - bumped standards version to 3.9.5 (no changes needed) - updated vcs field to point to Debian git repo -- Jonas Genannt Thu, 16 Jan 2014 16:29:38 +0100 ruby-deprecated (3.0.1-1) unstable; urgency=low [ Dmitry Borodaenko ] * New upstream version. * debian/copyright: upstream license changed to MIT/Expat. * debian/control: transitional packages should be oldlibs/extra. * Standards-Version updated to 3.9.4 (no changes). [ Cédric Boutillier ] * debian/control: remove obsolete DM-Upload-Allowed flag. * debian/copyright: use DEP5 copyright-format/1.0 official URL for Format field. * Update debian/watch. Thanks Bart Martens. -- Dmitry Borodaenko Sat, 10 Aug 2013 13:50:10 -0700 ruby-deprecated (3.0.0-1) unstable; urgency=low * New upstream version. * Switch to gem2deb-based packaging: - source and binary packages renamed to ruby-deprecated - transitional packages added - source format changed to 3.0 (quilt). * Redirect watch file to GitHub. * Fix upstream unit test. -- Dmitry Borodaenko Sat, 10 Sep 2011 18:46:48 +0300 libdeprecated-ruby (2.0.1-2) unstable; urgency=low * Switch from Ruby 1.9 to 1.9.1. Closes: #569858. * Standards-Version updated to 3.8.4: - changed Section from interpreters to ruby - debhelper compat level upgraded to 5. -- Dmitry Borodaenko Sun, 28 Feb 2010 14:01:06 +0200 libdeprecated-ruby (2.0.1-1) unstable; urgency=low * Initial release. Closes: #500475 (ITP). -- Dmitry Borodaenko Sun, 28 Sep 2008 19:55:25 +0300 debian/ruby-deprecated.docs0000644000000000000000000000000711635725462013127 0ustar README