Commit Graph

933 Commits

Author SHA1 Message Date
Andrew Stewart e27aa46f07 Move test support file into test/support dir 2014-05-24 10:34:09 -07:00
Andrew Stewart 774171db71 Make 'test' default task, remove comments 2014-05-24 10:19:52 -07:00
Ron Evans 66d76b8aa3 Merge pull request #179 from hybridgroup/remove-node-namespace
Remove node-namespace and class cruft
2014-05-24 18:09:24 +01:00
deadprogram b5c1a54971 Add istanbul back for code coverage reporting 2014-05-24 10:06:39 -07:00
deadprogram ebdac95a7d Resolve merge conflicts 2014-05-24 10:02:48 -07:00
deadprogram 69cc76b6a6 Ability to pass the name of module to use for an adaptor. Specifically for case where a module contains multiple adaptors 2014-05-23 18:42:29 -07:00
Adrian Zankich c851809bc2 Add coverage badge 2014-05-21 19:46:10 -07:00
Adrian Zankich 9c392121a1 Fix travis.yml 2014-05-21 19:36:45 -07:00
Adrian Zankich 41b5e576ca Add CodeClimate coverage 2014-05-21 19:35:09 -07:00
Andrew Stewart 34e562207d Tidy up Cylon specs, add specs for exports 2014-05-13 19:48:50 -07:00
Andrew Stewart c22ef95239 Remove Logger from global namespace 2014-05-13 19:44:40 -07:00
Andrew Stewart 43a9351921 Convert Cylon.Master to a plain JS object
Acts exactly the same with much, much less code complexity.

This also introduces a pattern for providing core modules to external libraries.

Whereas previously Cylon modules were able to rely on Cylon.Adaptor or
Cylon.Driver being present in the namespace (due to being required in
./lib/cylon), they will now need to require Cylon first, like this:

    var Cylon = require('cylon');

    var Driver = Cylon.Driver,
        Adaptor = Cylon.Adaptor,
        DigitalPin = Cylon.IO.DigitalPin;
2014-05-13 19:20:54 -07:00
Andrew Stewart 90e6ab5564 Merge branch 'master' into remove-node-namespace
* master:
  Remove Logger usage from examples
2014-05-13 19:07:45 -07:00
Andrew Stewart 544e34dc78 Remove Logger usage from examples 2014-05-13 19:06:40 -07:00
Andrew Stewart 1e44224660 Refactor Logger 2014-05-13 19:05:01 -07:00
Andrew Stewart e8d7c8ebb7 Remove node-namespace from package.json 2014-05-13 18:33:40 -07:00
Andrew Stewart c99ce6571f Remove node-namespace from DigitalPin 2014-05-13 18:31:25 -07:00
Andrew Stewart 2cca04873d Remove node-namespace from Utils 2014-05-13 18:25:31 -07:00
Andrew Stewart 17a0a5d08f Remove node-namespace from Config 2014-05-13 18:14:36 -07:00
Andrew Stewart f20ae55bf6 Remove node-namespace from Robot 2014-05-08 08:57:20 -07:00
Andrew Stewart a3974f38b7 Remove node-namespace from API 2014-05-07 15:19:23 -07:00
Andrew Stewart 7bab3ff65f Remove node-namespace from Connection 2014-05-07 08:38:06 -07:00
Andrew Stewart f8e546a6e0 Remove node-namespace from Device 2014-05-06 19:18:13 -07:00
Andrew Stewart d46de63379 Remove node-namespace from Test Drivers/Adaptors 2014-05-06 18:56:13 -07:00
Andrew Stewart c8cb7f0e40 Remove node-namespace from Driver 2014-05-06 18:24:43 -07:00
Andrew Stewart 637bce0e6d Remove node-namespace from Adaptor 2014-05-06 18:19:56 -07:00
Ron Evans 2958f148f3 Merge pull request #176 from hybridgroup/remove-class-cruft-and-namespace
Remove class cruft and namespace from Basestar
2014-05-04 02:34:14 -07:00
Andrew Stewart f9d39151af Simplify testing harness 2014-04-27 15:28:08 -07:00
Ron Evans 5eb7bcdc0e Merge pull request #174 from hybridgroup/readme-updates
README updates
2014-04-26 21:06:53 -07:00
Andrew Stewart 89084ae0f5 Update CONTRIBUTORS 2014-04-24 17:17:23 -06:00
Andrew Stewart a9ae09bdce Remove Basestar from global scope 2014-04-24 16:31:58 -06:00
Andrew Stewart dc09be6bcc Remove class cruft and namespace from Basestar 2014-04-24 13:43:00 -06:00
Andrew Stewart bcd9cb84ec Clean up spec 2014-04-24 10:55:16 -06:00
Andrew Stewart 31dfd4b6c9 Merge pull request #173 from hybridgroup/295-optional-ssl
Adding optional ssl param in API
2014-04-24 10:38:25 -06:00
Javier Cervantes 3caeb47b3a Removing unused requires 2014-04-24 11:25:56 -05:00
Javier Cervantes f05025ba68 Removing wrong conditional in api 2014-04-24 11:25:45 -05:00
Javier Cervantes 394691a8f2 Refactoring api optional ssl logic 2014-04-24 11:18:20 -05:00
Andrew Stewart f9300afdeb README content updates 2014-04-24 09:54:29 -06:00
Javier Cervantes 224287744a Adding test for ssl disabled 2014-04-24 10:14:16 -05:00
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
Andrew Stewart c159bc466a Use the 'official' Markdown file extension
http://daringfireball.net/linked/2014/01/08/markdown-extension
2014-04-23 21:49:11 -06: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