Skip to content

Commit

Permalink
Explicitly call HighLine.new instead of importing it
Browse files Browse the repository at this point in the history
  • Loading branch information
ridiculous committed Jan 23, 2016
1 parent d9d89dc commit fdcb0a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ require 'bundler/setup'
require 'pp'
require 'rspec'
require 'irb'
require 'object_tracker'
require_relative '../spec/spec_helper'
begin
require 'object_tracker'
rescue LoadError
end

IRB.start
2 changes: 1 addition & 1 deletion lib/drg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
require 'ostruct'
require 'set'
require 'bundler'
require 'highline'
require 'duck_puncher'
require 'highline/import'
require 'drg/version'

module DRG
Expand Down
2 changes: 1 addition & 1 deletion lib/drg/tasks/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Log
module_function

def log(msg = nil, color = :green)
say %Q( <%= color('#{msg}', :#{color}) %>)
HighLine.new.say %Q( <%= color('#{msg}', :#{color}) %>)
end
end
end
Expand Down

0 comments on commit fdcb0a7

Please sign in to comment.