Skip to content

Commit

Permalink
rename catchall -> catchAll
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Jan 31, 2012
1 parent 270ca4d commit 1e96bd4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hubot",
"version": "2.1.2",
"version": "2.1.3",
"author": "hubot",
"keywords": "github hubot campfire bot",
"description": "A simple helpful Robot for your Company",
Expand Down
2 changes: 1 addition & 1 deletion src/robot.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Robot
# callback - A Function that is called with a Response object.
#
# Returns nothing.
catchall: (callback) ->
catchAll: (callback) ->
@listeners.push new Listener(@, ((msg) -> msg instanceof Robot.CatchAllMessage), ((msg) -> msg.message = msg.message.message; callback msg))

# Public: Passes the given message to any interested Listeners.
Expand Down
2 changes: 1 addition & 1 deletion src/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},

"dependencies": {
"hubot": "2.1.2",
"hubot": "2.1.3",
"hubot-scripts": ">=2.0.4",
"optparse": "1.0.3"
}
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ module.exports = (robot) ->
.get() (err, res, body) ->
msg.send body

robot.catchall (msg) ->
robot.catchAll (msg) ->
msg.send 'catch-all'

0 comments on commit 1e96bd4

Please sign in to comment.