Permalink
Browse files

Made dictionary progress bar even prettiererer! No real reason it exi…

…sts.
  • Loading branch information...
1 parent 99583db commit a7d1594e7f6189ee8dc60d9fcec2503d0fea8271 Jake McGinty committed Mar 5, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/twitter-sentiment/parser/text_mood.rb
View
8 lib/twitter-sentiment/parser/text_mood.rb
@@ -39,14 +39,14 @@ def initialize file
else
raise ArgumentError, "Expected String or Symbol input for file"
end
- pb = ProgressBar.new "Dictionary", 3#steps
- pb.format = Paint["[info] ", [50,50,50]] + "%-#{@title_width}s %3d%% %s %s"
+ pb = ProgressBar.new "Dictionary", 2 # steps
+ pb.format = Paint["[info] ", [50,50,50]] + "%-#{@title_width}s %3d%% "+Paint["%s",:blue]
generate_dictionary File.open(file, "r")
pb.inc
generate_opposites
pb.inc
- pb.inc
- puts ""
+ # done
+ pb.finish
end
# Generate Dictionary from file of proper syntax

0 comments on commit a7d1594

Please sign in to comment.