[nodejs-passport-oauth1] Update to 1.0.1 upstream release
Tom Hughes
tomh at fedoraproject.org
Fri Jan 31 15:47:42 UTC 2014
commit 5f6c9b82679036cc2309b38ca95efce011c88338
Author: Tom Hughes <tom at compton.nu>
Date: Fri Jan 31 14:22:45 2014 +0000
Update to 1.0.1 upstream release
.gitignore | 2 +
nodejs-passport-oauth1.spec | 13 +-
passport-oauth1-dl-tests.sh | 2 +-
passport-oauth1-strategy.patch | 401 ++++++++++++++++++++++++++++++++++++++++
sources | 4 +-
5 files changed, 412 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e99795e..43abb67 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
/passport-oauth1-1.0.0.tgz
/passport-oauth1-tests-v1.0.0.tar.bz2
+/passport-oauth1-1.0.1.tgz
+/passport-oauth1-tests-v1.0.1.tar.bz2
diff --git a/nodejs-passport-oauth1.spec b/nodejs-passport-oauth1.spec
index 5841207..9f842bf 100644
--- a/nodejs-passport-oauth1.spec
+++ b/nodejs-passport-oauth1.spec
@@ -1,7 +1,5 @@
-%global enable_tests 1
-
Name: nodejs-passport-oauth1
-Version: 1.0.0
+Version: 1.0.1
Release: 1%{?dist}
Summary: OAuth 1.0 authentication strategy for Passport
@@ -13,19 +11,18 @@ Source0: http://registry.npmjs.org/passport-oauth1/-/passport-oauth1-%{ve
# version control repository.
Source1: passport-oauth1-tests-v%{version}.tar.bz2
Source10: passport-oauth1-dl-tests.sh
+Patch0: passport-oauth1-strategy.patch
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
-%if 0%{?enable_tests}
BuildRequires: npm(mocha)
BuildRequires: npm(chai)
BuildRequires: npm(chai-passport-strategy)
BuildRequires: npm(passport-strategy)
BuildRequires: npm(oauth)
BuildRequires: npm(utils-merge)
-%endif
%description
General-purpose OAuth 1.0 authentication strategy for Passport.
@@ -49,6 +46,7 @@ strategy, please add it to the list so other people can find it.
%prep
%setup -q -n package
%setup -T -D -a 1 -q -n package
+%patch0 -p1
rm -rf node_modules
@@ -61,11 +59,9 @@ cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/passport-oauth1
%nodejs_symlink_deps
-%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/mocha/bin/mocha --reporter spec --require test/bootstrap/node test/*.test.js
-%endif
%files
@@ -74,5 +70,8 @@ cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/passport-oauth1
%changelog
+* Fri Jan 31 2014 Tom Hughes <tom at compton.nu> - 1.0.1-1
+- Update to 1.0.1 upstream release
+
* Sun Aug 18 2013 Tom Hughes <tom at compton.nu> - 1.0.0-1
- Initial build of 1.0.0
diff --git a/passport-oauth1-dl-tests.sh b/passport-oauth1-dl-tests.sh
index 72767bb..f15d680 100755
--- a/passport-oauth1-dl-tests.sh
+++ b/passport-oauth1-dl-tests.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-tag=v1.0.0
+tag=v1.0.1
set -e
diff --git a/passport-oauth1-strategy.patch b/passport-oauth1-strategy.patch
new file mode 100644
index 0000000..7fc37e6
--- /dev/null
+++ b/passport-oauth1-strategy.patch
@@ -0,0 +1,401 @@
+commit 8f6a2d4b5de4b836000501876dadfcacc437264b
+Author: Tom Hughes <tom at compton.nu>
+Date: Fri Jan 31 15:40:40 2014 +0000
+
+ Update to use chai-passport-strategy 0.2.x
+
+diff --git a/package.json b/package.json
+index 8cb486a..9d5a450 100644
+--- a/package.json
++++ b/package.json
+@@ -38,7 +38,7 @@
+ "devDependencies": {
+ "mocha": "1.x.x",
+ "chai": "1.x.x",
+- "chai-passport-strategy": "0.1.x"
++ "chai-passport-strategy": "0.2.x"
+ },
+ "engines": { "node": ">= 0.4.0" },
+ "scripts": {
+diff --git a/test/oauth.error.test.js b/test/oauth.error.test.js
+index 67a3889..ba32736 100644
+--- a/test/oauth.error.test.js
++++ b/test/oauth.error.test.js
+@@ -26,7 +26,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+@@ -79,7 +79,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+@@ -124,7 +124,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+@@ -174,7 +174,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+@@ -228,7 +228,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+@@ -278,7 +278,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+diff --git a/test/oauth.fail.test.js b/test/oauth.fail.test.js
+index c2869a0..518f8a8 100644
+--- a/test/oauth.fail.test.js
++++ b/test/oauth.fail.test.js
+@@ -29,7 +29,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .fail(function(i) {
+ info = i;
+ done();
+diff --git a/test/oauth.normal.test.js b/test/oauth.normal.test.js
+index 8abc2c5..6962eff 100644
+--- a/test/oauth.normal.test.js
++++ b/test/oauth.normal.test.js
+@@ -44,7 +44,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
+@@ -83,7 +83,7 @@ describe('OAuthStrategy', function() {
+ , err;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+@@ -113,7 +113,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -141,7 +141,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .fail(function(i) {
+ info = i;
+ done();
+diff --git a/test/oauth.options.test.js b/test/oauth.options.test.js
+index 6b2bcb2..219dcc3 100644
+--- a/test/oauth.options.test.js
++++ b/test/oauth.options.test.js
+@@ -53,7 +53,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -81,7 +81,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -109,7 +109,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -175,7 +175,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -206,7 +206,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -237,7 +237,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -276,7 +276,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -316,7 +316,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -355,7 +355,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -431,7 +431,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -463,7 +463,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+@@ -526,7 +526,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+diff --git a/test/oauth.passreq.test.js b/test/oauth.passreq.test.js
+index 63d2177..4262641 100644
+--- a/test/oauth.passreq.test.js
++++ b/test/oauth.passreq.test.js
+@@ -36,7 +36,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
+@@ -108,7 +108,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
+diff --git a/test/oauth.sub.parseerrorresponse.test.js b/test/oauth.sub.parseerrorresponse.test.js
+index 277ebe0..f70e4b0 100644
+--- a/test/oauth.sub.parseerrorresponse.test.js
++++ b/test/oauth.sub.parseerrorresponse.test.js
+@@ -50,7 +50,7 @@ describe('OAuthStrategy', function() {
+ var request, err;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+@@ -98,7 +98,7 @@ describe('OAuthStrategy', function() {
+ var request, err;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+@@ -153,7 +153,7 @@ describe('OAuthStrategy', function() {
+ var request, err;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+diff --git a/test/oauth.sub.requesttokenparams.test.js b/test/oauth.sub.requesttokenparams.test.js
+index 214668d..c82d427 100644
+--- a/test/oauth.sub.requesttokenparams.test.js
++++ b/test/oauth.sub.requesttokenparams.test.js
+@@ -51,7 +51,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+diff --git a/test/oauth.sub.userauthorizationparams.test.js b/test/oauth.sub.userauthorizationparams.test.js
+index b36a49c..f1302db 100644
+--- a/test/oauth.sub.userauthorizationparams.test.js
++++ b/test/oauth.sub.userauthorizationparams.test.js
+@@ -47,7 +47,7 @@ describe('OAuthStrategy', function() {
+ , url;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .redirect(function(u) {
+ url = u;
+ done();
+diff --git a/test/oauth.sub.userprofile.test.js b/test/oauth.sub.userprofile.test.js
+index 6b2577d..9740af2 100644
+--- a/test/oauth.sub.userprofile.test.js
++++ b/test/oauth.sub.userprofile.test.js
+@@ -49,7 +49,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
+@@ -93,7 +93,7 @@ describe('OAuthStrategy', function() {
+ , err;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .error(function(e) {
+ err = e;
+ done();
+@@ -152,7 +152,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
+@@ -223,7 +223,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
+@@ -295,7 +295,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
+@@ -367,7 +367,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
+@@ -440,7 +440,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
+diff --git a/test/oauth.verify.test.js b/test/oauth.verify.test.js
+index 670aa2f..a16f6ca 100644
+--- a/test/oauth.verify.test.js
++++ b/test/oauth.verify.test.js
+@@ -35,7 +35,7 @@ describe('OAuthStrategy', function() {
+ , info;
+
+ before(function(done) {
+- chai.passport(strategy)
++ chai.passport.use(strategy)
+ .success(function(u, i) {
+ user = u;
+ info = i;
diff --git a/sources b/sources
index a441e60..8fa4f64 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-96fb38afc18f690b112e021f8a8bd87f passport-oauth1-1.0.0.tgz
-54005ecc92d2510c78e3f75b773a02ec passport-oauth1-tests-v1.0.0.tar.bz2
+5527f3239ccc0bd18f382243dc334291 passport-oauth1-1.0.1.tgz
+e327ba9cca3c8315ccb2f4a1ca483634 passport-oauth1-tests-v1.0.1.tar.bz2
More information about the scm-commits
mailing list