Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@moorereason
Copy link
Collaborator

This commit removes the "helpers" package by moving functions from the
package into the other packages that use them.

CheckPayloadSignature() and ExtractParamater() are simply moved to the
"hook" package. I'm not sure of the usefulness of having these
functions exported, but I left them allow for now.

ValuesToMap() is moved to the "main" webhook package and renamed to
valuesToMap().

Tests were moved into the "hook" package since we only test
ExtractParameter() right now.

This commit closes #12.

This commit removes the "helpers" package by moving functions from the
package into the other packages that use them.

CheckPayloadSignature() and ExtractParamater() are simply moved to the
"hook" package.  I'm not sure of the usefulness of having these
functions exported, but I left them allow for now.

ValuesToMap() is moved to the "main" webhook package and renamed to
valuesToMap().

Tests were moved into the "hook" package since we only test
ExtractParameter() right now.

This commit closes adnanh#12.
adnanh added a commit that referenced this pull request Mar 20, 2015
Refactor to remove helpers package
@adnanh adnanh merged commit 84ce6f2 into adnanh:master Mar 20, 2015
@adnanh
Copy link
Owner

adnanh commented Mar 20, 2015

Great job! Thanks :-)

@moorereason moorereason deleted the refactor-helpers branch March 20, 2015 22:04
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.

Recommendation: Drop the helpers package

2 participants