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.
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
Solution: Remove all non-necessary files in the gemspec. This is a blocking change meaning we've had to uninstall rubocop for now.