Skip to content

Commit

Permalink
Changed to can use source in timeline_format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jugyo committed Apr 10, 2009
1 parent cf201d3 commit bd5854b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/plugins/stdout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ def print_statuses(statuses, sort = true, time_format = nil)

time = "(#{Time.parse(s.created_at).strftime(time_format)})"
id = s.id
source =
case s.source
when />(.*?)</ then $1
when 'web' then 'web'
end

erbed_text = ERB.new(config.plugins.stdout.timeline_format).result(binding)
output_text << TermColor.parse(erbed_text) + "\n"
end
Expand Down

0 comments on commit bd5854b

Please sign in to comment.