steve 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/steve/queued_job.rb +1 -1
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ff4ed0070df9be5041ccf923f6241cd8c484fbd1
4
- data.tar.gz: fe44158d942b5ef3bd69f7acafd276bd36d07f42
2
+ SHA256:
3
+ metadata.gz: 89653860f4ff23766922170217f1c126049904ee0ee432697c98d189a1a6dc34
4
+ data.tar.gz: 8da132b2d5c9bc45418eae2f82cfbc2fc583ed396cebe24861c3de7bab8e3bce
5
5
  SHA512:
6
- metadata.gz: 4db62a04d2c0c42669cbabeb60716adf504b3943dbc3a8fe36dc6e6e587b06b299c08f5487fb244705e594b9f4f7f06fdcdbd6980c1c901faada4fe331eb8a5b
7
- data.tar.gz: 25d9f7681af9ec48b87035baa2a3df3ede024ca806d1f2193197bea1bf22027885cb15c4b5ae6538fef5a9de9583eb96ecccfc5fad5c193c2ba117789149e870
6
+ metadata.gz: c6197c2129be3b0baabdb56837b8408f2e3b7adda8b74b70d6fc8dcfc5feb91531603987684b1d4b8e582fef3d669db3b11cd391125e2c73a1f710dcc9f79e21
7
+ data.tar.gz: 0fee19660bc04839cd056eefae82546de019daa26e392cef66a1aff6ef1652b9e265be47654bf3e67c465b55f1bcd3428752f14fda82c067379f333995a09fdb
@@ -219,7 +219,7 @@ module Steve
219
219
 
220
220
  ## Remove old completed jobs from the database
221
221
  def self.cleanup(age = 5.days.ago)
222
- self.delete_all(["status = 'completed' and run_at < ?", age])
222
+ self.where("status = ? and run_at < ?", 'completed', age).delete_all
223
223
  end
224
224
 
225
225
  def reconnect_database!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steve
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - aTech Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-30 00:00:00.000000000 Z
11
+ date: 2019-10-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: support@atechmedia.com
@@ -47,8 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  requirements: []
50
- rubyforge_project:
51
- rubygems_version: 2.6.14.3
50
+ rubygems_version: 3.0.3
52
51
  signing_key:
53
52
  specification_version: 4
54
53
  summary: Steve Jobs background job runner