From 974098b5f0fe9654aaf1c440ac45266eea7f7857 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Dec 26 2019 12:56:27 +0000 Subject: Orphaned for 6+ weeks --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 79f52b1..0000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/compressible-1.0.0.tgz -/compressible-1.0.1.tgz -/compressible-2.0.9.tgz -/tests-2.0.9.tar.bz2 diff --git a/compressible.js b/compressible.js deleted file mode 100644 index 86f92d0..0000000 --- a/compressible.js +++ /dev/null @@ -1,90 +0,0 @@ -var assert = require('assert') - -var specifications = require('../specifications.json') -var compressible = require('../') - -// None of these should be actual types so that the lookup will never include them. -var example_types = [ - { type: 'something/text', should: true }, - { type: 'type/json', should: true }, - { type: 'data/beans+xml', should: true }, - { type: 'asdf/nope', should: false }, - { type: 'cats', should: false } -] - -var invalid_types = [ - undefined, - null, - 0, - 1, - false, - true -] - -var object_true = { - compressible: true, - sources: ["compressible.regex"], - notes: "Automatically generated via regex." -}, object_false = { - compressible: false, - sources: ["compressible.regex"], - notes: "Automatically generated via regex." -} - -describe('Testing if spec lookups are correct.', function () { - for (var type in specifications) { - var value = specifications[type].compressible - it(type + ' should' + (value ? ' ' : ' not ') + 'be compressible', function () { - assert.equal(compressible(type), value) - }) - } -}) - -describe('Testing if the regex works as intended.', function () { - example_types.forEach(function (example) { - it(example.type + ' should' + (example.should ? ' ' : ' not ') + 'be compressible', function () { - assert.equal(compressible(example.type), example.should) - }) - }) -}) - -describe('Testing if getter returns the correct objects.', function () { - it('All spec objects should be get-able', function () { - for (var type in specifications) { - assert.equal(compressible.get(type), specifications[type]) - } - }) - example_types.forEach(function (example) { - it(example.type + ' should generate a ' + (example.should ? 'true' : 'false') + ' object', function () { - assert.deepEqual(compressible.get(example.type), example.should ? object_true: object_false) - }) - }) -}) - -describe('Testing if charsets are handled correctly.', function () { - it('Charsets should be stripped off without issue', function () { - for (var type in specifications) { - var value = specifications[type].compressible - assert.equal(compressible(type + '; charset=utf-8'), value) - } - }) - it('Types with charsets should be get-able', function () { - for (var type in specifications) { - assert.equal(compressible.get(type + '; charset=utf-8'), specifications[type]) - } - }) -}) - -describe('Ensuring invalid types do not cause errors.', function () { - it('No arguments should return false without error', function () { - assert.equal(compressible(), false) - }) - - invalid_types.forEach(function (invalid) { - it(invalid + ' should return false without error', function () { - assert.doesNotThrow(function () { - assert.equal(compressible(invalid), false) - }) - }) - }) -}) \ No newline at end of file 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/dl-tests.sh b/dl-tests.sh deleted file mode 100644 index 15a6205..0000000 --- a/dl-tests.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -tag=2.0.9 - -set -e - -tmp=$(mktemp -d) - -trap cleanup EXIT -cleanup() { - set +e - [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" -} - -unset CDPATH -pwd=$(pwd) - -pushd "$tmp" -git clone git://github.com/jshttp/compressible.git -cd compressible -git archive --prefix="test/" --format=tar tags/v${tag}:test/ \ - | bzip2 > "$pwd"/tests-${tag}.tar.bz2 -popd diff --git a/nodejs-compressible.spec b/nodejs-compressible.spec deleted file mode 100644 index 4c68fbe..0000000 --- a/nodejs-compressible.spec +++ /dev/null @@ -1,108 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -%global enable_tests 1 - -Name: nodejs-compressible -Version: 2.0.9 -Release: 6%{?dist} -Summary: Compressible Content-Type/MIME checking for Node.js -License: MIT -URL: https://github.com/expressjs/compressible -Source0: http://registry.npmjs.org/compressible/-/compressible-%{version}.tgz -Source1: tests-%{version}.tar.bz2 - -BuildArch: noarch -%if 0%{?fedora} >= 19 -ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif - -BuildRequires: nodejs-packaging - -%if 0%{?enable_tests} -BuildRequires: npm(mocha) -BuildRequires: npm(istanbul) -BuildRequires: npm(mime-db) -# not packaged -#BuildRequires: npm(eslint) -#BuildRequires: npm(eslint-config-standard) -#BuildRequires: npm(eslint-plugin-promise) -#BuildRequires: npm(eslint-plugin-standard) -%endif - -%description -%{summary}. - - -%prep -%setup -q -n package -#cp -p %{SOURCE1} . -%setup -q -T -D -a 1 -n package - -%build -#nothing to do - - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/compressible -cp -pr package.json index.js \ - %{buildroot}%{nodejs_sitelib}/compressible - -%nodejs_symlink_deps - - -%if 0%{?enable_tests} -%check -%nodejs_symlink_deps --check -/usr/bin/mocha --reporter spec --bail --check-leaks test/ -/usr/bin/istanbul-js cover /usr/bin/mocha -- --reporter dot --check-leaks -/usr/bin/istanbul-js cover /usr/bin/mocha --report lcovonly -- --reporter dot --check-leaks -%endif - - -%files -%doc README.md HISTORY.md -%license LICENSE -%{nodejs_sitelib}/compressible - - -%changelog -* Thu Jul 25 2019 Fedora Release Engineering - 2.0.9-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 2.0.9-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 2.0.9-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering - 2.0.9-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 2.0.9-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Mon Feb 13 2017 Zuzana Svetlikova - 2.0.9-1 -- Update - -* Fri Feb 10 2017 Fedora Release Engineering - 1.0.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Thu Feb 04 2016 Fedora Release Engineering - 1.0.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 1.0.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 1.0.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Apr 20 2014 Jamie Nguyen - 1.0.1-1 -- update to upstream release 1.0.1 - -* Wed Mar 12 2014 Jamie Nguyen - 1.0.0-2 -- move specifications.json to {_datadir} - -* Sun Mar 02 2014 Jamie Nguyen - 1.0.0-1 -- initial package diff --git a/sources b/sources deleted file mode 100644 index 547743b..0000000 --- a/sources +++ /dev/null @@ -1,2 +0,0 @@ -SHA512 (compressible-2.0.9.tgz) = 800cba69e4cf88e062bd7fac76a8c444e7469180a4a6da148d08de803f130441f98ac7f229ea43efbed4398fbeb77ff288ccd1c8c1f57a9062f8a72a6229c666 -SHA512 (tests-2.0.9.tar.bz2) = c767911d0b6df7f5618ab0070d798661664c1f86248ee5ea5cf78fd60e27199cbdc6477b770bd7829d4ddd5be7259ced4c1e010266a9af1d477c1185aa9f0a72