Remove deps on ActiveSupport and add proper deps for Sidekiq.

Remove deps on ActiveSupport and add proper deps for Sidekiq.

diff --git a/lib/mini_scheduler.rb b/lib/mini_scheduler.rb
index 61494b0..7e9005e 100644
--- a/lib/mini_scheduler.rb
+++ b/lib/mini_scheduler.rb
@@ -3,7 +3,6 @@ require 'mini_scheduler/schedule'
 require 'mini_scheduler/schedule_info'
 require 'mini_scheduler/manager'
 require 'mini_scheduler/distributed_mutex'
-
 require 'sidekiq/exception_handler'
 
 module MiniScheduler
diff --git a/lib/mini_scheduler/manager.rb b/lib/mini_scheduler/manager.rb
index 76e1049..e496c17 100644
--- a/lib/mini_scheduler/manager.rb
+++ b/lib/mini_scheduler/manager.rb
@@ -10,7 +10,8 @@ module MiniScheduler
         @manager = manager
         @reschedule_orphans_thread = Thread.new do
           while !@stopped
-            sleep 1.minute
+            sleep 60
+
             @mutex.synchronize do
               reschedule_orphans
             end
diff --git a/lib/mini_scheduler/schedule_info.rb b/lib/mini_scheduler/schedule_info.rb
index b2d5cd9..9e12875 100644
--- a/lib/mini_scheduler/schedule_info.rb
+++ b/lib/mini_scheduler/schedule_info.rb
@@ -33,7 +33,7 @@ module MiniScheduler
     # this happens automatically after if fire by the manager.
     def valid?
       return false unless @next_run
-      (!@prev_run && @next_run < Time.now.to_i + 5.minutes) || valid_every? || valid_daily?
+      (!@prev_run && @next_run < Time.now.to_i + 300) || valid_every? || valid_daily?
     end
 
     def valid_every?
@@ -59,7 +59,7 @@ module MiniScheduler
       end
 
       if !valid?
-        @next_run = Time.now.to_i + 5.minutes * Random.rand
+        @next_run = Time.now.to_i + 300 * Random.rand
       end
     end
 
diff --git a/mini_scheduler.gemspec b/mini_scheduler.gemspec
index 88da750..b1b6100 100644
--- a/mini_scheduler.gemspec
+++ b/mini_scheduler.gemspec
@@ -22,10 +22,11 @@ Gem::Specification.new do |spec|
   end
   spec.require_paths = ["lib"]
 
+  spec.add_dependency "sidekiq"
+
   spec.add_development_dependency "pg", ">= 1.0"
   spec.add_development_dependency "activesupport", ">= 5.2"
   spec.add_development_dependency "rspec"
   spec.add_development_dependency "mocha"
   spec.add_development_dependency "mock_redis"
-  spec.add_development_dependency "sidekiq"
 end

GitHub sha: da4b8706