Skip to content
This repository was archived by the owner on Aug 24, 2018. It is now read-only.

Fix specs on stable - #27

Merged
as-cii merged 5 commits into
masterfrom
wl-fix-specs
Apr 20, 2016
Merged

as-cii merged 5 commits into
masterfrom
wl-fix-specs

Conversation

@winstliu

Copy link
Copy Markdown
Contributor

Atom 1.7.1 contains atom.autoUpdater, but the update manager references atom.autoUpdater.onUpdateError(), which was only added in Atom 1.8.0.

This may fix a potential bug in the About package that's shipped with Atom 1.7.1, but I'm not too sure.

In addition I've fixed a typo regarding update-available.

/cc @as-cii

@as-cii

as-cii commented Apr 19, 2016

Copy link
Copy Markdown
Contributor

This may fix a potential bug in the About package that's shipped with Atom 1.7.1, but I'm not too sure.

Are you referring to #24? If so, I think it could potentially be related to the typo you have fixed (good catch there! 👍) Other than that, however, I believe we should be good on stable because we're using about 1.4.2 which doesn't contain the onError improvement.

Anyways, this looks good to me after we address one minor comment in specs. 💚

Comment thread spec/about-spec.coffee Outdated

# TODO: remove when this function is in beta / stable
return unless atom.autoUpdater?.getState?
return unless atom.autoUpdater?.onUpdateError?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need to disable all the specs? Can we avoid using only the onUpdateError method when it's not there?

@winstliu

Copy link
Copy Markdown
Contributor Author

@as-cii I've attempted to do that, but that makes the specs fail again.

@as-cii

as-cii commented Apr 19, 2016

Copy link
Copy Markdown
Contributor

I've attempted to do that, but that makes the specs fail again.

I think that's happening because we need to change back this line. After doing that, we might also want to avoid subscribing to onDidError unless that function is present in atom.autoUpdater. 👍

@winstliu

Copy link
Copy Markdown
Contributor Author

💚 😄

@as-cii
as-cii merged commit 934ee11 into master Apr 20, 2016
@as-cii
as-cii deleted the wl-fix-specs branch April 20, 2016 07:31
@as-cii

as-cii commented Apr 20, 2016

Copy link
Copy Markdown
Contributor

Thanks, @50Wliu! ⚡

@as-cii

as-cii commented Apr 20, 2016

Copy link
Copy Markdown
Contributor

Published this on 1.5.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants