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

Teaches updateChecker about dev builds #3578

Merged
merged 1 commit into from
Mar 22, 2015
Merged

Teaches updateChecker about dev builds #3578

merged 1 commit into from
Mar 22, 2015

Conversation

twokul
Copy link
Contributor

@twokul twokul commented Mar 20, 2015

fixes #3494

@@ -57,6 +81,7 @@ describe('Update Checker', function() {

return function() {
updateChecker.versionConfig = versionConfig;
debugger
Copy link
Contributor

Choose a reason for hiding this comment

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

Forgotten debugger

@stefanpenner
Copy link
Contributor

Awesome

@@ -56,8 +56,16 @@ UpdateChecker.prototype.doCheck = function() {
}.bind(this)).catch(function() {
return this.checkNPM();
}.bind(this)).then(function(version) {
// match postfix SHA in dev version
var isDevBuild = !!this.localVersion.match(/\b[0-9a-f]{5,40}\b/);
Copy link
Member

Choose a reason for hiding this comment

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

I think I'd rather make lib/utilities/ember-cli-version.js be the only thing that has to be aware of this. Can we make that script export another function (like isDevelopment()) then just consume it here?

I'm mostly concerned with having the concept of what exactly goes into a dev build version number be encapsulated in a single place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rwjblue makes sense to me. I'll make a change on the flught

@twokul
Copy link
Contributor Author

twokul commented Mar 22, 2015

@stefanpenner @rwjblue I think this is ready for another look

rwjblue added a commit that referenced this pull request Mar 22, 2015
Teaches updateChecker about dev builds
@rwjblue rwjblue merged commit fc30c71 into ember-cli:master Mar 22, 2015
@rwjblue
Copy link
Member

rwjblue commented Mar 22, 2015

Thanks!

@twokul twokul deleted the dev-build-update-checker branch March 22, 2015 13:43
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.

updateChecker does not take into account dev builds with v0.2.0-sha-checksum
4 participants