Skip to content

API version. Fixes for Windows#31

Closed
CxRes wants to merge 3 commits intouber:masterfrom
CxRes:master
Closed

API version. Fixes for Windows#31
CxRes wants to merge 3 commits intouber:masterfrom
CxRes:master

Conversation

@CxRes
Copy link

@CxRes CxRes commented Mar 11, 2018

I have created an explicit API version and a separated the CLI code from it. This I intend as a step towards making uber-licence a more general purpose tool.

I have also fixed some bugs in the tests on Windows and improved upon the documentation.

CxRes added 3 commits March 10, 2018 14:01
+ Ensure test run by invoking them using node (as opposed to directly invoking the file path);
+ Allow the comparisons to be tolerant of different EOLs
temp listens to the exit event to run cleanupSync(). tape puts in a event listener on exit event before it that terminates the program preventing temp from cleaning up. To circumvent this we clean up all temp directories manually.

process.chdir() locks the directory on Windows preventing rimraf (invoked by temp.cleanupSync()) from deleting the directory. Thus, we no longer change the working directory, instead calculating the file path of temp files using path.join() and invoking the binary with the `cwd` option.
uber-licence can be invoked through a Javascript API that is equivalent to the CLI. Documentation has been updated to reflect these changes.

Improved Documentation - added a table explaining all options.
@CLAassistant
Copy link

CLAassistant commented Mar 11, 2018

CLA assistant check
All committers have signed the CLA.

@CxRes CxRes closed this Mar 12, 2018
@CxRes
Copy link
Author

CxRes commented Mar 12, 2018

Sorry about that, See #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants