From 9ac8f14a907e7796dde084adec8fb59440446143 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jan 04 2021 11:17:50 +0000 Subject: Orphaned for 6+ weeks --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index bd7eed4..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/array-unique-0.2.1.tgz -/array-unique-0.3.2.tgz 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/nodejs-array-unique.spec b/nodejs-array-unique.spec deleted file mode 100644 index 581a3a7..0000000 --- a/nodejs-array-unique.spec +++ /dev/null @@ -1,103 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -%global packagename array-unique -%global enable_tests 1 - -Name: nodejs-array-unique -Version: 0.3.2 -Release: 9%{?dist} -Summary: Return an array free of duplicate values - -License: MIT -URL: https://github.com/jonschlinkert/array-unique.git -Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz -# The test files are not included in the npm tarball, and releases aren't -# tagged in github, so we'll just pull from master for now -Source1: https://raw.githubusercontent.com/jonschlinkert/array-unique/master/test.js - -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: mocha -BuildRequires: npm(should) -%endif - -%description -Return an array free of duplicate values. Fastest ES5 implementation. - - -%prep -%setup -q -n package -# setup the tests -cp -p %{SOURCE1} . - -chmod -x ./* - - -%build -# nothing to do! - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} -cp -pr package.json index.js \ - %{buildroot}%{nodejs_sitelib}/%{packagename} - -%nodejs_symlink_deps - -%check -%nodejs_symlink_deps --check -%{__nodejs} -e 'require("./")' -%if 0%{?enable_tests} -%{_bindir}/mocha -R spec -%else -%{_bindir}/echo "Tests disabled..." -%endif - - -%files -%{!?_licensedir:%global license %doc} -%doc *.md -%license LICENSE -%{nodejs_sitelib}/%{packagename} - - -%changelog -* Sat Aug 01 2020 Fedora Release Engineering - 0.3.2-9 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering - 0.3.2-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jan 29 2020 Fedora Release Engineering - 0.3.2-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 0.3.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 0.3.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 0.3.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering - 0.3.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 0.3.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Mon Apr 17 2017 Jared Smith - 0.3.2-1 -- Update to upstream 0.3.2 release - -* Fri Feb 10 2017 Fedora Release Engineering - 0.2.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Feb 3 2016 Jared Smith - 0.2.1-1 -- Initial packaging diff --git a/sources b/sources deleted file mode 100644 index da52316..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (array-unique-0.3.2.tgz) = 4a57915a387d254b9ddb01f584fb3dad9059df71fa4fd1ce88bd2ec069c6c7d16913ac0a1b27d6ba099b904388b3aa96ad9860d0b59e2f388bac4c10261b3999 diff --git a/test.js b/test.js deleted file mode 100644 index 2a326bd..0000000 --- a/test.js +++ /dev/null @@ -1,151 +0,0 @@ -/*! - * array-unique - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -require('mocha'); -var assert = require('assert'); -var should = require('should'); -var unique = require('./'); - -describe('unique', function() { - it('should throw an error if the value passed is not an array:', function() { - (function() { - unique('a', 'b', 'c'); - }).should.throw('array-unique expects an array.'); - }); - - it('should return an array with unique values:', function() { - unique(['a', 'b', 'c', 'a', 'b', 'd']).should.eql(['a', 'b', 'c', 'd']); - unique(['a', 'b', 'c', 'a', 'b', 'a', 'b', 'c', 'b', 'f', 'a', 'b']).should.eql(['a', 'b', 'c', 'f']); - unique(['a', 'b', 'c', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b']).should.eql(['a', 'b', 'c', 'f', 'x', 'y', 'z']); - unique(['foo/bar/baz/quux/fez/test/fixtures', 'foo/bar/baz/quux/fez/test/fixtures', 'foo/bar/baz/quux/fez/test/fixtures/a.js', 'foo/bar/baz/quux/fez/test/fixtures', 'foo/bar/baz/quux/fez/test/fixtures', 'foo/bar/baz/quux/fez/test/fixtures/b.js', 'foo/bar/baz/quux/fez/test/fixtures/b.js', 'foo/bar/baz/quux/fez/test/fixtures', 'foo/bar/baz/quux/fez/test/fixtures', 'foo/bar/baz/quux/fez/test/fixtures/a.js', 'foo/bar/baz/quux/fez/test/fixtures/j.js', 'foo/bar/baz/quux/fez/test/fixtures/z.js', 'foo/bar/baz/quux/fez/test/fixtures/c.js', 'foo/bar/baz/quux/fez/test/fixtures/d.js', 'foo/bar/baz/quux/fez/test/fixtures', 'foo/bar/baz/quux/fez/test/fixtures/a.js', 'foo/bar/baz/quux/fez/test/fixtures', 'foo/bar/baz/quux/fez/test/fixtures/h.js', 'foo/bar/baz/quux/fez/test/fixtures/i.js', 'foo/bar/baz/quux/fez/test/fixtures/j.js', 'foo/bar/baz/quux/fez/test/fixtures/k.js', 'foo/bar/baz/quux/fez/test/fixtures/l.js', 'foo/bar/baz/quux/fez/test/fixtures/m.js', 'foo/bar/baz/quux/fez/test/fixtures', 'foo/bar/baz/quux/fez/test/fixtures/a.js']).should.eql([ - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js', - 'foo/bar/baz/quux/fez/test/fixtures/b.js', - 'foo/bar/baz/quux/fez/test/fixtures/j.js', - 'foo/bar/baz/quux/fez/test/fixtures/z.js', - 'foo/bar/baz/quux/fez/test/fixtures/c.js', - 'foo/bar/baz/quux/fez/test/fixtures/d.js', - 'foo/bar/baz/quux/fez/test/fixtures/h.js', - 'foo/bar/baz/quux/fez/test/fixtures/i.js', - 'foo/bar/baz/quux/fez/test/fixtures/k.js', - 'foo/bar/baz/quux/fez/test/fixtures/l.js', - 'foo/bar/baz/quux/fez/test/fixtures/m.js' - ]); - }); -}); - -describe('unique.immutable', function() { - it('should throw an error if the value passed is not an array:', function() { - (function() { - unique.immutable('a', 'b', 'c'); - }).should.throw('array-unique expects an array.'); - }); - - it('should return an array with unique values without modifying the input:', function() { - (function() { - var original = ['a', 'b', 'c', 'a', 'b', 'd']; - var before = ['a', 'b', 'c', 'a', 'b', 'd']; - var expected = ['a', 'b', 'c', 'd']; - - unique.immutable(before).should.eql(expected); - before.should.eql(original); - })(); - - (function() { - var original = ['a', 'b', 'c', 'a', 'b', 'a', 'b', 'c', 'b', 'f', 'a', 'b']; - var before = ['a', 'b', 'c', 'a', 'b', 'a', 'b', 'c', 'b', 'f', 'a', 'b']; - var expected = ['a', 'b', 'c', 'f']; - - unique.immutable(before).should.eql(expected); - before.should.eql(original); - })(); - - (function() { - var original = ['a', 'b', 'c', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b'] - var before = ['a', 'b', 'c', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b', 'a', 'b', 'a', 'b', 'b', 'f', 'a', 'b', 'x', 'y', 'z', 'a', 'b'] - var expected = ['a', 'b', 'c', 'f', 'x', 'y', 'z']; - unique.immutable(before).should.eql(expected); - before.should.eql(original); - })(); - - (function() { - var original = [ - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/b.js', - 'foo/bar/baz/quux/fez/test/fixtures/b.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js', - 'foo/bar/baz/quux/fez/test/fixtures/j.js', - 'foo/bar/baz/quux/fez/test/fixtures/z.js', - 'foo/bar/baz/quux/fez/test/fixtures/c.js', - 'foo/bar/baz/quux/fez/test/fixtures/d.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/h.js', - 'foo/bar/baz/quux/fez/test/fixtures/i.js', - 'foo/bar/baz/quux/fez/test/fixtures/j.js', - 'foo/bar/baz/quux/fez/test/fixtures/k.js', - 'foo/bar/baz/quux/fez/test/fixtures/l.js', - 'foo/bar/baz/quux/fez/test/fixtures/m.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js' - ]; - var before = [ - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/b.js', - 'foo/bar/baz/quux/fez/test/fixtures/b.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js', - 'foo/bar/baz/quux/fez/test/fixtures/j.js', - 'foo/bar/baz/quux/fez/test/fixtures/z.js', - 'foo/bar/baz/quux/fez/test/fixtures/c.js', - 'foo/bar/baz/quux/fez/test/fixtures/d.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/h.js', - 'foo/bar/baz/quux/fez/test/fixtures/i.js', - 'foo/bar/baz/quux/fez/test/fixtures/j.js', - 'foo/bar/baz/quux/fez/test/fixtures/k.js', - 'foo/bar/baz/quux/fez/test/fixtures/l.js', - 'foo/bar/baz/quux/fez/test/fixtures/m.js', - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js' - ]; - var expected = [ - 'foo/bar/baz/quux/fez/test/fixtures', - 'foo/bar/baz/quux/fez/test/fixtures/a.js', - 'foo/bar/baz/quux/fez/test/fixtures/b.js', - 'foo/bar/baz/quux/fez/test/fixtures/j.js', - 'foo/bar/baz/quux/fez/test/fixtures/z.js', - 'foo/bar/baz/quux/fez/test/fixtures/c.js', - 'foo/bar/baz/quux/fez/test/fixtures/d.js', - 'foo/bar/baz/quux/fez/test/fixtures/h.js', - 'foo/bar/baz/quux/fez/test/fixtures/i.js', - 'foo/bar/baz/quux/fez/test/fixtures/k.js', - 'foo/bar/baz/quux/fez/test/fixtures/l.js', - 'foo/bar/baz/quux/fez/test/fixtures/m.js' - ]; - - unique.immutable(before).should.eql(expected); - before.should.eql(original); - })(); - }); -});