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

Add support for the --no-color option. #32

Merged
merged 2 commits into from
Jun 30, 2014
Merged

Conversation

samsymons
Copy link
Contributor

The colored gem was replaced with colorize. It has a very similar API but comes with a few extra methods to remove or check colors.

The Tabber class has had an options hash added to it, to make further additions easier.

This partially addresses issue #28.

The `colored` gem was replaced with `colorize`. It has a very
similar API but comes with a few extra methods to remove or check
colors.

The Tabber class has had an options hash added to it, to make
further additions easier.
Synx::Tabber.increase(3)
expect(Kernel).to_not receive(:puts)
Synx::Tabber.puts("Hello, world.")
end

it "should not print colors if no_color is true" do
Copy link
Member

Choose a reason for hiding this comment

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

Is there a test for the opposite case, where it prints colors when no_color is false? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@marklarr There isn't, but I'll add one right now!

@marklarr
Copy link
Member

This is great. Thanks for the PR!

@ayanonagon
Copy link
Contributor

:octocat:

@marklarr
Copy link
Member

Thanks @samsymons!

ayanonagon added a commit that referenced this pull request Jun 30, 2014
Add support for the --no-color option.
@ayanonagon ayanonagon merged commit 7e487bf into venmo:master Jun 30, 2014
@ayanonagon
Copy link
Contributor

Thanks @samsymons! This is awesome. 🎈

@samsymons
Copy link
Contributor Author

Thanks for the superb gem, happy to be able to contribute!

@neonichu
Copy link

neonichu commented Jul 1, 2014

👍

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