ku1ik / rainbow

Ruby gem for colorizing printed text on ANSI terminals
MIT License
813 stars 68 forks source link

Rainbow incompatible with vendor/bundle and rubocop styling gems #102

Closed luke-hill closed 2 years ago

luke-hill commented 4 years ago

When installing rainbow (From other gems), to vendor bundle. It is copying down the extra files, such as rubocop config e.t.c.

Because these files are copied, they are being lazily loaded in (I'm using a custom rubocop config), when using other gems, there is a conflict in TargetRubyVersion.

This then causes the entire build to crash with something like

error: RuboCop found unsupported Ruby version 2.1 in `TargetRubyVersion` parameter (in vendor/bundle/ruby/2.7.0/gems/rainbow-3.0.0/.rubocop.yml). 2.1-compatible analysis was dropped after version 0.58.
Supported versions: 2.4, 2.5, 2.6, 2.7
rake aborted!

Solution: Remove all non-necessary files in the gemspec. This is a blocking change meaning we've had to uninstall rubocop for now.

olleolleolle commented 4 years ago

The issue has been fixed, but not yet released.

olleolleolle commented 2 years ago

https://rubygems.org/gems/rainbow/versions/3.1.0 has been released, so I will close this issue. Thanks for the patience!