From d6daf4d39f9e4f56ea53ea7e3a8f29ea50b9829a Mon Sep 17 00:00:00 2001 From: Juan Vasquez Date: Sun, 22 Sep 2024 00:04:12 -0600 Subject: [PATCH] Fix colorize missing call Pull Request #120 removed Colorize in favor of Rainbow, `bundle_report/ruby_version_compatibility.rb` was using Colorize and we need to update it to use Rainbow --- CHANGELOG.md | 1 + lib/next_rails/bundle_report/ruby_version_compatibility.rb | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09a3023..c041a1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * Your changes/patches go here. +- [CHORE: Update compatibility for Ruby versions to use Rainbow](https://github.com/fastruby/next_rails/pull/125) - [FEATURE: Support compatibility for Ruby versions](https://github.com/fastruby/next_rails/pull/116) - [CHORE: Remove GPL licensed dependency Colorize and replace it with Rainbow] diff --git a/lib/next_rails/bundle_report/ruby_version_compatibility.rb b/lib/next_rails/bundle_report/ruby_version_compatibility.rb index 7fa8f74..40ca2cf 100644 --- a/lib/next_rails/bundle_report/ruby_version_compatibility.rb +++ b/lib/next_rails/bundle_report/ruby_version_compatibility.rb @@ -1,4 +1,6 @@ -require "colorize" +require "rainbow/refinement" + +using Rainbow class NextRails::BundleReport::RubyVersionCompatibility MINIMAL_VERSION = 1.0