-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
@@ -57,6 +81,7 @@ describe('Update Checker', function() { | |||
|
|||
return function() { | |||
updateChecker.versionConfig = versionConfig; | |||
debugger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgotten debugger
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/); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
@stefanpenner @rwjblue I think this is ready for another look |
Teaches updateChecker about dev builds
Thanks! |
fixes #3494