Comparing version 2.1.2 to 2.1.3
@@ -0,1 +1,12 @@ | ||
v2.1.3 | ||
====== | ||
* Hubot now has a web interface and supports connect middleware, examples in httpd.coffee - atmos / tombell | ||
module.exports = (robot) -> | ||
robot.router.get "/hubot/version", (req, res) -> | ||
res.end robot.version | ||
* Add a catchAll callback that handles responses that match nothing else - titanous / ejfinnerman | ||
module.exports = (robot) -> | ||
robot.catchAll (msg) -> | ||
router.get "/hubot/version", (req, res) -> | ||
v2.1.2 | ||
@@ -2,0 +13,0 @@ ====== |
{ | ||
"name": "hubot", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"author": "hubot", | ||
@@ -21,3 +21,4 @@ "keywords": "github hubot campfire bot", | ||
"scoped-http-client": "0.9.6", | ||
"log": "1.2.0" | ||
"log": "1.2.0", | ||
"connect": "1.8.5" | ||
}, | ||
@@ -24,0 +25,0 @@ |
@@ -52,2 +52,19 @@ # Hubot | ||
## HTTP Listener | ||
Hubot has a HTTP listener which listens on the port specified by the `PORT` | ||
environment variable. | ||
You can specify routes to listen on in your scripts by using the `router` | ||
property on `robot`. | ||
```coffeescript | ||
module.exports = (robot) -> | ||
robot.router.get "/hubot/version", (req, res) -> | ||
res.end robot.version | ||
``` | ||
There are functions for GET, POST, PUT and DELETE, which all take a route and | ||
callback function that accepts a request and a response. | ||
## Testing hubot locally | ||
@@ -54,0 +71,0 @@ |
@@ -18,3 +18,3 @@ { | ||
"dependencies": { | ||
"hubot": "2.1.2", | ||
"hubot": "2.1.3", | ||
"hubot-scripts": ">=2.0.4", | ||
@@ -21,0 +21,0 @@ "optparse": "1.0.3" |
@@ -16,2 +16,19 @@ # Hubot | ||
## HTTP Listener | ||
Hubot has a HTTP listener which listens on the port specified by the `PORT` | ||
environment variable. | ||
You can specify routes to listen on in your scripts by using the `router` | ||
property on `robot`. | ||
```coffeescript | ||
module.exports = (robot) -> | ||
robot.router.get "/hubot/version", (req, res) -> | ||
res.end robot.version | ||
``` | ||
There are functions for GET, POST, PUT and DELETE, which all take a route and | ||
callback function that accepts a request and a response. | ||
### Redis | ||
@@ -18,0 +35,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68968
40
82
5
+ Addedconnect@1.8.5
+ Addedcall-bind@1.0.7(transitive)
+ Addedconnect@1.8.5(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedformidable@1.0.17(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedmime@4.0.4(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedside-channel@1.0.6(transitive)