lib/rack/throttle.rb in rack-throttle-0.4.0 vs lib/rack/throttle.rb in rack-throttle-0.4.1
- old
+ new
@@ -1,13 +1,14 @@
require 'rack'
module Rack
module Throttle
- autoload :Limiter, 'rack/throttle/limiter'
- autoload :Interval, 'rack/throttle/interval'
- autoload :TimeWindow, 'rack/throttle/time_window'
- autoload :Daily, 'rack/throttle/daily'
- autoload :Hourly, 'rack/throttle/hourly'
- autoload :Minute, 'rack/throttle/minute'
- autoload :VERSION, 'rack/throttle/version'
+ autoload :Limiter, ::File.expand_path(::File.dirname(__FILE__)) + '/throttle/limiter'
+ autoload :Interval, ::File.expand_path(::File.dirname(__FILE__)) + '/throttle/interval'
+ autoload :TimeWindow, ::File.expand_path(::File.dirname(__FILE__)) + '/throttle/time_window'
+ autoload :Daily, ::File.expand_path(::File.dirname(__FILE__)) + '/throttle/daily'
+ autoload :Hourly, ::File.expand_path(::File.dirname(__FILE__)) + '/throttle/hourly'
+ autoload :Minute, ::File.expand_path(::File.dirname(__FILE__)) + '/throttle/minute'
+ autoload :Second, ::File.expand_path(::File.dirname(__FILE__)) + '/throttle/second'
+ autoload :VERSION, ::File.expand_path(::File.dirname(__FILE__)) + '/throttle/version'
end
end