lib/distribute_reads.rb in distribute_reads-0.4.0 vs lib/distribute_reads.rb in distribute_reads-0.5.0
- old
+ new
@@ -1,14 +1,13 @@
# dependencies
require "active_support"
require "makara"
# modules
-require "distribute_reads/appropriate_pool"
-require "distribute_reads/cache_store"
-require "distribute_reads/global_methods"
-require "distribute_reads/version"
+require_relative "distribute_reads/appropriate_pool"
+require_relative "distribute_reads/global_methods"
+require_relative "distribute_reads/version"
module DistributeReads
class Error < StandardError; end
class TooMuchLag < Error; end
class NoReplicasAvailable < Error; end
@@ -162,8 +161,8 @@
Makara::Proxy.prepend DistributeReads::AppropriatePool
Object.include DistributeReads::GlobalMethods
Object.send :private, :distribute_reads
ActiveSupport.on_load(:active_job) do
- require "distribute_reads/job_methods"
+ require_relative "distribute_reads/job_methods"
include DistributeReads::JobMethods
end