Skip to content

API version. Fixes for Windows#32

Open
CxRes wants to merge 4 commits intouber:masterfrom
CxRes:master
Open

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

Conversation

@CxRes
Copy link

@CxRes CxRes commented Mar 12, 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.
Added a callback for `from`, which takes file as an argument. This allows the user to tailor the search string according to the filename.
@CLAassistant
Copy link

CLAassistant commented Jun 27, 2019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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