diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-11 22:19:42 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-11 22:22:22 -0800 |
commit | a063217a2198769edcc287e662e5c4691c0ae4d0 (patch) | |
tree | 88d7f922736146bb9ccb44d0af465a77cd23ba06 /lib/upr.rb | |
parent | 64033a89a8b409a3b71382d8b328aa239caad428 (diff) | |
download | upr-a063217a2198769edcc287e662e5c4691c0ae4d0.tar.gz |
split upr/status out to its own file
This prevent double loads that seem to be caused by "config.gem" in Rails from messing up due to the Struct re-definition. Of course we'll still warn when the VERSION constant is redefined so people will hopefully see a reason to avoid idiotic double loads...
Diffstat (limited to 'lib/upr.rb')
-rw-r--r-- | lib/upr.rb | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,15 +1,12 @@ # -*- encoding: binary -*- require 'moneta' +require 'upr/status' module Upr # Upr version number VERSION = '0.1.0' - # this is what we store in the Moneta-backed monitor - class Status < Struct.new(:seen, :length) - end - autoload :Monitor, 'upr/monitor' autoload :InputWrapper, 'upr/input_wrapper' |