ku1ik/rainbow

Rainbow incompatible with vendor/bundle and rubocop styling gems

luke-hill opened this issue · 2 comments

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.

The issue has been fixed, but not yet released.

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