From 5763318a8fe2e6482095b473dda3654ba544ddfc Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Dec 24 2018 11:47:47 +0000 Subject: Orphaned for 6+ weeks --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 86a05f9..0000000 --- a/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -/timed-out-2.0.0.tgz -/v3.0.0.tar.gz -/v3.1.0.tar.gz -/v3.1.2.tar.gz -/v4.0.0.tar.gz -/v4.0.1.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5204a84 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Orphaned for 6+ weeks diff --git a/license b/license deleted file mode 100644 index faadd52..0000000 --- a/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Vsevolod Strukchinsky - -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/nodejs-timed-out.spec b/nodejs-timed-out.spec deleted file mode 100644 index 2e7b71e..0000000 --- a/nodejs-timed-out.spec +++ /dev/null @@ -1,88 +0,0 @@ -# network tests not working in koji -%global enable_tests 0 -%global module_name timed-out - -Name: nodejs-%{module_name} -Version: 4.0.1 -Release: 5%{?dist} -Summary: Timeout HTTP/HTTPS requests - -License: MIT -URL: https://github.com/floatdrop/timed-out -Source0: https://github.com/floatdrop/timed-out/archive/v%{version}.tar.gz -BuildArch: noarch -ExclusiveArch: %{nodejs_arches} noarch - -BuildRequires: nodejs-packaging - -%if 0%{?enable_tests} -BuildRequires: npm(mocha) -%endif - -%description -Timeout HTTP/HTTPS requests. Emit Error object with code property -equal ETIMEDOUT or ESOCKETTIMEDOUT when ClientRequest is hanged. - -%prep -%autosetup -n %{module_name}-%{version} -rm -rf node_modules - -%build -# nothing to build - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} -cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name} -%nodejs_symlink_deps - -%if 0%{?enable_tests} -%check -%nodejs_symlink_deps --check -%{__nodejs} -e 'require("./")' -mocha -%endif - -%files -%doc readme.md license -%{nodejs_sitelib}/%{module_name} - -%changelog -* Fri Jul 13 2018 Fedora Release Engineering - 4.0.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering - 4.0.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 4.0.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 4.0.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Fri Jan 27 2017 Parag Nemade - 4.0.1-1 -- Update to 4.0.1 - -* Fri Dec 30 2016 Parag Nemade - 4.0.0-1 -- Update to 4.0.0 - -* Thu Dec 29 2016 Parag Nemade - 3.1.2-1 -- Update to 3.1.2 - -* Thu Dec 15 2016 Parag Nemade - 3.1.0-1 -- Update to 3.1.0 - -* Mon Sep 19 2016 Parag Nemade - 3.0.0-1 -- Update to 3.0.0 - -* Thu Feb 04 2016 Fedora Release Engineering - 2.0.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 2.0.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun Dec 07 2014 Parag Nemade - 2.0.0-2 -- Add test.js from upstream and enable tests - -* Thu Dec 04 2014 Parag Nemade - 2.0.0-1 -- Initial packaging - diff --git a/sources b/sources deleted file mode 100644 index 6e72de8..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (v4.0.1.tar.gz) = 412115d97e9524271eb363f0c63ce578d448ad39f3c73a986d0f6dfd6d3b6fcdee380b6a720b47474d964dadf3da22950c08c74ed11bff598670e0304688639f diff --git a/test.js b/test.js deleted file mode 100644 index 81a4c5a..0000000 --- a/test.js +++ /dev/null @@ -1,66 +0,0 @@ -/* global describe, before, after, it */ - -'use strict'; - -var assert = require('assert'); -var http = require('http'); -var timeout = require('./'); - -it('should do HTTP request with a lot of time', function (done) { - var req = http.get('http://google.com', function (res) { - assert.ok(res.statusCode > 300 && res.statusCode < 399); - done(); - }); - - req.on('error', done); - - timeout(req, 1000); -}); - -it('should emit ETIMEDOUT when time is not enough', function (done) { - var req = http.get('http://google.com', function () {}); - - req.on('error', function (err) { - if (err.code === 'ETIMEDOUT') { - assert.equal(err.message, 'Connection timed out on request to google.com'); - done(); - } - }); - - timeout(req, 1); -}); - -describe('when only headers was sent', function () { - var server; - - before(function (done) { - server = http.createServer(function (request, res) { - setTimeout(function() { - res.writeHead(200, {'content-type':'text/plain'}); - res.write('waited'); - res.end(); - }, 200); - }); - - server.listen(8081, function (err) { - done(err); - }); - }); - - after(function (done) { - server.close(done); - }); - - it('should emit ESOCKETTIMEDOUT', function (done) { - var req = http.get('http://0.0.0.0:8081', function () {}); - - req.on('error', function (err) { - if (err.code === 'ESOCKETTIMEDOUT') { - assert.equal(err.message, 'Socket timed out on request to 0.0.0.0:8081'); - done(); - } - }); - - timeout(req, 400); - }); -});