Fixes "uninitialized constant Celluloid::SupervisionGroup" error on sidekiq start:
* require 'celluloid' instead of 'celluloid/current' in lib/sidetiq.rb
* Supervisor inherits from Celluloid::Supervision::Container instead
of Celluloid::SupervisionGroup and uses new supervise method signature
More details about the changes in Celluloid can be found here:
https://github.com/celluloid/celluloid/wiki/DEPRECATION-WARNING
Fixes tests to work with Sidekiq 3.5.0:
* Use created_at instead of enqueued_at it the tests:
> Set a created_at attribute when jobs are created, set enqueued_at only
when they go into a queue. Fixes invalid latency calculations with
scheduled jobs. [#2373, mrsimo]
https://github.com/mperham/sidekiq/blob/master/Changes.md#340
* Set ENV['RACK_ENV'] = 'test' in test/helper.rb to fix tests to fix tests
to work with Sidekiq 3.4.2 update:
> Fix CSRF vulnerability in Web UI, thanks to Egor Homakov for reporting. [#2422]
https://github.com/mperham/sidekiq/blob/master/Changes.md#342https://github.com/mperham/sidekiq/pull/2422/filesfixes#140
Using plain threads in Sidekiq's Celluloid-based actor
model is a little bit like riding a motorcycle without
a helmet, so let's try to fit in a bit better.