Commits on May 29, 2012
  1. @rubiii

    don't require test/unit to avoid the at_exit hook

    test/unit.rb registers an at_exit hook that causing problems
    because rake doesn't remove processed args from ARGV:
    
    http://stackoverflow.com/a/9571551/279024
    rubiii committed May 29, 2012
Commits on Apr 12, 2012
  1. @justinweiss

    v0.4.3 release

    justinweiss committed Apr 12, 2012
  2. @justinweiss

    Ruby 1.8.7 doesn't support Time.new with arguments.

    Time.parse does the same thing, and is supported on all supported ruby versions.
    justinweiss committed Apr 12, 2012
  3. @justinweiss

    Merge pull request #28 from archit/master

    Correctly compare timestamps in Resque#remove_delayed_job_from_timestamp
    justinweiss committed Apr 12, 2012
  4. Added tests and switched to using #to_i instead of #utc. ResqueUnit s…

    …hould not be doing automagic time zone conversion (since Resque doesn't either).
    Archit Baweja committed Apr 12, 2012
Commits on Apr 6, 2012
  1. Use time based comparison instead of string based for Resque#remove_d…

    …elayed_job_from_timestamp.
    Archit Baweja committed Apr 6, 2012
Commits on Mar 8, 2012
  1. @justinweiss

    v0.4.2 release

    justinweiss committed Mar 8, 2012
  2. @justinweiss

    Use a job's class name instead of the class itself when encoding a job.

    Usually, Class#to_json will return the class's name as a
    string. activesupport/core_ext overrides this to return
    instance_values instead, which doesn't round-trip properly. For
    consistency, we should always be queuing the class name rather than
    the class itself. Resque uses #to_s instead of #name, so I will too.
    justinweiss committed Mar 8, 2012
Commits on Mar 5, 2012
  1. @justinweiss

    Fixed some broken tests.

    Jobs are queued with the parameters (JobClass, param1, param2) but must be asserted with the parameters (JobClass, [param1, param2]).
    justinweiss committed Mar 4, 2012
Commits on Mar 4, 2012
  1. @justinweiss

    Merge pull request #27 from archit/master

    Mock implementation of Resque#remove_delayed_job_from_timestamp
    justinweiss committed Mar 4, 2012
Commits on Mar 3, 2012
Commits on Oct 30, 2011
  1. @justinweiss

    Merge pull request #25 from yaauie/failure-catching

    Catch everything thrown for on_failure hooks
    justinweiss committed Oct 29, 2011
Commits on Oct 27, 2011
  1. @yaauie
Commits on Oct 24, 2011
  1. @justinweiss

    Merge pull request #24 from nfo/614c286d

    Fixed `Resque::Scheduler.enqueue_with_timestamp`
    justinweiss committed Oct 24, 2011
Commits on Oct 14, 2011
  1. @justinweiss

    v0.4.1

    justinweiss committed Oct 14, 2011
Commits on Oct 8, 2011
  1. @justinweiss
  2. @justinweiss

    Merge branch 'yaauie-run-limit'

    Conflicts:
    	test/resque_unit_test.rb
    justinweiss committed Oct 8, 2011
Commits on Oct 4, 2011
  1. @nfo

    `Resque::Scheduler.enqueue_with_timestamp` must give the name of the …

    …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"}
    ```
    nfo committed Oct 4, 2011
Commits on Sep 28, 2011
  1. @justinweiss

    Merge pull request #20 from yaauie/enqueue-to

    Add support and tests for enqueue_to
    justinweiss committed Sep 28, 2011
  2. @justinweiss

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

    add support for before_enqueue hooks
    justinweiss committed Sep 28, 2011
  3. @yaauie

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

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

    0.4.0 release

    justinweiss committed Jun 28, 2011
  2. @justinweiss

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

    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.
    justinweiss committed Jun 28, 2011
  3. @justinweiss

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

    Otherwise, we might run into weird inconsistencies between resque_unit and Resque.
    justinweiss committed Jun 28, 2011
  4. @justinweiss

    Pulled argument normalization out of an inner loop

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

    Merge pull request #16 from autohaus24/master

    Add more redis methods (peek, list_range), implemented encode/decode redis simulation
    justinweiss committed Jun 28, 2011
  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. @justinweiss

    Added name to license

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

    Bumped version

    justinweiss committed Apr 26, 2011
  2. @justinweiss

    Merged pull request #14 from change/master.

    JSON gem version
    justinweiss committed Apr 26, 2011