Commit Graph

1289 Commits

Author SHA1 Message Date
deadprogram 7415daed0c Add minutes time functions, for a complete range 2015-09-01 06:43:14 -07:00
deadprogram 012578f012 Convenience functions for milliseconds and microseconds 2015-08-31 21:34:41 -07:00
Ron Evans bea67b2e5e Merge pull request #305 from hybridgroup/refactor/logger
Simplify logger
2015-08-31 21:19:22 -07:00
Andrew Stewart 67f0386bb5 prevent callback(err) from messing with shutdown 2015-07-21 10:31:52 -07:00
Andrew Stewart 2e0b92f1bc small readme updates 2015-07-15 10:04:51 -07:00
Andrew Stewart c7bb3dde8c streamline index file 2015-07-15 09:54:57 -07:00
Andrew Stewart 3a2766bcd9 Stop using `lib` fn, breaks browserify 2015-07-14 18:30:21 -07:00
Andrew Stewart 3451932bde Remove accidentally-left-behind comments 2015-07-14 11:32:54 -07:00
Andrew Stewart 8a582fcf8d _.arity call no longer necessary 2015-07-13 14:08:21 -07:00
Andrew Stewart 843e0a3217 Simplify logger
This commit adds a simplified logging system, with two primary methods:

- `Logger#log(String) :: void` (for normal logging)
- `Logger#debug(String) :: void` (for debug logging)

This helps dramatically simplify logging infrastructure, as well as
enabling simpler toggling of log modes.

The configuration values for the Logger have also been updated:

- `logger :: Function` - function to log output to (both normal + debug)
- `silent :: Boolean` - whether to log default normal messages or not (`--silent` flag)
- `debug  :: Boolean` - whether or not to log debug output (`--debug` flag)

Additionally, the following CLI flags are supported re: logging:

- `--silent` disables normal logging (will override all other settings)
- `--debug` enables debug logging

Deprecation notices have been added for old log methods, with first-run
messages to this effect.

This change should have negligible impact on end-users, with minor
inconvenience for library developers, as they need to switch their
logging function calls over.

Logging configuration is still possible via both
`Cylon.Config.update(Object)`, and directly calling
`Cylon.Logger.setup(Object)`.
2015-07-13 14:05:12 -07:00
Andrew Stewart f14ac10c95 Add addional edge case handling for snake_casing
Closes https://github.com/hybridgroup/robeaux/issues/19.
2015-07-03 10:37:08 -07:00
Andrew Stewart c1bb466d5b Bump version to "1.1.0" 2015-07-01 15:23:14 -07:00
Andrew Stewart a3c2b0544d Correct CI script for codeclimate binary name change 2015-06-30 11:27:17 -07:00
Andrew Stewart e8f109508b Replace tomdoc with jsdoc 2015-06-29 10:21:25 -07:00
Ron Evans 4b374440d9 Merge pull request #301 from hybridgroup/refactor/mcp
Refactor MCP
2015-06-29 08:36:03 -07:00
Andrew Stewart def91ffe53 Split apart MCP, API manager, exports 2015-06-29 08:25:07 -07:00
Ron Evans 455c06ab91 Merge pull request #303 from hybridgroup/refactor/robot-initialization
Consolidate Robot initialization
2015-06-29 08:24:14 -07:00
Andrew Stewart ceac0df8dd Consolidate Robot initialization to a single fn
Additionally, extracts validation of connections being present out to
the validator logic.
2015-06-26 10:31:23 -07:00
Andrew Stewart 1726cdb5f1 Remove vestigial attributes on Robot 2015-06-26 08:17:30 -07:00
Andrew Stewart 8fbe9b9c4d Automate auto-binding of prototype methods 2015-06-25 12:33:13 -07:00
Edgar O Silva fd564f61f8 Merge pull request #296 from hybridgroup/remove/async
Remove dependency on 'async'
2015-06-24 13:30:43 -05:00
Ron Evans 8403d89e9f Merge pull request #299 from hybridgroup/refactor/config
Refactor Config
2015-06-22 21:18:36 -05:00
Andrew Stewart b1c91b7419 Logger should subscribe to updates, not be told what to do 2015-06-22 19:08:15 -07:00
Andrew Stewart 8ac8d7de94 Update config to act as subscribable data store 2015-06-22 18:57:34 -07:00
Edgar O Silva 93357d5012 Merge pull request #298 from hybridgroup/remove/license-preamble
Remove unnecessary comments at start of files
2015-06-22 15:16:28 -05:00
Andrew Stewart 0b48851885 Remove unnecessary comments at start of files 2015-06-22 09:16:43 -07:00
Andrew Stewart 0719fa203c Remove dependency on 'async'
This commit removes the last current dependency of Cylon, 'async'.

