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

Replacing colored by colorize #111

Closed
wants to merge 1 commit into from
Closed

Replacing colored by colorize #111

wants to merge 1 commit into from

Conversation

osiro
Copy link

@osiro osiro commented Jan 8, 2015

Hey guys,

Looks like colored doesn't play nice when we've got any other gem depending on colorize.

It blows up with the following error:

.../gems/colored-1.2/lib/colored.rb:70:in `colorize': no implicit conversion of Hash into String (TypeError)

Considering colored is not being maintained (or at least it looks like it's not), I would suggest using colorize instead.

This pull also fixes https://travis-ci.org/mattheworiordan/capybara-screenshot/jobs/46012046

@mattheworiordan
Copy link
Owner

Thanks for this, however you need to consider #93 first. I actually think, given how little colored or colorize does, that the best approach would be to simply create some helper methods to add colour and remove this dependency. What do you think?

@osiro
Copy link
Author

osiro commented Jan 16, 2015

Hum.... true, hadn't seen #93 before opening this pull...

Give me a few days and I can make it works without colorize or colored.

@mattheworiordan
Copy link
Owner

Great, thanks

Regards,
Matthew

Sent from my phone

On 16 Jan 2015, at 02:17, Vinicius Osiro [email protected] wrote:

Hum.... true, hadn't seen #93 before opening this pull...

Give me a few days and I can make it works without colorize or colored.


Reply to this email directly or view it on GitHub.

@mattheworiordan
Copy link
Owner

Hey @osiro, seems someone else has this same issue, see #115. Did you make any progress on this?

@fbernier
Copy link
Contributor

Hitting the same issue here when updating capybara-screenshot because of one of our bundled gem.

@mattheworiordan
Copy link
Owner

@fbernier I'm pretty flat out right now, what to give it a go doing a PR to fix it? Given the limited color functionality, it should be easy enough to add custom color methods and remove the dependency altogether I suspect.

@mattheworiordan
Copy link
Owner

This is resolved with #118

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.

3 participants