inst-jobs-statsd 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/lib/inst-jobs-statsd.rb +26 -0
  3. data/lib/inst_jobs_statsd/default_tracking.rb +15 -0
  4. data/lib/inst_jobs_statsd/jobs_tracker.rb +25 -0
  5. data/lib/inst_jobs_statsd/naming.rb +49 -0
  6. data/lib/inst_jobs_statsd/stats/counters/failed.rb +28 -0
  7. data/lib/inst_jobs_statsd/stats/counters/orphaned.rb +34 -0
  8. data/lib/inst_jobs_statsd/stats/counters/run.rb +21 -0
  9. data/lib/inst_jobs_statsd/stats/counters.rb +10 -0
  10. data/lib/inst_jobs_statsd/stats/periodic/failed.rb +21 -0
  11. data/lib/inst_jobs_statsd/stats/periodic/queue.rb +49 -0
  12. data/lib/inst_jobs_statsd/stats/periodic/run.rb +38 -0
  13. data/lib/inst_jobs_statsd/stats/periodic.rb +91 -0
  14. data/lib/inst_jobs_statsd/stats/timing/failed.rb +17 -0
  15. data/lib/inst_jobs_statsd/stats/timing/perform.rb +29 -0
  16. data/lib/inst_jobs_statsd/stats/timing/pop.rb +28 -0
  17. data/lib/inst_jobs_statsd/stats/timing.rb +27 -0
  18. data/lib/inst_jobs_statsd/version.rb +3 -0
  19. data/spec/factories/jobs.rb +9 -0
  20. data/spec/factories/workers.rb +9 -0
  21. data/spec/gemfiles/42.gemfile +7 -0
  22. data/spec/gemfiles/42.gemfile.lock +201 -0
  23. data/spec/gemfiles/50.gemfile +7 -0
  24. data/spec/gemfiles/50.gemfile.lock +224 -0
  25. data/spec/gemfiles/51.gemfile +7 -0
  26. data/spec/gemfiles/51.gemfile.lock +224 -0
  27. data/spec/inst_jobs_statsd/jobs_tracker_spec.rb +30 -0
  28. data/spec/inst_jobs_statsd/naming_spec.rb +26 -0
  29. data/spec/inst_jobs_statsd/stats/counters/failed_spec.rb +20 -0
  30. data/spec/inst_jobs_statsd/stats/counters/orphaned_spec.rb +27 -0
  31. data/spec/inst_jobs_statsd/stats/counters/run_spec.rb +27 -0
  32. data/spec/inst_jobs_statsd/stats/periodic/failed_spec.rb +31 -0
  33. data/spec/inst_jobs_statsd/stats/periodic/queue_spec.rb +95 -0
  34. data/spec/inst_jobs_statsd/stats/periodic/run_spec.rb +53 -0
  35. data/spec/inst_jobs_statsd/stats/periodic_spec.rb +63 -0
  36. data/spec/inst_jobs_statsd/stats/timing/failed_spec.rb +25 -0
  37. data/spec/inst_jobs_statsd/stats/timing/perform_spec.rb +35 -0
  38. data/spec/inst_jobs_statsd/stats/timing/pop_spec.rb +34 -0
  39. data/spec/inst_jobs_statsd/stats/timing_spec.rb +35 -0
  40. data/spec/inst_statsd/default_tracking_spec.rb +16 -0
  41. data/spec/matchers.rb +3 -0
  42. data/spec/setup_test_db.rb +41 -0
  43. data/spec/spec_helper.rb +63 -0
  44. metadata +327 -0
