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

Made tty? public (as documented in code) #40

Merged
merged 2 commits into from
Mar 28, 2020
Merged

Conversation

ankane
Copy link
Contributor

@ankane ankane commented Mar 26, 2020

Describe the change

Makes the Spinner#tty? method public.

Why are we doing this?

This allows users to check if the spinner will produce output and write their own output if not.

Benefits

See above.

Drawbacks

It's an extra method to maintain.

Requirements

Put an X between brackets on each line if you have done the item:
[x] Tests written & passing locally?
[x] Code style checked?
[x] Rebased with master branch?
[x] Documentation updated?

spec/unit/tty_spec.rb Outdated Show resolved Hide resolved
spec/unit/tty_spec.rb Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Mar 26, 2020

Coverage Status

Coverage decreased (-0.3%) to 97.898% when pulling b176926 on ankane:tty into fe28df1 on piotrmurach:master.

@piotrmurach piotrmurach merged commit 58b8654 into piotrmurach:master Mar 28, 2020
@piotrmurach
Copy link
Owner

Thanks ❤️

@ankane
Copy link
Contributor Author

ankane commented Mar 28, 2020

Thanks Piotr!

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.

4 participants