Skip to content
Browse files

Update project metadata.

  • Loading branch information...
1 parent 3113805 commit 2e630d01dfcbdf3d9af28904c8277aebde939c9f @jaredhanson committed Jan 22, 2013
Showing with 33 additions and 44 deletions.
  1. +1 −1 LICENSE
  2. +17 −12 Makefile
  3. +4 −24 README.md
  4. +11 −7 package.json
View
2 LICENSE
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2011 Jared Hanson
+Copyright (c) 2011-2013 Jared Hanson
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
View
29 Makefile
@@ -1,19 +1,24 @@
-NODE = node
-TEST = ./node_modules/.bin/vows
+SOURCES = lib/**/*.js
+
+# ==============================================================================
+# Node Tests
+# ==============================================================================
+
+VOWS = ./node_modules/.bin/vows
TESTS ?= test/*-test.js
test:
- @NODE_ENV=test NODE_PATH=lib $(TEST) $(TEST_FLAGS) $(TESTS)
+ @NODE_ENV=test NODE_PATH=lib $(VOWS) $(TESTS)
+
+# ==============================================================================
+# Static Analysis
+# ==============================================================================
-docs: docs/api.html
+JSHINT = jshint
-docs/api.html: lib/passport-github/*.js
- dox \
- --title Passport-GitHub \
- --desc "GitHub authentication strategy for Passport" \
- $(shell find lib/passport-github/* -type f) > $@
+hint: lint
+lint:
+ $(JSHINT) $(SOURCES)
-docclean:
- rm -f docs/*.{1,html}
-.PHONY: test docs docclean
+.PHONY: test hint lint
View
28 README.md
@@ -9,7 +9,7 @@ unobtrusively integrated into any application or framework that supports
[Connect](http://www.senchalabs.org/connect/)-style middleware, including
[Express](http://expressjs.com/).
-## Installation
+## Install
$ npm install passport-github
@@ -43,11 +43,7 @@ For example, as route middleware in an [Express](http://expressjs.com/)
application:
app.get('/auth/github',
- passport.authenticate('github'),
- function(req, res){
- // The request will be redirected to GitHub for authentication, so this
- // function will not be called.
- });
+ passport.authenticate('github'));
app.get('/auth/github/callback',
passport.authenticate('github', { failureRedirect: '/login' }),
@@ -73,23 +69,7 @@ For a complete, working example, refer to the [login example](https://github.com
## License
-(The MIT License)
-
-Copyright (c) 2011 Jared Hanson
-
-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 MIT License](http://opensource.org/licenses/MIT)
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+Copyright (c) 2011-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
-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.
View
18 package.json
@@ -2,14 +2,23 @@
"name": "passport-github",
"version": "0.1.3",
"description": "GitHub authentication strategy for Passport.",
- "author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" },
+ "keywords": ["passport", "github", "auth", "authn", "authentication", "identity"],
"repository": {
"type": "git",
"url": "http://github.com/jaredhanson/passport-github.git"
},
"bugs": {
"url": "http://github.com/jaredhanson/passport-github/issues"
},
+ "author": {
+ "name": "Jared Hanson",
+ "email": "jaredhanson@gmail.com",
+ "url": "http://www.jaredhanson.net/"
+ },
+ "licenses": [ {
+ "type": "MIT",
+ "url": "http://www.opensource.org/licenses/MIT"
+ } ],
"main": "./lib/passport-github",
"dependencies": {
"pkginfo": "0.2.x",
@@ -21,10 +30,5 @@
"scripts": {
"test": "NODE_PATH=lib node_modules/.bin/vows test/*-test.js"
},
- "engines": { "node": ">= 0.4.0" },
- "licenses": [ {
- "type": "MIT",
- "url": "http://www.opensource.org/licenses/MIT"
- } ],
- "keywords": ["passport", "github", "auth", "authn", "authentication", "identity"]
+ "engines": { "node": ">= 0.4.0" }
}

0 comments on commit 2e630d0

Please sign in to comment.
Something went wrong with that request. Please try again.