Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 15, 2015
  1. @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
  2. @senny
Commits on Jan 12, 2015
  1. @senny

    Merge pull request #241 from QueueClassic/encourage_custom_workers

    senny authored
    make it possible to inject a custom worker for QC's rake tasks.
  2. @senny
  3. @senny
  4. @senny

    get rid of ruby warning.

    senny authored
    This removes:
    
    ```
    /Users/senny/Projects/queue_classic/lib/queue_classic/queue.rb:63: warning: assigned but unused variable - res
    ```
  5. @senny

    `private` keyword has no effect on class methods.

    senny authored
    See:
    
    ```ruby
    class Example
      private
      def self.example
      end
    end
    
    puts (class << Example; self; end).private_method_defined?(:example)
    
    class Example2
      class << self
        private
        def example
        end
      end
    end
    
    puts (class << Example2; self; end).private_method_defined?(:example)
    ```
    
    I chose to implement this in a Ruby 1.8.7 compatible way.
    Maybe it's time to be clear about ruby version support. /cc @jipiboily
  6. @senny
  7. @senny
Commits on Jan 10, 2015
  1. @senny

    tests, don't fail when running `queue_classic_test.rb` in isolation.

    senny authored
    This solves the following error:
    
    ```
    ruby -Itest /Users/senny/Projects/queue_classic/test/lib/queue_classic_test.rb -n test_unlock_jobs_of_dead_workers                                                                                                                                                                                                ~/Projects/queue_classic 1 ↵
    Run options: -n test_unlock_jobs_of_dead_workers --seed 2356
    
    E
    
    Finished in 0.050837s, 19.6707 runs/s, 19.6707 assertions/s.
    
      1) Error:
    QueueClassicTest#test_unlock_jobs_of_dead_workers:
    NoMethodError: undefined method `execute' for nil:NilClass
        /Users/senny/Projects/queue_classic/lib/queue_classic.rb:109:in `unlock_jobs_of_dead_workers'
        /Users/senny/Projects/queue_classic/test/lib/queue_classic_test.rb:29:in `test_unlock_jobs_of_dead_workers'
    
    1 runs, 1 assertions, 0 failures, 1 errors, 0 skips
    ```
    
    This also prevents random build failures when the random execution order picks
    `test_unlock_jobs_of_dead_workers` as the first test to run.
  2. @senny

    make it possible to inject a custom worker for QC's rake tasks.

    senny authored
    In every project I'm using QueueClassic we end up writing
    our own Worker. This is also encouraged in the README.
    
    The process is very smooth but one drawback is that you can't
    continue to use the rake tasks, which ship with QC. Or at least
    not `rake qc:work` as this would always use the default worker.
    
    I think we should encourage custom workers and make it trivial
    to inject them into QC's rake tasks.
  3. @senny

    tests, make it possible to execute a single test.

    senny authored
    for `ruby test/worker_test.rb` to work, we need to setup
    Bundler accordingly.
  4. @senny
  5. @senny
  6. @senny

    skip broken test.

    senny authored
    Obviously this is a temporary solution. The test has been broken
    locally and on TravisCI for quite some time.
    
    @jipiboily We should either fix it or get rid of it.
  7. @senny
Commits on Jan 8, 2015
  1. @jipiboily

    add a missing bundle exec

    jipiboily authored
  2. @jipiboily

    add bundle exec in README

    jipiboily authored
Commits on Jan 7, 2015
  1. @jipiboily
  2. @jipiboily
  3. @jipiboily
  4. @jipiboily

    Merge pull request #217 from severin/enqueue_at

    jipiboily authored
    Support for scheduling jobs in the future
  5. @senny
Commits on Jan 5, 2015
  1. @senny
Commits on Nov 10, 2014
  1. @senny

    take care of Ruby warnings.

    senny authored
  2. @senny
Commits on Nov 4, 2014
  1. @rochefort @senny

    Remove unused variable. Closes #238. Closes #237.

    rochefort authored senny committed
Commits on Oct 11, 2014
  1. @severin
  2. @severin

    Small wording fixes

    severin authored
  3. @severin

    Moved scheduling timestamp into its own column and created separate m…

    severin authored
    …igrations
    
    Since the release of 3.0.0 the created_at column is "out in the wild"
    and probably being used to keep track of when a job was created. It
    should not be used for something semantically completely different like
    scheduling therefore I introduced a new column for that aspect.
  4. @severin
  5. @severin
  6. @severin
Commits on Oct 10, 2014
  1. @jipiboily

    Merge pull request #232 from jipiboily/detect-rails-db-connection

    jipiboily authored
    detect Rails DB connection and use it
Something went wrong with that request. Please try again.