Permalink
Commits on Aug 13, 2015
  1. Merge pull request #262 from QueueClassic/returning_id

    senny committed Aug 13, 2015
    `enqueue`, `enqueue_at`, `enqueue_in` return job hash with id
  2. `enqueue`, `enqueue_at`, `enqueue_in` return job hash with id.

    senny committed Aug 11, 2015
    Closes #260
    
    This will make it possible to provide a better integration with Active
    Job by providing a mean to implement `active_job.provider_job_id`.
Commits on Jun 15, 2015
  1. Merge pull request #257 from clemensg/change_json_to_jsonb

    senny committed Jun 15, 2015
    Change json datatype to jsonb
Commits on Jun 13, 2015
  1. Change json datatype to jsonb, if available. Otherwise fall back to j…

    clemensg committed Jun 12, 2015
    …son or text.
    
    Signed-off-by: Clemens Gruber <clemensgru@gmail.com>
Commits on Apr 23, 2015
  1. Fix a bug in the offset calculation of `.enqueue_at`.

    senny committed Apr 23, 2015
    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. bring back our beloved changelog. Closes #230.

    senny committed Mar 4, 2015
    Revert "Remove changlog file. Using GH releases"
    
    This reverts commit 81364fb.
Commits on Mar 3, 2015
  1. add CONTRIBUTING.md. Closes #231.

    senny committed Mar 3, 2015
Commits on Feb 19, 2015
  1. Merge pull request #254 from QueueClassic/mini_test

    senny committed Feb 19, 2015
    Give some <3 to our unit tests
Commits on Feb 18, 2015
  1. Updated env variables

    smathieu committed Feb 18, 2015
  2. Use the with_env helper in rails connection test

    smathieu committed Feb 18, 2015
  3. Fix the benchmark test

    smathieu committed Feb 18, 2015
  4. Merge pull request #251 from QueueClassic/bundler-gem

    smathieu committed Feb 18, 2015
    Added LICENSE and modernized gemspec
Commits on Feb 17, 2015
  1. Update version.rb

    smathieu committed Feb 17, 2015
  2. Added LICENSE and modernized gemspec

    smathieu committed Feb 17, 2015
  3. Merge pull request #248 from QueueClassic/issue_247

    smathieu committed Feb 17, 2015
    Make QC a bit thread safe
  4. Make the connection adapter thread safe.

    smathieu committed Feb 17, 2015
  5. No longer mention possible Ruby `1.8.7` compatibility.

    senny committed Feb 17, 2015
    Users which are still running Ruby `1.8.7` can use previous released
    versions of QC.
Commits on Jan 27, 2015
Commits on Jan 18, 2015
  1. Merge pull request #245 from mnp/fixes

    senny committed Jan 18, 2015
    Filename typo prevented "gem build queue_classic.gemspec"
Commits on Jan 17, 2015
  1. only forward messages the `default_queue` understands.

    senny committed Jan 17, 2015
    Forwarding every message results in confusing `NoMethodError`s.
  2. Merge branch 'flexible_configuration'

    senny committed Jan 17, 2015
    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
  3. move `default_worker_class` into `QC::Config`.

    senny committed Jan 17, 2015
    Also allow `default_worker_class` to be configured via env var.
  4. memoize values in `QC::Config`.

    senny committed Jan 17, 2015
  5. extract configuration constants in a backwards compatible fashion.

    senny committed Jan 17, 2015
    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.
  6. tests, remember adapter before mingeling with env vars.

    senny committed Jan 17, 2015
    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'
    ```