lib/regurgitator.rb in regurgitator-0.7.0 vs lib/regurgitator.rb in regurgitator-0.8.0

- old
+ new

@@ -11,18 +11,10 @@ # # All modules meant for use in applications are autoload-ed, # so just "require 'regurgitator'" in your code. module Regurgitator - autoload :ServerSettings, 'regurgitator/server_settings' - autoload :Domain, 'regurgitator/domain' - autoload :Device, 'regurgitator/device' - autoload :FileInfo, 'regurgitator/file_info' - autoload :Endpoint, 'regurgitator/endpoint' - autoload :FileRequest, 'regurgitator/file_request' - autoload :Local, 'regurgitator/local' - autoload :LocalFile, 'regurgitator/local_file' autoload :ListKeys, 'regurgitator/list_keys' # Rack middlewares/apps autoload :DomainPath, 'regurgitator/domain_path' autoload :DomainHost, 'regurgitator/domain_host' autoload :OneDomain, 'regurgitator/one_domain' @@ -34,6 +26,12 @@ NoDevices = Class.new(Error) # :nodoc: # raised by FileRequest when the HTTP status code # is outside of (200-299, 304) BadResponse = Class.new(Error) # :nodoc: + + def self.now # :nodoc: + Process.clock_gettime(Process::CLOCK_MONOTONIC) + end end + +require_relative 'regurgitator/local'