Permalink
Switch branches/tags
Nothing to show
Commits on Oct 21, 2011
  1. Freeze the job arguments, to ensure that they are not updated. It is …

    nfo committed Oct 21, 2011
    …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…

    nfo committed Oct 14, 2011
    … plugins not to rely on a real Redis server.
Commits on Oct 8, 2011
  1. Merge branch 'yaauie-run-limit'

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

    nfo committed Oct 4, 2011
    …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. Merge pull request #20 from yaauie/enqueue-to

    justinweiss committed Sep 28, 2011
    Add support and tests for enqueue_to
  2. Merge pull request #19 from yaauie/before-enqueue-hooks

    justinweiss committed Sep 28, 2011
    add support for before_enqueue hooks
  3. refactor run\! and run_for\! to share code\; add support and tests fo…

    yaauie committed Sep 28, 2011
    …r explicit and implicit limit in run_for\!
Commits on Jun 28, 2011
  1. 0.4.0 release

    justinweiss committed Jun 28, 2011
  2. Decode the encoded job data on an element-by-element basis.

    justinweiss committed Jun 28, 2011
    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. helpers.rb should be a carbon copy of Resque's helpers.rb.

    justinweiss committed Jun 28, 2011
    Otherwise, we might run into weird inconsistencies between resque_unit and Resque.
  4. Pulled argument normalization out of an inner loop

    justinweiss committed Jun 28, 2011
    Probably not a big deal, but I'd bet json encoding/decoding is expensive.
  5. Merge pull request #16 from autohaus24/master

    justinweiss committed Jun 28, 2011
    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 committed Jun 28, 2011
Commits on May 12, 2011
  1. fix problem with class value after encoding

    Mateusz Juraszek committed May 12, 2011
  2. add proper redis encode/decode simulation, add 'all' method

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

    Mateusz Juraszek committed May 10, 2011
Commits on May 4, 2011
  1. Added name to license

    justinweiss committed May 4, 2011
Commits on Apr 26, 2011
  1. Bumped version

    justinweiss committed Apr 26, 2011
  2. Merged pull request #14 from change/master.

    justinweiss committed Apr 26, 2011
    JSON gem version
  3. update json dependency

    mdimas committed Apr 26, 2011
Commits on Apr 11, 2011
  1. Bumped version

    justinweiss committed Apr 11, 2011
Commits on Apr 8, 2011
Commits on Apr 7, 2011
  1. add assertion assert_job_created that asserts that a job class was en…

    chingor13 committed Apr 7, 2011
    …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. Bump version

    justinweiss committed Feb 25, 2011
Commits on Feb 23, 2011
  1. Make sure the enqueue method returns something that evaluates to true…

    tekin committed Feb 23, 2011
    … to properly mimic resque
Commits on Feb 14, 2011
  1. bump Gemfile.lock

    justinweiss committed Feb 14, 2011
  2. v0.3.4 release

    justinweiss committed Feb 14, 2011
Commits on Feb 5, 2011
  1. Optional hooks support. "after_enqueue", "before", "around", "after",…

    Nicolas Fouché committed Feb 5, 2011
    … and "failed". Yeah, all of them.