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

RFR: Refactor #84

Merged
merged 15 commits into from
Jun 10, 2015
Merged

RFR: Refactor #84

merged 15 commits into from
Jun 10, 2015

Conversation

creationix
Copy link
Member

Refactor the internals a lot to be more modular and saner logic.

@lduboeuf
Copy link

lduboeuf commented Jun 6, 2015

@creationix oh i see, sorry for the confusion

@creationix creationix changed the title WIP: Refactor RFR: Refactor Jun 9, 2015
local match, hash = db.match(author, pname, version)

if not match then
error("No such "
Copy link
Member

Choose a reason for hiding this comment

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

string.format here?

Copy link
Member Author

Choose a reason for hiding this comment

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

There isn't much static content, it would look like:

error(string.format("No such %s: %s%s",
  version and "version" or "package",
  name,
  version and '@' .. version or ''))

I'll change it if you prefer string.format here.

Copy link
Member

Choose a reason for hiding this comment

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

ah... yeah, that isn't much change. nm

@rphillips
Copy link
Member

minor nit, we should probably add the luvit/luvi license to the source files as well.

@creationix creationix mentioned this pull request Jun 10, 2015
@rphillips
Copy link
Member

+1... i do think the license headers would be good to add as well

@creationix creationix force-pushed the refactor branch 2 times, most recently from f77df9b to 121759f Compare June 10, 2015 23:13
creationix added a commit that referenced this pull request Jun 10, 2015
@creationix creationix merged commit a8b3418 into master Jun 10, 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