Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor project. New tests. Add key import/removal and raw functions. #15

Merged
merged 8 commits into from
Oct 11, 2015

Conversation

STRML
Copy link
Contributor

@STRML STRML commented Jun 15, 2015

This is more or less a rework of the project structure to streamline it and easily allow for the addition of new functions.

New functions added:

gpg.verifySignature()
gpg.importKey()
gpg.importKeyFromFile()
gpg.removeKey()

Also added generic functions call() and callStreaming() so users can easily call gpg with any params they wish.

@STRML
Copy link
Contributor Author

STRML commented Oct 6, 2015

@drudge Hope you have a chance to merge this.

@drudge
Copy link
Owner

drudge commented Oct 7, 2015

@freewil any thoughts on this?

@freewil
Copy link
Collaborator

freewil commented Oct 7, 2015

sorry I haven't had time to review this, will do so this weekend

buffersLength += buf.length;
fs.readFile(fileName, function(readErr, str) {
if (readErr) return fn(readErr);
GPG.importKey(str, args, fn);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for consistency with the rest of the file this should be self.importKey

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix this, thanks!

@freewil
Copy link
Collaborator

freewil commented Oct 11, 2015

This looks great, just fix that one little issue and I'll merge it! 🎉

freewil added a commit that referenced this pull request Oct 11, 2015
Refactor project. New tests. Add key import/removal and raw functions.
@freewil freewil merged commit aba4004 into drudge:master Oct 11, 2015
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.

3 participants