debian/0000755000000000000000000000000011772656670007207 5ustar debian/control0000644000000000000000000000171411772656670010615 0ustar Source: ruby-net-irc Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Youhei SASAKI DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), rake, ruby-rspec Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-net-irc.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-net-irc.git;a=summary Homepage: http://cho45.stfuawsc.com/net-irc/ XS-Ruby-Versions: all Package: ruby-net-irc Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Conflicts: libnet-irc-ruby Description: Ruby IRC library (Client, Server and many IRC gateways to webservice) The "net-irc" is a library for implementing IRC server(for gateway and web services) and client(for bot). . This is mostly conform to RFC 1459 but partly not for convenience. debian/changelog0000644000000000000000000000053711772656670011066 0ustar ruby-net-irc (0.0.9-2) unstable; urgency=low * Team upload. * Bump build dependency on gem2deb to >= 0.3.0~. -- Paul van Tilburg Wed, 27 Jun 2012 21:23:36 +0200 ruby-net-irc (0.0.9-1) unstable; urgency=low * Initial release (Closes: #656691) -- Youhei SASAKI Tue, 05 Jul 2011 23:19:03 +0900 debian/ruby-net-irc.docs0000644000000000000000000000000711712612416012356 0ustar README debian/ruby-tests.rake0000644000000000000000000000014011740561602012150 0ustar require 'rspec/core/rake_task' task :default => [:spec] RSpec::Core::RakeTask.new do |t| end debian/source/0000755000000000000000000000000011712612416010467 5ustar debian/source/format0000644000000000000000000000001411712612416011675 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000014311712612416010216 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/net-irc .*/net-irc-(.*).tar.gz debian/copyright0000644000000000000000000000741111712612416011125 0ustar Format: http://dep.debian.net/deps/dep5/ Upstream-Name: net-irc Source: http://cho45.stfuawsc.com/net-irc/ Files: * Copyright: 2008-2009 cho45 License: GPL-2+ or Ruby's Files: debian/* Copyright: 2011 Youhei SASAKI License: GPL-2+ License: Ruby's Ruby is copyrighted free software by Yukihiro Matsumoto . You can redistribute it and/or modify it under either the terms of the GPL (see COPYING.txt file), or the conditions below: . 1. You may make and give away verbatim copies of the source form of the software without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. . 2. You may modify your copy of the software in any way, provided that you do at least ONE of the following: . a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or by allowing the author to include your modifications in the software. . b) use the modified software only within your corporation or organization. . c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided. . d) make other distribution arrangements with the author. . 3. You may distribute the software in object code or executable form, provided that you do at least ONE of the following: . a) distribute the executables and library files of the software, together with instructions (in the manual page or equivalent) on where to get the original distribution. . b) accompany the distribution with the machine-readable source of the software. . c) give non-standard executables non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 4. You may modify and include the part of the software into any other software (possibly commercial). But some files in the distribution are not written by the author, so that they are not under this terms. . They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some files under the ./missing directory. See each file for the copying condition. . 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. . 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 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'. debian/rules0000755000000000000000000000070111712612416010245 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/compat0000644000000000000000000000000211712612416010365 0ustar 7 debian/ruby-net-irc.examples0000644000000000000000000000001311712612416013241 0ustar examples/* debian/patches/0000755000000000000000000000000011712612416010616 5ustar debian/patches/0001-Update-for-newest-RSpec-2.patch0000644000000000000000000000444611712612416016707 0ustar From: Youhei SASAKI Date: Thu, 2 Feb 2012 16:25:39 +0900 Subject: Update for newest RSpec >= 2 Signed-off-by: Youhei SASAKI --- Rakefile | 37 +++++++++++++++++++++++++++++++------ spec/channel_manager_spec.rb | 2 +- spec/net-irc_spec.rb | 2 +- 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/Rakefile b/Rakefile index e390a06..f4a65a1 100644 --- a/Rakefile +++ b/Rakefile @@ -7,7 +7,21 @@ require 'rake/gempackagetask' require 'rake/rdoctask' require 'rake/contrib/sshpublisher' require 'fileutils' -require 'spec/rake/spectask' +# Adaptable to both RSpec 1 and 2 +rspec_version = nil +begin + # for RSpec 2 + require 'rspec/core/rake_task' + rspec_version = 2 +rescue LoadError + begin + # for RSpec 1 + require 'spec/rake/spectask' + rspec_version = 1 + rescue LoadError + puts "RSpec is not available." + end +end include FileUtils @@ -35,11 +49,22 @@ RDOC_OPTS = [ task :default => [:spec] task :package => [:clean] - -Spec::Rake::SpecTask.new do |t| - t.spec_opts = ['--options', "spec/spec.opts"] - t.spec_files = FileList['spec/*_spec.rb'] - #t.rcov = true +if rspec_version then + case rspec_version + when 1 + Spec::Rake::SpecTask.new do |t| + t.spec_opts = ['--options', "spec/spec.opts"] + t.spec_files = FileList['spec/*_spec.rb'] + # t.rcov = true + end + when 2 + RSpec::Core::RakeTask.new do |t| + t.rspec_opts = ['--options', "spec/spec.opts"] + # t.rcov = true + end + else + raise "RSpec is not available." + end end spec = Gem::Specification.new do |s| diff --git a/spec/channel_manager_spec.rb b/spec/channel_manager_spec.rb index d16fbf7..1b80e65 100755 --- a/spec/channel_manager_spec.rb +++ b/spec/channel_manager_spec.rb @@ -4,7 +4,7 @@ $LOAD_PATH << "lib" $LOAD_PATH << "../lib" require "rubygems" -require "spec" +require "rspec" require "thread" require "net/irc" require "net/irc/client/channel_manager" diff --git a/spec/net-irc_spec.rb b/spec/net-irc_spec.rb index ec4e493..5fdb001 100755 --- a/spec/net-irc_spec.rb +++ b/spec/net-irc_spec.rb @@ -6,7 +6,7 @@ $LOAD_PATH << "lib" $LOAD_PATH << "../lib" require "rubygems" -require "spec" +require "rspec" require "net/irc" include Net::IRC include Constants -- debian/patches/series0000644000000000000000000000004511712612416012032 0ustar 0001-Update-for-newest-RSpec-2.patch