Commit Graph

793 Commits

Author SHA1 Message Date
Javier Cervantes 956e757e8e Updating ssl configuration keys and tests 2014-04-24 10:14:02 -05:00
Javier Cervantes e5400341d0 Making tests green 2014-04-24 09:41:51 -05:00
Javier Cervantes 40b3db1dce Changing how ssl is configured
Expected configuration:

{
  ssl: {
    key: "/path/to/key",
    cert: "/path/to/cert"
  }
}

If ssl is false, use plain HTTP. If it's an empty object (the default)
use our self-signed certs. If it's set up like above, use the provided
certs.
2014-04-23 17:56:42 -05:00
Javier Cervantes 8f746f1d27 Renaming https to generic node 2014-04-23 17:55:42 -05:00
Javier Cervantes cc3dac9442 Adding optional ssl param in API
By default http is used for api, but you can pass a param to use ssl.

This is the same behaviour that we have currently in robot.
2014-04-23 17:02:25 -05:00
Andrew Stewart e66c1145d5 Simplify Master#api 2014-04-21 16:36:47 -07:00
edgarsilva 801d1a5d49 Fixed tests, change incorrect 4 for '4' 2014-04-21 18:27:07 -05:00
edgarsilva 938c11872c Bumped version to 0.13.3 2014-04-21 18:15:30 -05:00
Andrew Stewart 050b20c945 Merge pull request #170 from hybridgroup/bugfix-disconnect-not-working
Fixes bug with robot not halting, which caused connections, adaptors and...
2014-04-21 16:12:37 -07:00
edgarsilva 37af9c8e62 Remove circular reference test for master. 2014-04-21 18:03:33 -05:00
edgarsilva 283b05b08a Fixes bug with robot not halting, which caused connections, adaptors and devices to not disconnect. 2014-04-21 17:46:02 -05:00
Andrew Stewart c34a1ee28c Pull in latest Robeaux 2014-04-21 14:20:44 -07:00
Andrew Stewart e2a0131b3b Bump 'async' dependency to 0.7.0 2014-04-21 12:09:01 -07:00
Ron Evans 9b086c4502 Merge pull request #169 from hybridgroup/clean-up-package-json
Clean up package.json
2014-04-21 11:51:47 -07:00
Andrew Stewart 16a180de7d Clean up package.json
Reformats and cleans up package.json per these docs:

- https://www.npmjs.org/doc/json.html
- http://package.json.nodejitsu.com/#
2014-04-21 11:03:38 -07:00
edgarsilva 855988372f Bumped version to 0.13.2 2014-04-17 13:13:28 -05:00
Andrew Stewart d8152852a0 Correctly kill process 2014-04-14 15:11:07 -07:00
Andrew Stewart fcd771cadc Provide more indication where API is listening 2014-04-14 11:27:48 -07:00
Andrew Stewart c5428d89ab Allow Content-Type header to be set for CORS 2014-04-11 19:23:13 -07:00
Andrew Stewart 9e781a2ea1 Add basic tests for API server and routes 2014-04-11 12:33:32 -07:00
Ron Evans 93ec358f9b Merge pull request #163 from hybridgroup/replace-socket-io-with-server-sent-events
Replace Express.IO/Socket.IO with Express/SSEs
2014-04-09 10:20:31 -07:00
Andrew Stewart 1c56b5942f Implement Server-Sent-Events for device events 2014-04-08 13:21:03 -07:00
Andrew Stewart cf31cfa7b9 Switch from Express-IO to plain Express 2014-04-08 11:52:53 -07:00
Andrew Stewart 4b409f7777 Add CORS param for API config 2014-04-08 10:58:58 -07:00
deadprogram 430ffafe81 Update to 0.13.1 2014-04-06 11:09:47 -07:00
Ron Evans 3a1674dcef Merge pull request #162 from hybridgroup/cylon-april-README
update README april
2014-04-03 16:59:53 -07:00
xixebombilla be2de6de44 update README april 2014-04-03 17:57:09 -06:00
Ron Evans c5f09133b0 Merge pull request #161 from hybridgroup/api-basic-auth
Add HTTP Basic Auth support to API
2014-04-03 16:17:03 -07:00
Andrew Stewart c81740e339 Add basic auth support to API 2014-04-03 16:04:11 -07:00
Andrew Stewart 89a5bbae2f Support passing auth hash to API server 2014-04-03 15:49:13 -07:00
Ron Evans 0b3b298596 Merge pull request #160 from hybridgroup/api-https
Implement HTTPS API with self-signed cert
2014-04-03 15:14:21 -07:00
Andrew Stewart 29b7db0de8 Add support for manually specifying cert/key files 2014-04-03 15:03:21 -07:00
Andrew Stewart ea022d3880 Implement HTTPS API with self-signed cert
Switches API to serve all requests over HTTPS, using a self-signed SSL
certificate.
2014-04-03 14:32:56 -07:00
Andrew Stewart 34324dabd5 Clean up API logic 2014-04-03 12:28:27 -07:00
Adrian Zankich 49b2e91daf Prep for release 2014-04-02 16:11:48 -07:00
Andrew Stewart a80d14d527 Lock Node versions to those newer than 0.10.20 2014-04-02 12:34:23 -07:00
Ron Evans e664d6c5b9 Merge pull request #156 from hybridgroup/init-devices-err-failover
Add error handler for devices that fail to initialize.
2014-04-01 17:36:06 -07:00
edgarsilva de360ba2b3 Add error handler for devices that fail to initialize.
Do not start work if devices fail to initialize and throw err insted.
2014-04-01 17:53:34 -06:00
Ron Evans 6d36709207 Merge pull request #154 from hybridgroup/global-utils
Add Utils to global.Cylon namespace, add bootstrap
2014-04-01 12:35:36 -07:00
Andrew Stewart 1cffa6067e Add Utils to global.Cylon namespace, add bootstrap
This commit moves Utils to live in the global Cylon namespace, so they can be
accessed in test suites. This is necessary because Mocha, when setting up for
tests, will override our #after method, making TDR not work if any robots
contain a #after call in their work block.

To fix this, in test setup you can call global.Cylon.Utils.bootstrap();
which will re-setup our globals.
2014-04-01 12:31:13 -07:00
Andrew Stewart 2563e62de4 Catch MODULE_NOT_FOUND errors, throw others 2014-04-01 10:30:14 -07:00
Andrew Stewart a92e51157f Bump version to 0.12.0 2014-03-28 13:51:51 -07:00
Andrew Stewart fe931d0b60 Add make task for releasing new versions 2014-03-28 12:29:33 -07:00
Andrew Stewart a98a5de44f Missing 'var' keyword in annotated example 2014-03-28 10:42:20 -07:00
Ron Evans 51cef5a94f Merge pull request #148 from hybridgroup/remove-commands
Remove CLI tooling from Cylon
2014-03-27 14:50:20 -07:00
Andrew Stewart 89a5cf1cc0 Remove comma breaking package.json 2014-03-27 14:48:08 -07:00
Andrew Stewart 2d11e75434 Remove CLI tooling from Cylon
It now lives in hybridgroup/cylon-cli.
2014-03-27 14:45:36 -07:00
Ron Evans da07a5644f Merge pull request #147 from hybridgroup/markdown-examples
Convert Literate CoffeeScript examples to Markdown + JS
2014-03-27 09:34:11 -07:00
Andrew Stewart 688df7a419 Convert remaining .litcoffee examples 2014-03-27 09:31:56 -07:00
Andrew Stewart 479388e7ad Additional WIP on converting literate coffeescript examples to markdown+js 2014-03-26 17:06:26 -07:00