Moderizing dev environment.

- Use rake-deveiate.
 - Fixes for README
 - Add History, break out Manifest
 - Remove keyword expansion constant REVISION
 - Use current Configurability APIs instead of the (now ancient) methods
 - Whitespace changes

FossilOrigin-Name: a778fb275af99a238d9d2311cc601c58adf80e28bd68a37e06acdfb6efeb018d
This commit is contained in:
Mahlon E. Smith 2023-03-21 18:21:32 +00:00
parent 07c927e13a
commit 2682000224
18 changed files with 210 additions and 227 deletions

View file

@ -21,19 +21,17 @@ class Symphony::Metronome::ScheduledEvent
config_key :metronome
# Configure defaults.
#
CONFIG_DEFAULTS = {
:db => 'sqlite:///tmp/metronome.db',
:splay => 0
}
### Configurability API.
###
configurability do
class << self
##
# A Sequel-style DB connection URI.
attr_reader :db
setting :db, default: 'sqlite:///tmp/metronome.db'
##
# Adjust recurring intervals by a random window.
attr_reader :splay
setting :splay, default: 0
end
@ -62,7 +60,6 @@ class Symphony::Metronome::ScheduledEvent
### Delete any rows that are invalid expressions.
###
def self::load
now = Time.now
events = SortedSet.new
# Force reset the DB handle.