Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Oct 21, 2011
  1. Freeze the job arguments, to ensure that they are not updated. It is …

    authored
    …problematic for resque-batched-job, as it encodes job args in JSON to know how many jobs remain in the batch. Updating the job args changes the JSON string and thus resque-batched-job doesn't remove the current job from the batch. If one wants to update an argument before queueing it to another job, then one must call the `dup` method. The new object is a clone and is unfrozen. The origin job arguments stored in Resque::Job remains the same.
Commits on Oct 14, 2011
  1. Mock the Redis connection with the "mock_redis" gem. It allows Resque…

    authored
    … plugins not to rely on a real Redis server.
Commits on Oct 8, 2011
  1. @justinweiss
  2. @justinweiss

    Merge branch 'yaauie-run-limit'

    justinweiss authored
    Conflicts:
    	test/resque_unit_test.rb
Commits on Oct 4, 2011
  1. `Resque::Scheduler.enqueue_with_timestamp` must give the name of the …

    authored
    …worker class, not the class itself, like in `Resque.enqueue_to`. I don't know why there is no problem in tests, but when I try to use enqueue_in or enqueue_at in my project, this object
    
    ```ruby
    {"class"=>MyWorker, "args"=>[{"_id"=>"u123", "email"=>"lol@cats.com"}], "timestamp"=>2011-10-04 12:35:01 +0200}
    ```
    
    is encoded into:
    
    ```json
    {"class":{"inheritable_attributes":{},"queue":"my_queue","args":[{"_id":"u123","email":"lol@cats.com"}],"timestamp":"2011-10-04T12:35:01+02:00"}
    ```
    
    instead of:
    
    ```json
    {"class":"MyWorker","args":[{"_id":"u123","email":"lol@cats.com"}],"timestamp":"2011-10-04T12:37:42+02:00"}
    ```
Commits on Sep 28, 2011
  1. @justinweiss

    Merge pull request #20 from yaauie/enqueue-to

    justinweiss authored
    Add support and tests for enqueue_to
  2. @justinweiss

    Merge pull request #19 from yaauie/before-enqueue-hooks

    justinweiss authored
    add support for before_enqueue hooks
  3. @yaauie

    refactor run\! and run_for\! to share code\; add support and tests fo…

    yaauie authored
    …r explicit and implicit limit in run_for\!
  4. @yaauie
  5. @yaauie
Commits on Jun 28, 2011
  1. @justinweiss

    0.4.0 release

    justinweiss authored
  2. @justinweiss

    Decode the encoded job data on an element-by-element basis.

    justinweiss authored
    We can't have encode() and decode() automatically delegate arrays, because then data doesn't round-trip through encode/decode. For example, decode(encode([1, 2])) returns [nil, nil], which doesn't make sense.
  3. @justinweiss

    helpers.rb should be a carbon copy of Resque's helpers.rb.

    justinweiss authored
    Otherwise, we might run into weird inconsistencies between resque_unit and Resque.
  4. @justinweiss

    Pulled argument normalization out of an inner loop

    justinweiss authored
    Probably not a big deal, but I'd bet json encoding/decoding is expensive.
  5. @justinweiss

    Merge pull request #16 from autohaus24/master

    justinweiss authored
    Add more redis methods (peek, list_range), implemented encode/decode redis simulation
  6. assert_queued(job, *args) also work with arguments as symbols

    Mateusz Juraszek authored
Commits on May 12, 2011
  1. fix problem with class value after encoding

    Mateusz Juraszek authored
  2. add proper redis encode/decode simulation, add 'all' method

    Mateusz Juraszek authored
Commits on May 10, 2011
  1. add peek and list_range methods

    Mateusz Juraszek authored
Commits on May 4, 2011
  1. @justinweiss

    Added name to license

    justinweiss authored
Commits on Apr 26, 2011
  1. @justinweiss

    Bumped version

    justinweiss authored
  2. @justinweiss

    Merged pull request #14 from change/master.

    justinweiss authored
    JSON gem version
  3. @mdimas

    update json dependency

    mdimas authored
Commits on Apr 11, 2011
  1. @justinweiss

    Bumped version

    justinweiss authored
Commits on Apr 8, 2011
  1. @chingor13
Commits on Apr 7, 2011
  1. @chingor13

    add assertion assert_job_created that asserts that a job class was en…

    chingor13 authored
    …queued in a specific queue. Add a mock for Resque::Job.create to queue a job in a specific queue.
Commits on Feb 25, 2011
  1. @justinweiss

    Bump version

    justinweiss authored
Commits on Feb 23, 2011
  1. @tekin

    Make sure the enqueue method returns something that evaluates to true…

    tekin authored
    … to properly mimic resque
  2. @tekin
Commits on Feb 14, 2011
  1. @justinweiss

    bump Gemfile.lock

    justinweiss authored
  2. @justinweiss

    v0.3.4 release

    justinweiss authored
  3. @justinweiss
Commits on Feb 5, 2011
  1. Optional hooks support. "after_enqueue", "before", "around", "after",…

    Nicolas Fouché authored
    … and "failed". Yeah, all of them.
Something went wrong with that request. Please try again.