lib/progress_bar/components/bar.rb in ruby-progressbar-1.0.2 vs lib/progress_bar/components/bar.rb in ruby-progressbar-1.1.0

- old
+ new

@@ -14,12 +14,10 @@ self.progress_mark = options[:progress_mark] || DEFAULT_PROGRESS_MARK end def to_s(options = {:format => :standard}) completed_string = send(:"#{options[:format]}_complete_string") - empty_string = ' ' * (length - completed_string.length) - - "#{completed_string}#{empty_string}" + completed_string.ljust(length, ' ') end def integrated_percentage_complete_string return standard_complete_string if completed_length < 5