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

Confirm addon is present in node_modules. #36

Merged
merged 1 commit into from
Dec 23, 2014

Conversation

rwjblue
Copy link
Contributor

@rwjblue rwjblue commented Dec 23, 2014

Addresses #35.

@@ -110,7 +110,7 @@ def check_ember_cli_version!
end

def check_addon!
unless dev_dependencies["ember-cli-rails-addon"] == ADDON_VERSION
unless addon_present
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be addon_present?, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, updated!

@rwz
Copy link
Collaborator

rwz commented Dec 23, 2014

👍

rwz added a commit that referenced this pull request Dec 23, 2014
Confirm addon is present in node_modules.
@rwz rwz merged commit 7163a8e into thoughtbot:master Dec 23, 2014
@rwjblue rwjblue deleted the confirm-addon-present branch December 23, 2014 04:58
@rondale-sc
Copy link
Collaborator

Small point of clarification... I'm assuming this navigates through package.json files through all deps making sure it's all good. This approach does not account for linked packages, so if you have a link to the correct version (on disk) but the package.json is wrong you'll get an error (even though it is correctly using the right version).

Not a problem, and definitely the right behavior. But I ran into it just a few minutes ago, and it caused me some head scratching.

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.

None yet

3 participants