lib/octospy/parser.rb in octospy-0.1.1 vs lib/octospy/parser.rb in octospy-0.2.0

- old
+ new

@@ -45,22 +45,22 @@ hash.merge! self.send(parsing_method) build(hash) end def build(hash) - header = "#{hash[:nick].colorize_for_irc.bold} #{colorize_to hash[:status]}" + header = "#{hash[:nick].to_s.colorize_for_irc.bold} #{colorize_to hash[:status]}" if hash[:repository] && !hash[:repository].empty? header = "(#{hash[:repository]}) #{header}" end if hash[:title] && !hash[:title].empty? header = "#{header} #{hash[:title]}" end if hash[:link] && !hash[:link].empty? - header = "#{header} - #{hash[:link].shorten.colorize_for_irc.blue}" + header = "#{header} - #{hash[:link].shorten.to_s.colorize_for_irc.blue}" end body = if hash[:body].length > 20 body_footer = hash[:body][-3..-1] body = hash[:body][0...15] @@ -111,9 +111,9 @@ } color_table[:default] end def colorize_to(string) - string.colorize_for_irc.send(behavior_color string).to_s + string.to_s.colorize_for_irc.send(behavior_color string).to_s end end end