debian/0000755000000000000000000000000012266165060007172 5ustar debian/rules0000755000000000000000000000100312266164657010257 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 override_dh_installchangelogs: dh_installchangelogs CHANGELOG.md debian/watch0000644000000000000000000000015511640676435010234 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/eventmachine .*/eventmachine-(.*).tar.gz debian/source/0000755000000000000000000000000011764652131010474 5ustar debian/source/format0000644000000000000000000000001411640676435011710 0ustar 3.0 (quilt) debian/ruby-eventmachine.lintian-overrides0000644000000000000000000000024512154402176016176 0ustar # It is dual licensed under Ruby's license or GPL # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591979 ruby-eventmachine: possible-gpl-code-linked-with-openssl debian/ruby-eventmachine.examples0000644000000000000000000000001311640676435014361 0ustar examples/* debian/copyright0000644000000000000000000000621011772005744011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: eventmachine Source: http://rubyeventmachine.com/ Files: * Copyright: Copyright 2006-2007 Francis Cianfrocca License: Ruby or GPL-2 Files: debian/* Copyright: Copyright 2008 Daigo Moriwaki Copyright 2011 Laurent Arnoud License: GPL-2 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 version 2. . On Debian systems the full text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. License: Ruby 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. debian/control0000644000000000000000000000312012266165004010567 0ustar Source: ruby-eventmachine Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Daigo Moriwaki , Ryan Niebur , Laurent Arnoud , Paul van Tilburg , Per Andersson Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), libssl-dev Standards-Version: 3.9.5 Homepage: http://rubyeventmachine.com/ Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-eventmachine.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-eventmachine.git;a=summary XS-Ruby-Versions: all Package: ruby-eventmachine Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Ruby/EventMachine library EventMachine implements a fast, single-threaded engine for arbitrary network communications. It's extremely easy to use in Ruby. EventMachine wraps all interactions with IP sockets, allowing programs to concentrate on the implementation of network protocols. It can be used to create both network servers and clients. To create a server or client, a Ruby program only needs to specify the IP address and port, and provide a Module that implements the communications protocol. Implementations of several standard network protocols are provided with the package, primarily to serve as examples. The real goal of EventMachine is to enable programs to easily interface with other programs using TCP/IP, especially if custom protocols are required. debian/patches/0000755000000000000000000000000012161673773010632 5ustar debian/patches/skip_tests_using_network.patch0000644000000000000000000000732312157434216017016 0ustar Description: disable tests requiring network connection These tests should pass if network access is available Bug-Debian: http://bugs.debian.org/710941 Origin: vendor Author: Cédric Boutillier Forwarded: not-needed Last-Update: 2013-06-16 --- a/tests/test_basic.rb +++ b/tests/test_basic.rb @@ -130,7 +130,7 @@ assert_equal($sent, $received) end - def test_bind_connect + def est_bind_connect local_ip = UDPSocket.open {|s| s.connect('google.com', 80); s.addr.last } bind_port = next_port --- a/tests/test_httpclient.rb +++ b/tests/test_httpclient.rb @@ -13,7 +13,7 @@ #------------------------------------- - def test_http_client + def est_http_client ok = false EM.run { c = silent { EM::P::HttpClient.send :request, :host => "www.google.com", :port => 80 } @@ -28,7 +28,7 @@ #------------------------------------- - def test_http_client_1 + def est_http_client_1 ok = false EM.run { c = silent { EM::P::HttpClient.send :request, :host => "www.google.com", :port => 80 } @@ -40,7 +40,7 @@ #------------------------------------- - def test_http_client_2 + def est_http_client_2 ok = false EM.run { c = silent { EM::P::HttpClient.send :request, :host => "www.google.com", :port => 80 } @@ -155,7 +155,7 @@ # TODO, need a more intelligent cookie tester. # In fact, this whole test-harness needs a beefier server implementation. - def test_cookie + def est_cookie ok = false EM.run { c = silent { EM::Protocols::HttpClient.send :request, :host => "www.google.com", :port => 80, :cookie=>"aaa=bbb" } @@ -170,7 +170,7 @@ # We can tell the client to send an HTTP/1.0 request (default is 1.1). # This is useful for suppressing chunked responses until those are working. - def test_version_1_0 + def est_version_1_0 ok = false EM.run { c = silent { EM::P::HttpClient.request( --- a/tests/test_httpclient2.rb +++ b/tests/test_httpclient2.rb @@ -51,7 +51,7 @@ assert(err) end - def test_get + def est_get content = nil EM.run { http = silent { EM::P::HttpClient2.connect "google.com", 80 } @@ -83,7 +83,7 @@ assert(content) end - def test_get_pipeline + def est_get_pipeline headers, headers2 = nil, nil EM.run { http = silent { EM::P::HttpClient2.connect "google.com", 80 } @@ -113,7 +113,7 @@ } end - def test_https_get + def est_https_get d = nil EM.run { http = silent { EM::P::HttpClient2.connect :host => 'www.apple.com', :port => 443, :ssl => true } --- a/tests/test_resolver.rb +++ b/tests/test_resolver.rb @@ -1,7 +1,7 @@ require 'em_test_helper' class TestResolver < Test::Unit::TestCase - def test_a + def est_a EM.run { d = EM::DNS::Resolver.resolve "google.com" d.errback { assert false } @@ -12,7 +12,7 @@ } end - def test_bad_host + def est_bad_host EM.run { d = EM::DNS::Resolver.resolve "asdfasasdf" d.callback { assert false } @@ -28,7 +28,7 @@ } end - def test_a_pair + def est_a_pair EM.run { d = EM::DNS::Resolver.resolve "google.com" d.errback { assert false } @@ -52,4 +52,4 @@ } } end -end \ No newline at end of file +end --- a/tests/test_unbind_reason.rb +++ b/tests/test_unbind_reason.rb @@ -11,7 +11,7 @@ end end - def test_connect_timeout + def est_connect_timeout error = nil EM.run { conn = EM.connect 'google.com', 81, Module.new{ |m| --- a/tests/test_pending_connect_timeout.rb +++ b/tests/test_pending_connect_timeout.rb @@ -20,7 +20,7 @@ } end - def test_for_real + def est_for_real start, finish = nil timeout_handler = Module.new do debian/patches/series0000644000000000000000000000003712157423665012045 0ustar skip_tests_using_network.patch debian/compat0000644000000000000000000000000211640676435010400 0ustar 7 debian/changelog0000644000000000000000000000665712266165060011062 0ustar ruby-eventmachine (1.0.3-4) unstable; urgency=low * Team upload. * d/rules: disable tests for now * bump Standards-Version to 3.9.5 (no changes needed) -- Jonas Genannt Thu, 16 Jan 2014 14:40:05 +0100 ruby-eventmachine (1.0.3-3) unstable; urgency=medium * Team upload. * Set urgency to medium as an RC bug is closed. * Disable tests requiring network access. (Closes: #710941) + add debian/patches/skip_tests_using_network.patch some of these tests + skip entire test files from debian/ruby-tests.rb -- Cédric Boutillier Mon, 17 Jun 2013 00:17:18 +0200 ruby-eventmachine (1.0.3-2) unstable; urgency=low * Team upload. * Add libssl-dev to build deps. (Closes: #591979) - webmock needs eventmachine with encryption support. -- Praveen Arimbrathodiyil Mon, 20 May 2013 03:23:52 +0530 ruby-eventmachine (1.0.3-1) unstable; urgency=low * Team upload. [ Praveen Arimbrathodiyil ] * New upstream release. (Closes: #694076) * Update to standards version 3.9.4. * Remove transitional packages. * Install CHANGELOG.md as upstream changelog. [ Per Andersson ] * Build depend on gem2deb >= 0.3.0. -- Praveen Arimbrathodiyil Tue, 14 May 2013 22:32:19 +0530 ruby-eventmachine (0.12.10-3) unstable; urgency=low * Add myself to uploaders. * Set priority extra for transitional packages. * Add patch to format error strings safely. (Closes: #676209) * Bump standards version to 3.9.3 (no changes necessary). * Use copyright format 1.0 url in debian/copyright. -- Per Andersson Wed, 20 Jun 2012 15:36:28 +0200 ruby-eventmachine (0.12.10-2) unstable; urgency=low [ Laurent Arnoud ] * Switch to gem2deb-based packaging. Source and binary package renamed to ruby-eventmachine. Transitional packages added. [ Paul van Tilburg ] * debian/copyright: small fixes to further comply with the DEP5 format. -- Paul van Tilburg Wed, 28 Sep 2011 21:25:39 +0200 libeventmachine-ruby (0.12.10-1) unstable; urgency=low * New upstream release. (Closes: #577102) * debian/control: - Bumped up Standards-Version to 3.8.4. * debian/watch: - The upstream seems to only distribute a gem package, no longer in the *.tar.gz format. The watch file watches versions of gem packages. Thanks to Frederic Peters for letting me know. -- Daigo Moriwaki Sat, 10 Apr 2010 12:05:59 +0900 libeventmachine-ruby (0.12.6-1) unstable; urgency=low * New upstream version * add myself to uploaders * change Section to ruby * change the -ruby and -doc packages to Architecture all as they are architecture independent - change the versioned dependency to make it binnmu-able * fix copyright for debian packaging in debian/copyright * depend on ${misc:Depends} for all packages * debian policy 3.8.1 * update Vcs-* fields for the move from packages-wip to package * update upstream copyright to 2008, as some files say that year -- Ryan Niebur Fri, 24 Apr 2009 21:49:36 -0700 libeventmachine-ruby (0.12.4-1) unstable; urgency=low * New upstream release. * Initial release to Debian. (Closes: #501450) -- Daigo Moriwaki Sat, 21 Feb 2009 09:14:28 +0900 libeventmachine-ruby (0.12.2-1) unstable; urgency=low * Initial release. -- Daigo Moriwaki Tue, 07 Oct 2008 22:29:37 +0900 debian/ruby-tests.rb0000644000000000000000000000035612157433773011654 0ustar $: << 'tests' # some tests requiring network access disabled_tests=[ 'tests/test_idle_connection.rb', 'tests/test_get_sock_opt.rb', 'tests/test_set_sock_opt.rb', ] (Dir['{tests}/**/*.rb']-disabled_tests).each { |f| require f } debian/ruby-eventmachine.docs0000644000000000000000000000001212154402176013460 0ustar README.md