resque-durable 2.2.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1a9e256ca3afbc5a1605c176de59a028c2546c626f2845c2180bac51dc6b821
4
- data.tar.gz: f55e471e1139d717ed4002aff1fc01bef8dfe52649c13a3ee0e5e9fd539237d2
3
+ metadata.gz: 3928943d5910f0175a2b2155b5bd417bde192e894448a53da76b184c610846b3
4
+ data.tar.gz: 95a94e3dd8d3c8bddb94ec48739fd2f5f9619c1e63cf497dce3fbe71ccfb1996
5
5
  SHA512:
6
- metadata.gz: de3d4efce9c67ea0dcfb7df3d2f19070c01463de09694135cf56b11fc7dcba5ab335412e3b5c8795e58b9a72e807c1277cde95a8250eb7ac8514d30c3bb641bc
7
- data.tar.gz: bd6fdfc08faceed5a402a7e7c33f2e2997a82a66d6d4e228dcc3ba34d1ede7f74c890e710572a56ad2b6186436b00a1d8f423cf36771255c568ea9a443fdab5a
6
+ metadata.gz: 1d11f968ff7957ed51e96857eafe86ed406152b44a7d9664568eec72a7f0095fca0f08715f6a2b7717cae3c417e0fc85dc9ed352394b560c99678c7137796085
7
+ data.tar.gz: a2e612f1cbcaf5b00246526ff5160203e2596aaa61cd27cddadb1e09b1692a6a4c8e08c3a3ac14ac986615334b2d4b8a5a59ec379a3f75a39c51f5523ec1449c
@@ -1,24 +1,11 @@
1
+ require 'uuidtools'
2
+
1
3
  module Resque
2
4
  module Durable
3
5
  module GUID
4
-
5
6
  def self.generate
6
- [ hostname,
7
- Process.pid,
8
- Time.now.to_i,
9
- increment_counter
10
- ].join('/')
11
- end
12
-
13
- def self.hostname
14
- @hostname ||= `hostname`.chomp
7
+ UUIDTools::UUID.random_create.to_s
15
8
  end
16
-
17
- def self.increment_counter
18
- @counter ||= 0
19
- @counter += 1
20
- end
21
-
22
9
  end
23
10
  end
24
11
  end
@@ -19,11 +19,9 @@ module Resque
19
19
  # created_at
20
20
  DEFAULT_DURATION = 10.minutes
21
21
 
22
- validates_length_of :payload_before_type_cast, :in => 1..5000
23
-
24
22
  validates_inclusion_of :duration, :in => 1.minute.to_i..3.hours.to_i
25
23
 
26
- scope :older_than, ->(date) { where('created_at < ?', date) }
24
+ scope :older_than, ->(date) { where('created_at < ?', date).limit(10000) }
27
25
 
28
26
  scope :failed, -> {
29
27
  where(completed_at: nil)
@@ -48,7 +46,7 @@ module Resque
48
46
  end
49
47
 
50
48
  def cleanup(date)
51
- older_than(date).destroy_all
49
+ older_than(date).delete_all
52
50
  end
53
51
 
54
52
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-durable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Chapweske
8
8
  - Ben Osheroff
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-02 00:00:00.000000000 Z
12
+ date: 2022-09-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -17,16 +17,170 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '4.2'
20
+ version: '5.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '4.2'
28
- description:
29
- email:
27
+ version: '5.1'
28
+ - !ruby/object:Gem::Dependency
29
+ name: resque
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.27'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.27'
42
+ - !ruby/object:Gem::Dependency
43
+ name: uuidtools
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '2.2'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '2.2'
56
+ - !ruby/object:Gem::Dependency
57
+ name: redis
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '5'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "<"
68
+ - !ruby/object:Gem::Version
69
+ version: '5'
70
+ - !ruby/object:Gem::Dependency
71
+ name: bump
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rake
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: minitest
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: minitest-rg
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: mocha
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: timecop
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: pry
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ - !ruby/object:Gem::Dependency
169
+ name: sqlite3
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ description:
183
+ email:
30
184
  executables: []
31
185
  extensions: []
32
186
  extra_rdoc_files: []
@@ -40,7 +194,7 @@ homepage: https://github.com/zendesk/resque-durable
40
194
  licenses:
41
195
  - MIT
42
196
  metadata: {}
43
- post_install_message:
197
+ post_install_message:
44
198
  rdoc_options: []
45
199
  require_paths:
46
200
  - lib
@@ -48,16 +202,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
202
  requirements:
49
203
  - - ">="
50
204
  - !ruby/object:Gem::Version
51
- version: '2.4'
205
+ version: '2.6'
52
206
  required_rubygems_version: !ruby/object:Gem::Requirement
53
207
  requirements:
54
208
  - - ">="
55
209
  - !ruby/object:Gem::Version
56
210
  version: '0'
57
211
  requirements: []
58
- rubyforge_project:
59
- rubygems_version: 2.7.6.2
60
- signing_key:
212
+ rubygems_version: 3.0.3.1
213
+ signing_key:
61
214
  specification_version: 4
62
215
  summary: Resque queue backed by database audits, with automatic retry
63
216
  test_files: []