
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
console_progress_bar
Advanced tools
You can use this gem on rake tasks, migrations or irb scripts for watching to transaction progress
Add this line to your application's Gemfile:
gem 'console_progress_bar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install console_progress_bar
For counter usage:
pbar = ConsoleProgressBar::ProgressBar.new
counter = pbar.counter
100.times do
sleep(0.1)
counter.increase
end
# advanced usage of counter object
# total parameter is counts of your total transactions
# you can show elapsed time by setting with_elapsed_time parameter to true
# you can show calculated time remaining by setting with_remaining_time parameter to true
# increament_size parameter sets to increament size
counter = pbar.counter(:total => 100, :with_elapsed_time => true, :with_remaining_time => true, :increament_size => 5)
For animation usage:
pbar = ConsoleProgressBar::ProgressBar.new
animator = pbar.animator
100.times do
sleep(0.1)
animator.animate
end
# advanced usage of animator object
# total parameter is counts of your total transactions
# you can show elapsed time by setting with_elapsed_time parameter to true
# you can show calculated time remaining by setting with_remaining_time parameter to true
# increament_size parameter sets to increament size
animator = pbar.animator(:total => 100, :with_elapsed_time => true, :with_remaining_time => true, :increament_size => 5)
For progressbar usage:
pbar = ConsoleProgressBar::ProgressBar.new
bar = pbar.bar
100.times do
sleep(0.1)
bar.draw
end
# advanced usage of bar object
# total parameter is counts of your total transactions
# you can show elapsed time by setting with_elapsed_time parameter to true
# you can show calculated time remaining by setting with_remaining_time parameter to true
# increament_size parameter sets to increament size
# width parameter is width of shown progress bar
bar = pbar.bar(:total => 100, :with_elapsed_time => true, :with_remaining_time => true, :increament_size => 5, :width => 40)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that console_progress_bar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.