Skip to content

Commit

Permalink
Update how module will be export
Browse files Browse the repository at this point in the history
  • Loading branch information
meritt committed Aug 17, 2011
1 parent 5bfba99 commit 81d5b4b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -8,7 +8,7 @@ How to use with JavaScript
-------------------------- --------------------------


```javascript ```javascript
var Gisty = require('gisty').Gisty; var Gisty = require('gisty');


var gist = new Gisty({username: meritt}); var gist = new Gisty({username: meritt});


Expand All @@ -26,7 +26,7 @@ Or with CoffeeScript
-------------------- --------------------


```coffeescript ```coffeescript
Gisty = require('gisty').Gisty Gisty = require 'gisty'


gist = new Gisty username: 'meritt' gist = new Gisty username: 'meritt'


Expand Down
2 changes: 1 addition & 1 deletion examples/plain-auth.coffee
Expand Up @@ -2,7 +2,7 @@
Retrieve starred gist with plain authenticate Retrieve starred gist with plain authenticate
### ###


Gisty = require('./../lib/gisty').Gisty Gisty = require('./../lib/gisty')


gist = new Gisty login: 'login', password: 'password' gist = new Gisty login: 'login', password: 'password'


Expand Down
2 changes: 1 addition & 1 deletion examples/public-access.coffee
Expand Up @@ -2,7 +2,7 @@
Retrieve public gist Retrieve public gist
### ###


Gisty = require('./../lib/gisty').Gisty Gisty = require('./../lib/gisty')


gist = new Gisty username: 'meritt' gist = new Gisty username: 'meritt'


Expand Down
2 changes: 1 addition & 1 deletion examples/token-auth.coffee
Expand Up @@ -2,7 +2,7 @@
Retrieve all users gist with OAuth2 access_token Retrieve all users gist with OAuth2 access_token
### ###


Gisty = require('./../lib/gisty').Gisty Gisty = require('./../lib/gisty')


gist = new Gisty token: 'OAuth2 access_token', username: 'meritt' gist = new Gisty token: 'OAuth2 access_token', username: 'meritt'


Expand Down
2 changes: 1 addition & 1 deletion src/gisty.coffee
Expand Up @@ -56,4 +56,4 @@ class Gisty


fn.call self, error, body fn.call self, error, body


exports.Gisty = Gisty module.exports = Gisty

0 comments on commit 81d5b4b

Please sign in to comment.