In it's place, simplified versions of the methods used have been added
so lib/utils/helpers.js.
2015-06-18 15:40:33 -07:00
Andrew Stewart f3efa83643 Correct issue with Robot halting 2015-06-18 14:56:39 -07:00
Ron Evans 1be64381a9 Merge pull request #295 from hybridgroup/refactor/validations
Extract out Robot option validation
2015-06-17 13:37:52 -07:00
Andrew Stewart 10982e4003 Add additional validations 2015-06-17 09:03:26 -07:00
Andrew Stewart 4238385be4 Extract out Robot param validation into new file 2015-06-17 09:03:26 -07:00
Andrew Stewart ad2db2d459 Update ESLint, use local for make tasks 2015-06-11 12:16:43 -07:00
Ron Evans 6978826f1b Merge pull request #285 from hybridgroup/add/monkey-patch-removal
Add method for removing monkey-patched methods
2015-06-11 08:55:48 -07:00
Andrew Stewart 9c67d9ba02 Add method for removing monkey-patched methods 2015-06-11 08:40:15 -07:00
Andrew Stewart 681e197ed9 Stop giving robots random names, use inc. counter 2015-06-09 11:50:50 -07:00
Andrew Stewart 952a25ac2c Add specs for initializer 2015-06-09 08:05:37 -07:00
Andrew Stewart 8adacef282 s/source/lib for loading files for specs 2015-06-09 07:21:03 -07:00
Andrew Stewart 68ab6ad441 Remove leftover comment 2015-06-09 07:08:46 -07:00
Andrew Stewart 6cccc41aff Begin JSDoc-ing core 2015-06-08 22:57:49 -07:00
deadprogram 80a09d55da Merge branch 'docs/contributing' 2015-06-05 16:28:38 -07:00
nathan 74b92776b0 add relay back to readme 2015-06-05 16:27:15 -07:00
deadprogram b1d84d042f Correct errors in JSON 2015-06-05 10:42:49 -07:00
deadprogram 0255b7ff0f Based on io.js contribution guidelines 2015-06-05 10:39:01 -07:00
deadprogram 7581dc3c64 WIP on possible new format for README 2015-06-05 10:35:33 -07:00
Ron Evans f3cbbe8ad7 Merge pull request #293 from pdehaan/patch-1
Update license property to valid SPDX license
2015-05-21 09:04:49 -07:00
Peter deHaan 760bb87d12 Update license property to valid SPDX license
specifying the type and URL is deprecated:

https://docs.npmjs.com/files/package.json#license
http://npm1k.org/
2015-05-20 23:06:28 -07:00
Andrew Stewart 3f4140bd08 Add util to verify constructor calls use 'new' 2015-05-12 18:47:27 -07:00
deadprogram 8fe7a500cf Remove user contributed driver 2015-05-09 13:38:47 -07:00
deadprogram 9c6e79ef15 Add Parrot Bebop to README 2015-05-07 07:15:26 -07:00
deadprogram 958239c6f1 Add WeMo to list of user-contributed platforms 2015-04-27 17:32:45 -07:00