Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix RuboCop offenses

  • Loading branch information...
commit 5fe9d249d45d735564d26d8fba41f04b123995c7 1 parent fc7910a
@sferik sferik authored
Showing with 4 additions and 7 deletions.
  1. +2 −5 .rubocop.yml
  2. +1 −1  Gemfile
  3. +1 −1  lib/delayed/backend/mongoid.rb
View
7 .rubocop.yml
@@ -1,8 +1,5 @@
-AllCops:
- Include:
- - 'Gemfile'
- - 'Rakefile'
- - 'delayed_job_mongoid.gemspec'
+AbcSize:
+ Enabled: false
# Avoid long parameter lists
ParameterLists:
View
2  Gemfile
@@ -8,7 +8,7 @@ group :test do
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
gem 'rspec', '>= 3'
- gem 'rubocop', '>= 0.23'
+ gem 'rubocop', '>= 0.28'
gem 'simplecov', '>= 0.9'
gem 'yardstick'
end
View
2  lib/delayed/backend/mongoid.rb
@@ -41,7 +41,7 @@ def self.reserve(worker, max_run_time = Worker.max_run_time)
).any_of(
{:locked_by => worker.name},
{:locked_at => nil},
- {:locked_at => {'$lt' => (right_now - max_run_time)}}
+ :locked_at => {'$lt' => (right_now - max_run_time)}
)
criteria = criteria.gte(:priority => Worker.min_priority.to_i) if Worker.min_priority
Please sign in to comment.
Something went wrong with that request. Please try again.