jiggler 0.1.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +6 -0
  3. data/LICENSE +4 -0
  4. data/README.md +423 -0
  5. data/bin/jiggler +31 -0
  6. data/lib/jiggler/cleaner.rb +130 -0
  7. data/lib/jiggler/cli.rb +263 -0
  8. data/lib/jiggler/config.rb +165 -0
  9. data/lib/jiggler/core.rb +22 -0
  10. data/lib/jiggler/errors.rb +5 -0
  11. data/lib/jiggler/job.rb +116 -0
  12. data/lib/jiggler/launcher.rb +69 -0
  13. data/lib/jiggler/manager.rb +73 -0
  14. data/lib/jiggler/redis_store.rb +55 -0
  15. data/lib/jiggler/retrier.rb +122 -0
  16. data/lib/jiggler/scheduled/enqueuer.rb +78 -0
  17. data/lib/jiggler/scheduled/poller.rb +97 -0
  18. data/lib/jiggler/stats/collection.rb +26 -0
  19. data/lib/jiggler/stats/monitor.rb +103 -0
  20. data/lib/jiggler/summary.rb +101 -0
  21. data/lib/jiggler/support/helper.rb +35 -0
  22. data/lib/jiggler/version.rb +5 -0
  23. data/lib/jiggler/web/assets/stylesheets/application.css +64 -0
  24. data/lib/jiggler/web/views/application.erb +329 -0
  25. data/lib/jiggler/web.rb +80 -0
  26. data/lib/jiggler/worker.rb +179 -0
  27. data/lib/jiggler.rb +10 -0
  28. data/spec/examples.txt +79 -0
  29. data/spec/fixtures/config/jiggler.yml +4 -0
  30. data/spec/fixtures/jobs.rb +5 -0
  31. data/spec/fixtures/my_failed_job.rb +10 -0
  32. data/spec/fixtures/my_job.rb +9 -0
  33. data/spec/fixtures/my_job_with_args.rb +18 -0
  34. data/spec/jiggler/cleaner_spec.rb +171 -0
  35. data/spec/jiggler/cli_spec.rb +87 -0
  36. data/spec/jiggler/config_spec.rb +56 -0
  37. data/spec/jiggler/core_spec.rb +34 -0
  38. data/spec/jiggler/job_spec.rb +99 -0
  39. data/spec/jiggler/launcher_spec.rb +66 -0
  40. data/spec/jiggler/manager_spec.rb +52 -0
  41. data/spec/jiggler/redis_store_spec.rb +20 -0
  42. data/spec/jiggler/retrier_spec.rb +55 -0
  43. data/spec/jiggler/scheduled/enqueuer_spec.rb +81 -0
  44. data/spec/jiggler/scheduled/poller_spec.rb +40 -0
  45. data/spec/jiggler/stats/monitor_spec.rb +40 -0
  46. data/spec/jiggler/summary_spec.rb +168 -0
  47. data/spec/jiggler/web_spec.rb +37 -0
  48. data/spec/jiggler/worker_spec.rb +110 -0
  49. data/spec/spec_helper.rb +54 -0
  50. metadata +230 -0
