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

Rubocop v0.16.0 incompatible with rainbow gem v2.0.0 #762

Closed
jhx opened this issue Jan 25, 2014 · 2 comments · Fixed by #763
Closed

Rubocop v0.16.0 incompatible with rainbow gem v2.0.0 #762

jhx opened this issue Jan 25, 2014 · 2 comments · Fixed by #763

Comments

@jhx
Copy link

jhx commented Jan 25, 2014

Rubocop v0.16.0 will produce the following error when using v2.0.0 of the rainbow gem. Using v1.99.2 does not produce this error.

undefined method `color' for ".":String

Rainbow changed the default behavior in v2.0.0; we may need to add the following to rubocop:

require 'rainbow/ext/string'

Alternatively, we can adjust the method call. Refer to Rainbow README.

I cannot use v0.17.0, which has a revised gemspec to lock down the rainbow version due to the json gem dependency hell between chef and rubocop.

@bbatsov
Copy link
Collaborator

bbatsov commented Jan 25, 2014

You can use chef from master. It's compatible with json 1.8.

@yujinakayama
Copy link
Collaborator

About Rainbow, I've handled the same issue in my Transpec. I think it can be applied to RuboCop.

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 a pull request may close this issue.

3 participants