Skip to content

Commit

Permalink
Merge pull request #86 from selma-finance/change_colorizing_gem
Browse files Browse the repository at this point in the history
Change colorize gem to rainbow, reason: License
  • Loading branch information
jorgemanrubia authored Jun 6, 2023
2 parents 7ba5c4e + a95ee0d commit 06486ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ PATH
remote: .
specs:
console1984 (0.1.26)
colorize
parser
rainbow

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -83,7 +83,6 @@ GEM
ast (2.4.2)
benchmark-ips (2.9.2)
builder (3.2.4)
colorize (0.8.1)
concurrent-ruby (1.1.9)
crass (1.0.6)
erubi (1.10.0)
Expand Down
2 changes: 1 addition & 1 deletion console1984.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |spec|

spec.files = Dir.glob(['{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md', 'test/fixtures/**/*'], File::FNM_DOTMATCH)

spec.add_dependency 'colorize'
spec.add_dependency 'rainbow'
spec.add_dependency 'parser'

spec.add_development_dependency 'rails', '>= 7.0'
Expand Down
6 changes: 3 additions & 3 deletions lib/console1984/input_output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ def show_commands
Commands:
#{COMMANDS.collect { |command, help_line| "* #{ColorizedString.new(command.to_s).light_blue}: #{help_line}" }.join("\n")}
#{COMMANDS.collect { |command, help_line| "* #{Rainbow(command.to_s).blue}: #{help_line}" }.join("\n")}
TXT
end

def show_warning(message)
puts ColorizedString.new("\n#{message}\n").yellow
puts Rainbow("\n#{message}\n").yellow
end

def ask_for_value(message)
puts ColorizedString.new("#{message}").green
puts Rainbow("#{message}").green
reason = $stdin.gets.strip until reason.present?
reason
end
Expand Down
2 changes: 1 addition & 1 deletion lib/console1984/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def require_dependencies
Kernel.silence_warnings do
require 'parser/current'
end
require 'colorized_string'
require 'rainbow'

# Explicit lazy loading because it depends on +parser+, which we want to only load
# in console sessions.
Expand Down

0 comments on commit 06486ed

Please sign in to comment.