metadata ADDED
@@ -0,0 +1,327 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: inst-jobs-statsd
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Jeremy Slade
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: inst-jobs
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.13'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '0.15'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.13'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.15'
33
+ - !ruby/object:Gem::Dependency
34
+ name: inst_statsd
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: bump
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: bundler
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: byebug
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: database_cleaner
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '='
94
+ - !ruby/object:Gem::Version
95
+ version: 1.6.1
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - '='
101
+ - !ruby/object:Gem::Version
102
+ version: 1.6.1
103
+ - !ruby/object:Gem::Dependency
104
+ name: factory_girl
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: pg
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: pry
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: rake
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: rspec
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - '='
164
+ - !ruby/object:Gem::Version
165
+ version: 3.4.0
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - '='
171
+ - !ruby/object:Gem::Version
172
+ version: 3.4.0
173
+ - !ruby/object:Gem::Dependency
174
+ name: rubocop
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ - !ruby/object:Gem::Dependency
188
+ name: simplecov
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - "~>"
192
+ - !ruby/object:Gem::Version
193
+ version: '0.14'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '0.14'
201
+ - !ruby/object:Gem::Dependency
202
+ name: timecop
203
+ requirement: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ type: :development
209
+ prerelease: false
210
+ version_requirements: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
215
+ - !ruby/object:Gem::Dependency
216
+ name: wwtd
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - "~>"
220
+ - !ruby/object:Gem::Version
221
+ version: 1.3.0
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - "~>"
227
+ - !ruby/object:Gem::Version
228
+ version: 1.3.0
229
+ description:
230
+ email:
231
+ - jslade@instructure.com
232
+ executables: []
233
+ extensions: []
234
+ extra_rdoc_files: []
235
+ files:
236
+ - lib/inst-jobs-statsd.rb
237
+ - lib/inst_jobs_statsd/default_tracking.rb
238
+ - lib/inst_jobs_statsd/jobs_tracker.rb
239
+ - lib/inst_jobs_statsd/naming.rb
240
+ - lib/inst_jobs_statsd/stats/counters.rb
241
+ - lib/inst_jobs_statsd/stats/counters/failed.rb
242
+ - lib/inst_jobs_statsd/stats/counters/orphaned.rb
243
+ - lib/inst_jobs_statsd/stats/counters/run.rb
244
+ - lib/inst_jobs_statsd/stats/periodic.rb
245
+ - lib/inst_jobs_statsd/stats/periodic/failed.rb
246
+ - lib/inst_jobs_statsd/stats/periodic/queue.rb
247
+ - lib/inst_jobs_statsd/stats/periodic/run.rb
248
+ - lib/inst_jobs_statsd/stats/timing.rb
249
+ - lib/inst_jobs_statsd/stats/timing/failed.rb
250
+ - lib/inst_jobs_statsd/stats/timing/perform.rb
251
+ - lib/inst_jobs_statsd/stats/timing/pop.rb
252
+ - lib/inst_jobs_statsd/version.rb
253
+ - spec/factories/jobs.rb
254
+ - spec/factories/workers.rb
255
+ - spec/gemfiles/42.gemfile
256
+ - spec/gemfiles/42.gemfile.lock
257
+ - spec/gemfiles/50.gemfile
258
+ - spec/gemfiles/50.gemfile.lock
259
+ - spec/gemfiles/51.gemfile
260
+ - spec/gemfiles/51.gemfile.lock
261
+ - spec/inst_jobs_statsd/jobs_tracker_spec.rb
262
+ - spec/inst_jobs_statsd/naming_spec.rb
263
+ - spec/inst_jobs_statsd/stats/counters/failed_spec.rb
264
+ - spec/inst_jobs_statsd/stats/counters/orphaned_spec.rb
265
+ - spec/inst_jobs_statsd/stats/counters/run_spec.rb
266
+ - spec/inst_jobs_statsd/stats/periodic/failed_spec.rb
267
+ - spec/inst_jobs_statsd/stats/periodic/queue_spec.rb
268
+ - spec/inst_jobs_statsd/stats/periodic/run_spec.rb
269
+ - spec/inst_jobs_statsd/stats/periodic_spec.rb
270
+ - spec/inst_jobs_statsd/stats/timing/failed_spec.rb
271
+ - spec/inst_jobs_statsd/stats/timing/perform_spec.rb
272
+ - spec/inst_jobs_statsd/stats/timing/pop_spec.rb
273
+ - spec/inst_jobs_statsd/stats/timing_spec.rb
274
+ - spec/inst_statsd/default_tracking_spec.rb
275
+ - spec/matchers.rb
276
+ - spec/setup_test_db.rb
277
+ - spec/spec_helper.rb
278
+ homepage: https://github.com/instructure/inst-jobs-statsd
279
+ licenses:
280
+ - MIT
281
+ metadata: {}
282
+ post_install_message:
283
+ rdoc_options: []
284
+ require_paths:
285
+ - lib
286
+ required_ruby_version: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - ">="
289
+ - !ruby/object:Gem::Version
290
+ version: '2.3'
291
+ required_rubygems_version: !ruby/object:Gem::Requirement
292
+ requirements:
293
+ - - ">="
294
+ - !ruby/object:Gem::Version
295
+ version: '0'
296
+ requirements: []
297
+ rubyforge_project:
298
+ rubygems_version: 2.5.1
299
+ signing_key:
300
+ specification_version: 4
301
+ summary: Stats reporting for inst-jobs
302
+ test_files:
303
+ - spec/factories/jobs.rb
304
+ - spec/factories/workers.rb
305
+ - spec/gemfiles/42.gemfile
306
+ - spec/gemfiles/42.gemfile.lock
307
+ - spec/gemfiles/50.gemfile
308
+ - spec/gemfiles/50.gemfile.lock
309
+ - spec/gemfiles/51.gemfile
310
+ - spec/gemfiles/51.gemfile.lock
311
+ - spec/inst_jobs_statsd/jobs_tracker_spec.rb
312
+ - spec/inst_jobs_statsd/naming_spec.rb
313
+ - spec/inst_jobs_statsd/stats/counters/failed_spec.rb
314
+ - spec/inst_jobs_statsd/stats/counters/orphaned_spec.rb
315
+ - spec/inst_jobs_statsd/stats/counters/run_spec.rb
316
+ - spec/inst_jobs_statsd/stats/periodic/failed_spec.rb
317
+ - spec/inst_jobs_statsd/stats/periodic/queue_spec.rb
318
+ - spec/inst_jobs_statsd/stats/periodic/run_spec.rb
319
+ - spec/inst_jobs_statsd/stats/periodic_spec.rb
320
+ - spec/inst_jobs_statsd/stats/timing/failed_spec.rb
321
+ - spec/inst_jobs_statsd/stats/timing/perform_spec.rb
322
+ - spec/inst_jobs_statsd/stats/timing/pop_spec.rb
323
+ - spec/inst_jobs_statsd/stats/timing_spec.rb
324
+ - spec/inst_statsd/default_tracking_spec.rb
325
+ - spec/matchers.rb
326
+ - spec/setup_test_db.rb
327
+ - spec/spec_helper.rb