Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Apr 23, 2015
  1. @senny

    Fix a bug in the offset calculation of `.enqueue_at`.

    senny authored
    The old offset calculation was always one second off:
    
    ```ruby
    irb(main):049:0> offset = ((Time.now + 2) - Time.now)
    => 1.999996
    irb(main):004:0> offset.to_i
    => 1
    ```
    
    Report in rails/rails@40ff508#commitcomment-10860316
Commits on Mar 4, 2015
  1. @senny

    bring back our beloved changelog. Closes #230.

    senny authored
    Revert "Remove changlog file. Using GH releases"
    
    This reverts commit 81364fb.
Commits on Mar 3, 2015
  1. @senny
Commits on Feb 19, 2015
  1. @senny

    Merge pull request #254 from QueueClassic/mini_test

    senny authored
    Give some <3 to our unit tests
Commits on Feb 18, 2015
  1. @smathieu

    Updated env variables

    smathieu authored
  2. @smathieu
  3. @smathieu
  4. @smathieu

    Fix the benchmark test

    smathieu authored
  5. @smathieu
  6. @smathieu

    Merge pull request #251 from QueueClassic/bundler-gem

    smathieu authored
    Added LICENSE and modernized gemspec
Commits on Feb 17, 2015
  1. @smathieu

    Update version.rb

    smathieu authored
  2. @smathieu
  3. @smathieu
  4. @smathieu

    Merge pull request #248 from QueueClassic/issue_247

    smathieu authored
    Make QC a bit thread safe
  5. @smathieu
  6. @senny

    No longer mention possible Ruby `1.8.7` compatibility.

    senny authored
    Users which are still running Ruby `1.8.7` can use previous released
    versions of QC.
Commits on Jan 27, 2015
  1. @senny
Commits on Jan 18, 2015
  1. @senny

    Merge pull request #245 from mnp/fixes

    senny authored
    Filename typo prevented "gem build queue_classic.gemspec"
  2. @mnp
  3. @senny
Commits on Jan 17, 2015
  1. @senny
  2. @senny

    only forward messages the `default_queue` understands.

    senny authored
    Forwarding every message results in confusing `NoMethodError`s.
  3. @senny

    Merge branch 'flexible_configuration'

    senny authored
    This is my first stab at decoupling the configuration from constants.
    The work is not finished but far enough to be shared.
    
    I did deprecate the old `QC::XYZ` constants in favor of methods on `QC`.
    The rest of the changes should not be noticed from a user perspective.
    I added good test coverage for all operations we performed on constant
    assignment. Other than that I added a little feature here and there.
    The individual commit messages go into more detail about that.
    
    There is some more work involved to move `default_conn_adapter`.
    I also want to provide an API to configure QC via Ruby.
    Lastly I think we should deprecate `QC.queue` formerly `QC::QUEUE`.
    It's overlapping with `QC.default_queue` and easy to confuse with
    `QC.queues`.
    
    Feedback is appreciated.
    
    /cc @jipiboily
  4. @senny

    move `default_worker_class` into `QC::Config`.

    senny authored
    Also allow `default_worker_class` to be configured via env var.
  5. @senny
  6. @senny

    memoize values in `QC::Config`.

    senny authored
  7. @senny
  8. @senny
  9. @senny
  10. @senny

    extract configuration constants in a backwards compatible fashion.

    senny authored
    The big picture is to decouple QC's configuration from env vars.
    They will still serve as primary source of configuration. However,
    we should allow configuration through Ruby code as well.
  11. @senny

    tests, remember adapter before mingeling with env vars.

    senny authored
    I noticed some random build failures when
    `worker_test.rb#test_init_worker_with_arg` ran before
    `QC.default_conn_adapter` was called.
    
    The issue was that the `with_database` helper mingled with env vars
    before remembering the `QC.default_conn_adapter`. In the case of
    `test_init_worker_with_arg` an invalid environment was setup.
    
    This resulted in an attempt to connect to that invalid database.
    
    ```
      1) Error:
    WorkerTest#test_init_worker_with_arg:
    PG::ConnectionBad: FATAL:  database "invalid" does not exist
    
        /Users/senny/Projects/queue_classic/lib/queue_classic/conn_adapter.rb:73:in `initialize'
        /Users/senny/Projects/queue_classic/lib/queue_classic/conn_adapter.rb:73:in `new'
        /Users/senny/Projects/queue_classic/lib/queue_classic/conn_adapter.rb:73:in `establish_new'
        /Users/senny/Projects/queue_classic/lib/queue_classic/conn_adapter.rb:9:in `initialize'
        /Users/senny/Projects/queue_classic/lib/queue_classic.rb:64:in `new'
        /Users/senny/Projects/queue_classic/lib/queue_classic.rb:64:in `default_conn_adapter'
        test/worker_test.rb:223:in `with_database'
        test/worker_test.rb:193:in `test_init_worker_with_arg'
    ```
Commits on Jan 16, 2015
  1. @senny
Commits on Jan 15, 2015
  1. @senny

    Merge pull request #243 from joker1007/add_exception_loc

    senny authored
    Add exception location to default `handle_failure` output
  2. @joker1007

    Add exception location to default handle_failure output

    joker1007 authored
    If it is displayed only at the place of the closest source code,
    debugging is becomes more comfortable.
Commits on Jan 13, 2015
  1. @senny
Something went wrong with that request. Please try again.