Skip to content

Latest commit

 

History

History
125 lines (85 loc) · 2.33 KB

CHANGES.md

File metadata and controls

125 lines (85 loc) · 2.33 KB

1.2.1

  • Go back to Celluloid 0.15.2 since it's not production ready

1.2

  • Update to use Celluloid 0.16

1.1

  • Delegate to Celluloid's exception handler

1.0.5

  • Move to_prepare callback in Railtie out of initializer

1.0.4

  • Fix superclass for testing/inline module

1.0.3

  • Track instantiated queues through Celluloid registry
  • Clear Celluloid registry on every Rails request in Development

1.0.2

  • Update Celluloid dependency to 0.15.1

1.0.1

  • Fix how workers are defined on the Job so that jobs can be safely subclassed

1.0.0.beta3

  • Constrain workers when creating a queue to raise more helpful exceptions

1.0.0.beta2

  • Add workers method to job to specify number of Celluloid pool workers

1.0.0.beta

  • Removed the need for a configuration initializer
  • include SuckerPunch::Job instead of SuckerPunch::Worker
  • Use standard Ruby job class instantiation to perform a job (ie. LogJob.new.async.perform)

0.5.1

  • Add SuckerPunch.logger
  • Add SuckerPunch.logger=
  • Set SuckerPunch logger to Rails.logger within a Rails application

0.5

  • SuckerPunch::Queue#size now returns the number of messages enqueued
  • SuckerPunch::Queue#workers now returns the number of workers in the queue
  • Update Celluloid dependency

0.4.1

  • Remove size option when defining a queue, prefer workers
  • Update Celluloid dependency

0.4

  • Prefer workers stat method over size
  • Update config to use workers instead of size

old config:

# config/initializers/sucker_punch.rb

SuckerPunch.config do
  queue name: :log_queue, worker: LogWorker, size: 10
end

new config:

# config/initializers/sucker_punch.rb

SuckerPunch.config do
  queue name: :log_queue, worker: LogWorker, workers: 10
end
  • Add testing library to stub out workers (see testing section in README)

0.3.1

  • Fix location of inline testing library

spec/spec_helper.rb

require 'sucker_punch/testing/inline'
SuckerPunch::Queue[:log_queue].async.perform("login") # => SYNCHRONOUS

0.3

  • Now includes a testing library that will run all jobs synchronously.

spec/spec_helper.rb

require 'sucker_punch/testing'
SuckerPunch::Queue[:log_queue].async.perform("login") # => SYNCHRONOUS