forked from jfelchner/ruby-progressbar
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'allow-minimalist-bar-formats' into development
* allow-minimalist-bar-formats: Update the formatting to make sure the %b and %i formatting molecules can coexist with each other Now that we can use the %b and %i flags, we can create a mirrored bar simply by using a format string of '%i%b' and therefore this extra code is no longer necessary Allow %i to be used display the incomplete space of the bar Allow the %b molecule to be used to display the bar only without incomplete space Update the %B format test to be more reasonable Make the %w molecule only return the bar with the percentage instead of including empty space Remove the `length` argument when calling `ProgressBar::Components::Bar#to_s` and instead set the attribute Rename `ProgressBar::Formatter#bar` to `#complete_bar` Change the %b (bar with percentage) format molecule to %w Swap the meaning of the %b and %B molecules * commit 'ee8c0e9704a0d0da93c84a3d4eeb109de986469f': Update the formatting to make sure the %b and %i formatting molecules can coexist with each other Now that we can use the %b and %i flags, we can create a mirrored bar simply by using a format string of '%i%b' and therefore this extra code is no longer necessary Allow %i to be used display the incomplete space of the bar Allow the %b molecule to be used to display the bar only without incomplete space Update the %B format test to be more reasonable Make the %w molecule only return the bar with the percentage instead of including empty space Remove the `length` argument when calling `ProgressBar::Components::Bar#to_s` and instead set the attribute Rename `ProgressBar::Formatter#bar` to `#complete_bar` Change the %b (bar with percentage) format molecule to %w Swap the meaning of the %b and %B molecules
- Loading branch information
Showing
7 changed files
with
84 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters