Project

derring-do

0.0
No commit activity in last 3 years
No release in over 3 years
Derring-Do is a very eager progress monitor for console Ruby applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.1.0
 Project Readme

Derring-Do

Derring-Do is a silly progress monitor that you can add to your console Ruby applications.

It will emit "encouraging" words periodically, to indicate progress is being made on a job. If the campaign (or job) is given a target, the progress will also include updates saying specifically how far the campaign has gone toward that target.

Usage

require 'derring-do'

# untargetted campaigns (with no specifical goal in mind)

derring do |campaign|
  1000.times do
    campaign.tally_ho!
    sleep 0.2
  end
end

# targetted campaigns (aiming for a particular goal)

derring do |campaign|
  campaign.target = 2000
  1000.times do
    campaign.tally_ho! 2
    sleep 0.2
  end
end

Installation

gem install derring-do

Caveats

I wrote this mostly to teach myself how to use rspec. The idea occurred to me while mostly asleep, so while it may not be actually useful, it is certainly whimsical.

License

This library is placed in the public domain by the author, Jamis Buck. Do with it what you will. Please prefer good over evil.