From 2ff127bcd344f5c5021f08bdede5c110085fcff4 Mon Sep 17 00:00:00 2001 From: freakphp Date: Sat, 28 Feb 2015 13:42:36 +0100 Subject: [PATCH] Fixes #39 - switched to colorize gem --- cap-ec2.gemspec | 2 +- lib/cap-ec2/capistrano.rb | 2 +- lib/cap-ec2/status-table.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cap-ec2.gemspec b/cap-ec2.gemspec index 975dd90..94033d9 100644 --- a/cap-ec2.gemspec +++ b/cap-ec2.gemspec @@ -24,5 +24,5 @@ Gem::Specification.new do |spec| spec.add_dependency "aws-sdk-v1" spec.add_dependency "capistrano", ">= 3.0" spec.add_dependency "terminal-table" - spec.add_dependency "colored" + spec.add_dependency "colorize" end diff --git a/lib/cap-ec2/capistrano.rb b/lib/cap-ec2/capistrano.rb index 1e83f50..103be4b 100644 --- a/lib/cap-ec2/capistrano.rb +++ b/lib/cap-ec2/capistrano.rb @@ -1,7 +1,7 @@ require 'capistrano/setup' require 'capistrano/configuration' require 'aws-sdk-v1' -require 'colored' +require 'colorize' require 'terminal-table' require 'yaml' require_relative 'utils' diff --git a/lib/cap-ec2/status-table.rb b/lib/cap-ec2/status-table.rb index 0d6e9ea..6f338f7 100644 --- a/lib/cap-ec2/status-table.rb +++ b/lib/cap-ec2/status-table.rb @@ -50,7 +50,7 @@ def instance_to_row(instance, index) private - (Colored::COLORS.keys + Colored::EXTRAS.keys).each do |format| + (String.colors + String.modes).each do |format| define_method(format) do |string| if $stdout.tty? string.__send__(format)