From d019943711c426129dc209c63fba59a3ae1e9cbf Mon Sep 17 00:00:00 2001 From: Roger Oba Date: Sun, 12 Feb 2023 10:24:20 -0300 Subject: [PATCH 1/2] Replace 'colorize' gem with 'rainbow' for a lower friction licensing. --- Gemfile.lock | 3 +-- arkana.gemspec | 2 +- lib/arkana/helpers/ui.rb | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 328b170..24fd936 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,15 +2,14 @@ PATH remote: . specs: arkana (1.3.0) - colorize (~> 0.8) dotenv (~> 2.7) + rainbow (~> 3.1.1) yaml (~> 0.2) GEM remote: https://rubygems.org/ specs: ast (2.4.2) - colorize (0.8.1) diff-lcs (1.5.0) docile (1.4.0) dotenv (2.8.1) diff --git a/arkana.gemspec b/arkana.gemspec index d208f82..e6a7ea2 100644 --- a/arkana.gemspec +++ b/arkana.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| spec.executables = ["arkana"] spec.require_paths = ["lib"] - spec.add_dependency "colorize", "~> 0.8" + spec.add_dependency "rainbow", "~> 3.1.1" spec.add_dependency "dotenv", "~> 2.7" spec.add_dependency "yaml", "~> 0.2" diff --git a/lib/arkana/helpers/ui.rb b/lib/arkana/helpers/ui.rb index eed72ac..b3ce9c6 100644 --- a/lib/arkana/helpers/ui.rb +++ b/lib/arkana/helpers/ui.rb @@ -1,7 +1,8 @@ # frozen_string_literal: true require "logger" -require "colorize" +require "rainbow/refinement" +using Rainbow # Contains utilities related to display information to the user on the Terminal (the user's interface). module UI From 3a1f705dceeee8467f4139faa3a5be617f4e1b5f Mon Sep 17 00:00:00 2001 From: Roger Oba Date: Sun, 12 Feb 2023 10:28:08 -0300 Subject: [PATCH 2/2] Fix linter issue. --- arkana.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkana.gemspec b/arkana.gemspec index e6a7ea2..9317fc5 100644 --- a/arkana.gemspec +++ b/arkana.gemspec @@ -20,8 +20,8 @@ Gem::Specification.new do |spec| spec.executables = ["arkana"] spec.require_paths = ["lib"] - spec.add_dependency "rainbow", "~> 3.1.1" spec.add_dependency "dotenv", "~> 2.7" + spec.add_dependency "rainbow", "~> 3.1.1" spec.add_dependency "yaml", "~> 0.2" # For more information and examples about making a new gem, check out our guide at: https://bundler.io/guides/creating_gem.html