resque-approve 0.0.6 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/resque-approve.rb +2 -0
- data/lib/resque/approve_server.rb +12 -1
- data/lib/resque/plugins/approve.rb +48 -1
- data/lib/resque/plugins/approve/auto_approve_next.rb +38 -0
- data/lib/resque/plugins/approve/compressable_auto_approve_next.rb +41 -0
- data/lib/resque/plugins/approve/pending_job.rb +157 -30
- data/lib/resque/plugins/approve/pending_job_queue.rb +26 -0
- data/lib/resque/plugins/version.rb +1 -1
- data/lib/resque/server/views/_approval_key_rows.erb +4 -1
- data/lib/resque/server/views/_job_list_table.erb +1 -1
- data/lib/resque/server/views/approval_keys.erb +6 -0
- data/lib/resque/server/views/job_details.erb +4 -1
- data/lib/resque/server/views/job_list.erb +27 -13
- data/spec/approve/pending_job_queue_spec.rb +1 -1
- data/spec/approve/pending_job_spec.rb +264 -6
- data/spec/approve_spec.rb +53 -0
- data/spec/examples.txt +182 -152
- data/spec/server/views/job_list.erb_spec.rb +12 -0
- data/spec/support/jobs/auto_delete_approval_key_job.rb +4 -0
- data/spec/support/jobs/default_approval_queue_job.rb +5 -0
- data/spec/support/jobs/max_active_job.rb +9 -0
- metadata +18 -13
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-approve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RealNobody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: resque-compressible
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -140,16 +140,16 @@ dependencies:
|
|
140
140
|
name: rspec-rails
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - ">"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 3.9.1
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - ">"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 3.9.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,16 +182,16 @@ dependencies:
|
|
182
182
|
name: sinatra
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: timecop
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,7 +219,9 @@ files:
|
|
219
219
|
- lib/resque/approve_server.rb
|
220
220
|
- lib/resque/plugins/approve.rb
|
221
221
|
- lib/resque/plugins/approve/approval_key_list.rb
|
222
|
+
- lib/resque/plugins/approve/auto_approve_next.rb
|
222
223
|
- lib/resque/plugins/approve/cleaner.rb
|
224
|
+
- lib/resque/plugins/approve/compressable_auto_approve_next.rb
|
223
225
|
- lib/resque/plugins/approve/pending_job.rb
|
224
226
|
- lib/resque/plugins/approve/pending_job_queue.rb
|
225
227
|
- lib/resque/plugins/approve/redis_access.rb
|
@@ -248,6 +250,8 @@ files:
|
|
248
250
|
- spec/support/config/redis-auth.yml
|
249
251
|
- spec/support/jobs/01_basic_job.rb
|
250
252
|
- spec/support/jobs/auto_delete_approval_key_job.rb
|
253
|
+
- spec/support/jobs/default_approval_queue_job.rb
|
254
|
+
- spec/support/jobs/max_active_job.rb
|
251
255
|
- spec/support/purge_all.rb
|
252
256
|
homepage: https://github.com/RealNobody
|
253
257
|
licenses:
|
@@ -268,8 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
272
|
- !ruby/object:Gem::Version
|
269
273
|
version: '0'
|
270
274
|
requirements: []
|
271
|
-
|
272
|
-
rubygems_version: 2.5.1
|
275
|
+
rubygems_version: 3.0.3
|
273
276
|
signing_key:
|
274
277
|
specification_version: 4
|
275
278
|
summary: Keeps a list of jobs which require approval to run.
|
@@ -288,5 +291,7 @@ test_files:
|
|
288
291
|
- spec/support/config/redis-auth.yml
|
289
292
|
- spec/support/jobs/01_basic_job.rb
|
290
293
|
- spec/support/jobs/auto_delete_approval_key_job.rb
|
294
|
+
- spec/support/jobs/max_active_job.rb
|
295
|
+
- spec/support/jobs/default_approval_queue_job.rb
|
291
296
|
- spec/support/purge_all.rb
|
292
297
|
- spec/rails_helper.rb
|