resque-stages 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +103 -0
  5. data/.rubocop_todo.yml +34 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +6 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +9 -0
  10. data/Gemfile.lock +172 -0
  11. data/LICENSE.txt +21 -0
  12. data/README.md +250 -0
  13. data/Rakefile +8 -0
  14. data/bin/console +16 -0
  15. data/bin/setup +8 -0
  16. data/lib/resque-stages.rb +11 -0
  17. data/lib/resque/plugins/stages.rb +110 -0
  18. data/lib/resque/plugins/stages/cleaner.rb +36 -0
  19. data/lib/resque/plugins/stages/redis_access.rb +16 -0
  20. data/lib/resque/plugins/stages/staged_group.rb +181 -0
  21. data/lib/resque/plugins/stages/staged_group_list.rb +79 -0
  22. data/lib/resque/plugins/stages/staged_group_stage.rb +275 -0
  23. data/lib/resque/plugins/stages/staged_job.rb +271 -0
  24. data/lib/resque/plugins/stages/version.rb +9 -0
  25. data/lib/resque/server/public/stages.css +56 -0
  26. data/lib/resque/server/views/_group_stages_list_pagination.erb +67 -0
  27. data/lib/resque/server/views/_group_stages_list_table.erb +25 -0
  28. data/lib/resque/server/views/_stage_job_list_pagination.erb +72 -0
  29. data/lib/resque/server/views/_stage_job_list_table.erb +46 -0
  30. data/lib/resque/server/views/_staged_group_list_pagination.erb +67 -0
  31. data/lib/resque/server/views/_staged_group_list_table.erb +44 -0
  32. data/lib/resque/server/views/group_stages_list.erb +58 -0
  33. data/lib/resque/server/views/groups.erb +40 -0
  34. data/lib/resque/server/views/job_details.erb +91 -0
  35. data/lib/resque/server/views/stage.erb +64 -0
  36. data/lib/resque/stages_server.rb +240 -0
  37. data/read_me/groups_list.png +0 -0
  38. data/read_me/job.png +0 -0
  39. data/read_me/stage.png +0 -0
  40. data/read_me/stages.png +0 -0
  41. data/resque-stages.gemspec +49 -0
  42. data/spec/rails_helper.rb +40 -0
  43. data/spec/resque/plugins/stages/cleaner_spec.rb +82 -0
  44. data/spec/resque/plugins/stages/staged_group_list_spec.rb +96 -0
  45. data/spec/resque/plugins/stages/staged_group_spec.rb +226 -0
  46. data/spec/resque/plugins/stages/staged_group_stage_spec.rb +293 -0
  47. data/spec/resque/plugins/stages/staged_job_spec.rb +324 -0
  48. data/spec/resque/plugins/stages_spec.rb +369 -0
  49. data/spec/resque/server/public/stages.css_spec.rb +18 -0
  50. data/spec/resque/server/views/group_stages_list.erb_spec.rb +67 -0
  51. data/spec/resque/server/views/groups.erb_spec.rb +81 -0
  52. data/spec/resque/server/views/job_details.erb_spec.rb +100 -0
  53. data/spec/resque/server/views/stage.erb_spec.rb +68 -0
  54. data/spec/spec_helper.rb +104 -0
  55. data/spec/support/01_utils/fake_logger.rb +7 -0
  56. data/spec/support/config/redis-auth.yml +12 -0
  57. data/spec/support/fake_logger.rb +7 -0
  58. data/spec/support/jobs/basic_job.rb +17 -0
  59. data/spec/support/jobs/compressed_job.rb +18 -0
  60. data/spec/support/jobs/retry_job.rb +21 -0
  61. data/spec/support/purge_all.rb +15 -0
  62. metadata +297 -0
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.configure do |configuration|
4
+ configuration.before(:each) do
5
+ # Resque::Plugins::Stages::Cleaner.purge_all
6
+
7
+ Resque.redis.redis.flushdb
8
+ end
9
+
10
+ configuration.after(:each) do
11
+ # Resque::Plugins::Stages::Cleaner.purge_all
12
+
13
+ Resque.redis.redis.flushdb
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,297 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: resque-stages
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - RealNobody
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: redis
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: redis-namespace
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: resque
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activesupport
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: cornucopia
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: faker
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: gem-release
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: resque-compressible
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: resque-retry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rspec-rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">"
144
+ - !ruby/object:Gem::Version
145
+ version: 3.9.1
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">"
151
+ - !ruby/object:Gem::Version
152
+ version: 3.9.1
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: simplecov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ description: A Resque gem for executing batches of jobs in stages. All jobs in a
182
+ stage must complete before any job in the next stage is started allowing you to
183
+ be sure that jobs are not executed out of sequence.
184
+ email:
185
+ - RealNobody1@cox.net
186
+ executables: []
187
+ extensions: []
188
+ extra_rdoc_files: []
189
+ files:
190
+ - ".gitignore"
191
+ - ".rspec"
192
+ - ".rubocop.yml"
193
+ - ".rubocop_todo.yml"
194
+ - ".ruby-version"
195
+ - ".travis.yml"
196
+ - CODE_OF_CONDUCT.md
197
+ - Gemfile
198
+ - Gemfile.lock
199
+ - LICENSE.txt
200
+ - README.md
201
+ - Rakefile
202
+ - bin/console
203
+ - bin/setup
204
+ - lib/resque-stages.rb
205
+ - lib/resque/plugins/stages.rb
206
+ - lib/resque/plugins/stages/cleaner.rb
207
+ - lib/resque/plugins/stages/redis_access.rb
208
+ - lib/resque/plugins/stages/staged_group.rb
209
+ - lib/resque/plugins/stages/staged_group_list.rb
210
+ - lib/resque/plugins/stages/staged_group_stage.rb
211
+ - lib/resque/plugins/stages/staged_job.rb
212
+ - lib/resque/plugins/stages/version.rb
213
+ - lib/resque/server/public/stages.css
214
+ - lib/resque/server/views/_group_stages_list_pagination.erb
215
+ - lib/resque/server/views/_group_stages_list_table.erb
216
+ - lib/resque/server/views/_stage_job_list_pagination.erb
217
+ - lib/resque/server/views/_stage_job_list_table.erb
218
+ - lib/resque/server/views/_staged_group_list_pagination.erb
219
+ - lib/resque/server/views/_staged_group_list_table.erb
220
+ - lib/resque/server/views/group_stages_list.erb
221
+ - lib/resque/server/views/groups.erb
222
+ - lib/resque/server/views/job_details.erb
223
+ - lib/resque/server/views/stage.erb
224
+ - lib/resque/stages_server.rb
225
+ - read_me/groups_list.png
226
+ - read_me/job.png
227
+ - read_me/stage.png
228
+ - read_me/stages.png
229
+ - resque-stages.gemspec
230
+ - spec/rails_helper.rb
231
+ - spec/resque/plugins/stages/cleaner_spec.rb
232
+ - spec/resque/plugins/stages/staged_group_list_spec.rb
233
+ - spec/resque/plugins/stages/staged_group_spec.rb
234
+ - spec/resque/plugins/stages/staged_group_stage_spec.rb
235
+ - spec/resque/plugins/stages/staged_job_spec.rb
236
+ - spec/resque/plugins/stages_spec.rb
237
+ - spec/resque/server/public/stages.css_spec.rb
238
+ - spec/resque/server/views/group_stages_list.erb_spec.rb
239
+ - spec/resque/server/views/groups.erb_spec.rb
240
+ - spec/resque/server/views/job_details.erb_spec.rb
241
+ - spec/resque/server/views/stage.erb_spec.rb
242
+ - spec/spec_helper.rb
243
+ - spec/support/01_utils/fake_logger.rb
244
+ - spec/support/config/redis-auth.yml
245
+ - spec/support/fake_logger.rb
246
+ - spec/support/jobs/basic_job.rb
247
+ - spec/support/jobs/compressed_job.rb
248
+ - spec/support/jobs/retry_job.rb
249
+ - spec/support/purge_all.rb
250
+ homepage: https://github.com/RealNobody/resque-stages
251
+ licenses:
252
+ - MIT
253
+ metadata:
254
+ homepage_uri: https://github.com/RealNobody/resque-stages
255
+ source_code_uri: https://github.com/RealNobody/resque-stages
256
+ changelog_uri: https://github.com/RealNobody/resque-stages
257
+ post_install_message:
258
+ rdoc_options: []
259
+ require_paths:
260
+ - lib
261
+ required_ruby_version: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - ">="
264
+ - !ruby/object:Gem::Version
265
+ version: 2.3.0
266
+ required_rubygems_version: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ version: '0'
271
+ requirements: []
272
+ rubygems_version: 3.0.3
273
+ signing_key:
274
+ specification_version: 4
275
+ summary: A Resque gem for executing batches of jobs in stages to ensure that some
276
+ jobs complete execution before other jobs.
277
+ test_files:
278
+ - spec/spec_helper.rb
279
+ - spec/resque/plugins/stages/staged_group_list_spec.rb
280
+ - spec/resque/plugins/stages/cleaner_spec.rb
281
+ - spec/resque/plugins/stages/staged_group_stage_spec.rb
282
+ - spec/resque/plugins/stages/staged_group_spec.rb
283
+ - spec/resque/plugins/stages/staged_job_spec.rb
284
+ - spec/resque/plugins/stages_spec.rb
285
+ - spec/resque/server/public/stages.css_spec.rb
286
+ - spec/resque/server/views/job_details.erb_spec.rb
287
+ - spec/resque/server/views/groups.erb_spec.rb
288
+ - spec/resque/server/views/stage.erb_spec.rb
289
+ - spec/resque/server/views/group_stages_list.erb_spec.rb
290
+ - spec/support/config/redis-auth.yml
291
+ - spec/support/01_utils/fake_logger.rb
292
+ - spec/support/fake_logger.rb
293
+ - spec/support/jobs/retry_job.rb
294
+ - spec/support/jobs/compressed_job.rb
295
+ - spec/support/jobs/basic_job.rb
296
+ - spec/support/purge_all.rb
297
+ - spec/rails_helper.rb