metadata ADDED
@@ -0,0 +1,230 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jiggler
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.rc2
5
+ platform: ruby
6
+ authors:
7
+ - Julija Alieckaja
8
+ - Artsiom Kuts
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2023-01-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: async
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '2.3'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '2.3'
28
+ - !ruby/object:Gem::Dependency
29
+ name: async-io
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.34'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.34'
42
+ - !ruby/object:Gem::Dependency
43
+ name: async-pool
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '0.3'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '0.3'
56
+ - !ruby/object:Gem::Dependency
57
+ name: redis-client
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.11'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.11'
70
+ - !ruby/object:Gem::Dependency
71
+ name: oj
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '3.13'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '3.13'
84
+ - !ruby/object:Gem::Dependency
85
+ name: bundler
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '2.3'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '2.3'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rake
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '13.0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '13.0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: rspec
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '3.12'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '3.12'
126
+ description: Ruby background job processor using Redis and Async
127
+ email: julija.alieckaja@gmail.com
128
+ executables:
129
+ - jiggler
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - CHANGELOG.md
134
+ - LICENSE
135
+ - README.md
136
+ - bin/jiggler
137
+ - lib/jiggler.rb
138
+ - lib/jiggler/cleaner.rb
139
+ - lib/jiggler/cli.rb
140
+ - lib/jiggler/config.rb
141
+ - lib/jiggler/core.rb
142
+ - lib/jiggler/errors.rb
143
+ - lib/jiggler/job.rb
144
+ - lib/jiggler/launcher.rb
145
+ - lib/jiggler/manager.rb
146
+ - lib/jiggler/redis_store.rb
147
+ - lib/jiggler/retrier.rb
148
+ - lib/jiggler/scheduled/enqueuer.rb
149
+ - lib/jiggler/scheduled/poller.rb
150
+ - lib/jiggler/stats/collection.rb
151
+ - lib/jiggler/stats/monitor.rb
152
+ - lib/jiggler/summary.rb
153
+ - lib/jiggler/support/helper.rb
154
+ - lib/jiggler/version.rb
155
+ - lib/jiggler/web.rb
156
+ - lib/jiggler/web/assets/stylesheets/application.css
157
+ - lib/jiggler/web/views/application.erb
158
+ - lib/jiggler/worker.rb
159
+ - spec/examples.txt
160
+ - spec/fixtures/config/jiggler.yml
161
+ - spec/fixtures/jobs.rb
162
+ - spec/fixtures/my_failed_job.rb
163
+ - spec/fixtures/my_job.rb
164
+ - spec/fixtures/my_job_with_args.rb
165
+ - spec/jiggler/cleaner_spec.rb
166
+ - spec/jiggler/cli_spec.rb
167
+ - spec/jiggler/config_spec.rb
168
+ - spec/jiggler/core_spec.rb
169
+ - spec/jiggler/job_spec.rb
170
+ - spec/jiggler/launcher_spec.rb
171
+ - spec/jiggler/manager_spec.rb
172
+ - spec/jiggler/redis_store_spec.rb
173
+ - spec/jiggler/retrier_spec.rb
174
+ - spec/jiggler/scheduled/enqueuer_spec.rb
175
+ - spec/jiggler/scheduled/poller_spec.rb
176
+ - spec/jiggler/stats/monitor_spec.rb
177
+ - spec/jiggler/summary_spec.rb
178
+ - spec/jiggler/web_spec.rb
179
+ - spec/jiggler/worker_spec.rb
180
+ - spec/spec_helper.rb
181
+ homepage: https://rubygems.org/gems/jiggler
182
+ licenses:
183
+ - LGPL-3.0
184
+ metadata:
185
+ homepage_uri: https://github.com/tuwukee/jiggler
186
+ changelog_uri: https://github.com/tuwukee/jiggler/blob/main/CHANGELOG.md
187
+ source_code_uri: https://github.com/tuwukee/jiggler
188
+ bug_tracker_uri: https://github.com/tuwukee/jiggler/issues
189
+ post_install_message:
190
+ rdoc_options: []
191
+ require_paths:
192
+ - lib
193
+ required_ruby_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ required_rubygems_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">"
201
+ - !ruby/object:Gem::Version
202
+ version: 1.3.1
203
+ requirements: []
204
+ rubygems_version: 3.4.3
205
+ signing_key:
206
+ specification_version: 4
207
+ summary: Ruby background job processor
208
+ test_files:
209
+ - spec/examples.txt
210
+ - spec/fixtures/config/jiggler.yml
211
+ - spec/fixtures/jobs.rb
212
+ - spec/fixtures/my_failed_job.rb
213
+ - spec/fixtures/my_job.rb
214
+ - spec/fixtures/my_job_with_args.rb
215
+ - spec/jiggler/cleaner_spec.rb
216
+ - spec/jiggler/cli_spec.rb
217
+ - spec/jiggler/config_spec.rb
218
+ - spec/jiggler/core_spec.rb
219
+ - spec/jiggler/job_spec.rb
220
+ - spec/jiggler/launcher_spec.rb
221
+ - spec/jiggler/manager_spec.rb
222
+ - spec/jiggler/redis_store_spec.rb
223
+ - spec/jiggler/retrier_spec.rb
224
+ - spec/jiggler/scheduled/enqueuer_spec.rb
225
+ - spec/jiggler/scheduled/poller_spec.rb
226
+ - spec/jiggler/stats/monitor_spec.rb
227
+ - spec/jiggler/summary_spec.rb
228
+ - spec/jiggler/web_spec.rb
229
+ - spec/jiggler/worker_spec.rb
230
+ - spec/spec_helper.rb