Skip to content
Browse files

Coffeescript syntax is better.

  • Loading branch information...
1 parent c4c895e commit d1b2ed07a049798b95d650e3a25ffb4def264dc7 @tupton tupton committed Feb 14, 2012
Showing with 9 additions and 9 deletions.
  1. +1 −1 build.sh
  2. +5 −5 facebook.coffee
  3. +3 −3 twitter.coffee
View
2 build.sh
@@ -6,4 +6,4 @@ coffee -c *.coffee
npm install -g ender
mkdir build
cd build
-ender build domready reqwest
+ender build domready reqwest winston
View
10 facebook.coffee
@@ -10,7 +10,7 @@ class Collector
constructor: (@store) ->
update: (since, limit) ->
- winston.debug('Updating Facebook items', { since: since, limit: limit })
+ winston.debug 'Updating Facebook items', { since: since, limit: limit }
token = getToken()
if token
@_getItems token, since, limit, (items) =>
@@ -34,7 +34,7 @@ class Collector
retval = []
for item in items
- #winston.debug('Facebook item', item)
+ #winston.debug 'Facebook item', item
link = null
switch item.type
when "status", "link"
@@ -53,9 +53,9 @@ class Collector
})
# TODO
#else
- #winston.debug('Unknown Facebook item', item)
- winston.debug('Storing '+retval.length+' facebook items')
- winston.verbose('Facebook items', retval)
+ #winston.debug 'Unknown Facebook item', item
+ winston.debug 'Storing '+retval.length+' facebook items'
+ winston.verbose 'Facebook items', retval
retval
exports.Collector = Collector
View
6 twitter.coffee
@@ -11,7 +11,7 @@ class Collector
constructor: (@store) ->
update: (since, limit) ->
- winston.debug('Updating Twitter items', { since: since, limit: limit })
+ winston.debug 'Updating Twitter items', { since: since, limit: limit }
token_file = getFileContents(TOKEN_FILE)
consumer_file = getFileContents(CONSUMER_FILE)
if token_file and consumer_file
@@ -43,8 +43,8 @@ class Collector
message: item.text
})
- winston.debug('Storing ' + items.length + ' Twitter items')
- winston.verbose('Twitter items', items)
+ winston.debug 'Storing ' + items.length + ' Twitter items'
+ winston.verbose 'Twitter items', items
@store.addItems(items)
return

0 comments on commit d1b2ed0

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