resque-durable 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 717393b9ae90c4588cdb781a7526ac9fd6f8fef6
4
+ data.tar.gz: 492a39940bf835b8e390d31a35cf82d8e519732d
5
+ SHA512:
6
+ metadata.gz: b951bf3fbd81ddb70e3601df21a5252518e67fbdfea91454db32068d1ca29541f9b3194c855ae1a5f73aca11de88f7b949668e5d47430e81a4409a53fb1b0cd7
7
+ data.tar.gz: b11e32142ae7dfb40064e96b3f7b6dd158839c4a07adb2bf72b433d55aecec69eb7b948c6b2dce1e22028e7ecccbaa849dcae5e41bb0747c9f21a14e72c7ac84
@@ -4,7 +4,7 @@ require 'active_support/core_ext/class'
4
4
  module Resque
5
5
  module Durable
6
6
  class QueueAudit < ActiveRecord::Base
7
- set_table_name :durable_queue_audits
7
+ self.table_name = :durable_queue_audits
8
8
  # id
9
9
  # enqueued_id
10
10
  # queue_name
@@ -21,15 +21,15 @@ module Resque
21
21
 
22
22
  validates_inclusion_of :duration, :in => 1.minute..3.hours
23
23
 
24
- named_scope :older_than, lambda { |date|
24
+ scope :older_than, lambda { |date|
25
25
  { :conditions => [ 'created_at < ?', date ] }
26
26
  }
27
27
 
28
- named_scope :failed, lambda {
28
+ scope :failed, lambda {
29
29
  { :conditions => [ 'completed_at is null AND timeout_at < ?', Time.now.utc ], :order => 'timeout_at asc', :limit => 500 }
30
30
  }
31
31
 
32
- named_scope :complete, lambda {
32
+ scope :complete, lambda {
33
33
  { :conditions => 'completed_at is not null' }
34
34
  }
35
35
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-durable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Eric Chapweske
@@ -10,8 +9,22 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-07-16 00:00:00.000000000 Z
14
- dependencies: []
12
+ date: 2013-12-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activerecord
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
15
28
  description:
16
29
  email:
17
30
  executables: []
@@ -22,28 +35,28 @@ files:
22
35
  - lib/resque/durable/guid.rb
23
36
  - lib/resque/durable/monitor.rb
24
37
  - lib/resque/durable/queue_audit.rb
25
- homepage:
26
- licenses: []
38
+ homepage: https://github.com/eac/resque-durable
39
+ licenses:
40
+ - MIT
41
+ metadata: {}
27
42
  post_install_message:
28
43
  rdoc_options: []
29
44
  require_paths:
30
45
  - lib
31
46
  required_ruby_version: !ruby/object:Gem::Requirement
32
- none: false
33
47
  requirements:
34
- - - ! '>='
48
+ - - '>='
35
49
  - !ruby/object:Gem::Version
36
50
  version: '0'
37
51
  required_rubygems_version: !ruby/object:Gem::Requirement
38
- none: false
39
52
  requirements:
40
- - - ! '>='
53
+ - - '>='
41
54
  - !ruby/object:Gem::Version
42
55
  version: '0'
43
56
  requirements: []
44
57
  rubyforge_project:
45
- rubygems_version: 1.8.21
58
+ rubygems_version: 2.1.11
46
59
  signing_key:
47
- specification_version: 3
60
+ specification_version: 4
48
61
  summary: Resque queue backed by database audits, with automatic retry
49
62
  test_files: []