From ca21580421444216e1cb34af28eb58d3d872e1b8 Mon Sep 17 00:00:00 2001 From: Zuzana Svetlikova Date: Feb 13 2017 09:55:17 +0000 Subject: Update --- diff --git a/.gitignore b/.gitignore index fab1a11..d9ed667 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /tests-1.1.3.tar.bz2 /raw-body-1.1.4.tgz /tests-1.1.4.tar.bz2 +/raw-body-2.2.0.tgz +/tests-2.2.0.tar.bz2 diff --git a/dl-tests.sh b/dl-tests.sh index f075946..deadf6f 100644 --- a/dl-tests.sh +++ b/dl-tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -tag=1.1.4 +tag=2.2.0 set -e diff --git a/nodejs-raw-body.spec b/nodejs-raw-body.spec index 195a69f..469baab 100644 --- a/nodejs-raw-body.spec +++ b/nodejs-raw-body.spec @@ -3,11 +3,10 @@ %global enable_tests 0 Name: nodejs-raw-body -Version: 1.1.4 -Release: 4%{?dist} +Version: 2.2.0 +Release: 1%{?dist} Summary: Get and validate the raw body of a readable stream License: MIT -Group: System Environment/Libraries URL: https://github.com/stream-utils/raw-body Source0: http://registry.npmjs.org/raw-body/-/raw-body-%{version}.tgz # The test files are not included in the npm tarball. @@ -27,14 +26,20 @@ BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(bytes) -BuildRequires: npm(mocha) -BuildRequires: npm(request) -# Not yet packaged for Fedora. -# BuildRequires: npm(assert-tap) -# BuildRequires: npm(co) -# BuildRequires: npm(gnode) -# BuildRequires: npm(readable-stream) -# BuildRequires: npm(through2) +BuildRequires: npm(iconv-lite) +BuildRequires: npm(unpipe) + +BuildRequires: npm(bluebird) +BuildRequires: npm(istanbul) +Buildrequires: npm(mocha) +BuildRequires: npm(readable-stream) +BuildRequires: npm(through2) +# not packaged +# BuildRequires: npm(eslint) +# BuildRequires: npm(eslint-config-standard) +# BuildRequires: npm(eslint-plugin-markdown) +# BuildRequires: npm(eslint-plugin-promise) +# BuildRequires: npm(eslint-plugin-standard) %endif %description @@ -47,6 +52,9 @@ It is ideal for parsing request bodies. %setup -q -n package %setup -q -T -D -a 1 -n package +%nodejs_fixdep bytes --caret +%nodejs_fixdep iconv-lite --caret +%nodejs_fixdep unpipe --caret %build #nothing to do @@ -63,10 +71,9 @@ cp -pr package.json index.js \ %if 0%{?enable_tests} %check %nodejs_symlink_deps --check -# /usr/bin/npm install -# gnode required to access generators on Node < 0.11 -NODE=node_modules/gnode/bin/gnode \ - /usr/bin/mocha --reporter spec --bail test/index.js +mocha --trace-deprecation --reporter spec --bail --check-leaks test/ +istanbul cover usr/bin/mocha -- --trace-deprecation --reporter dot --check-leaks test/ +istanbul cover usr/bin/mocha --report lcovonly -- --trace-deprecation --reporter spec --check-leaks test/ %endif @@ -76,6 +83,9 @@ NODE=node_modules/gnode/bin/gnode \ %changelog +* Mon Feb 13 2017 Zuzana Svetlikova - 2.2.0-1 +- Update + * Thu Feb 04 2016 Fedora Release Engineering - 1.1.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index ac6c820..68a8218 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -cbd092b048cda3a68da4f3bc1fde0a98 raw-body-1.1.4.tgz -4d696819236e771fb8f66cd5ac0dd778 tests-1.1.4.tar.bz2 +SHA512 (raw-body-2.2.0.tgz) = 0bac67c0cd06637b4fe9cc12cc14e33c85bf3e0c70c711c0c83a0ee2ae008f27fcd13c94d9ee48b0cc2e9a825fe565e20151bbeeed920c415433ff53fbda02d2 +SHA512 (tests-2.2.0.tar.bz2) = 5fd9c79a31a1e472f2e5905d63512c24b8be2410bddd7d826516274e07c03d2231b052e84d0260b6ddb7acd6407310191d0362af6a7508cfc709f64c06a239ba