editstore 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ module Editstore
8
8
  Editstore::RunLog.where('ended IS NOT NULL').order('ended DESC').limit(1).first
9
9
  end
10
10
  def self.prune
11
+ self.where('updated_at < ?',1.day.ago).where('ended IS NULL').each {|obj| obj.destroy} # anything older than 1 day that is not marked as finished running (but must be crashed and not actually running)
11
12
  self.where('updated_at < ?',1.month.ago).each {|obj| obj.destroy} # anything older than 1 month
12
13
  self.where(:total_druids=>0).where('updated_at < ?',1.day.ago).each {|obj| obj.destroy} # anything older than 1 day with no activity
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module Editstore
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-18 00:00:00.000000000 Z
12
+ date: 2013-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  segments:
186
186
  - 0
187
- hash: 2556779975228874083
187
+ hash: -3804187558622121077
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  none: false
190
190
  requirements:
@@ -193,10 +193,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  segments:
195
195
  - 0
196
- hash: 2556779975228874083
196
+ hash: -3804187558622121077
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 1.8.24
199
+ rubygems_version: 1.8.28
200
200
  signing_key:
201
201
  specification_version: 3
202
202
  summary: The editstore gem is used by client web applications (like Revs Digital Library)