inst-jobs-statsd 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/inst-jobs-statsd.rb +26 -0
- data/lib/inst_jobs_statsd/default_tracking.rb +15 -0
- data/lib/inst_jobs_statsd/jobs_tracker.rb +25 -0
- data/lib/inst_jobs_statsd/naming.rb +49 -0
- data/lib/inst_jobs_statsd/stats/counters/failed.rb +28 -0
- data/lib/inst_jobs_statsd/stats/counters/orphaned.rb +34 -0
- data/lib/inst_jobs_statsd/stats/counters/run.rb +21 -0
- data/lib/inst_jobs_statsd/stats/counters.rb +10 -0
- data/lib/inst_jobs_statsd/stats/periodic/failed.rb +21 -0
- data/lib/inst_jobs_statsd/stats/periodic/queue.rb +49 -0
- data/lib/inst_jobs_statsd/stats/periodic/run.rb +38 -0
- data/lib/inst_jobs_statsd/stats/periodic.rb +91 -0
- data/lib/inst_jobs_statsd/stats/timing/failed.rb +17 -0
- data/lib/inst_jobs_statsd/stats/timing/perform.rb +29 -0
- data/lib/inst_jobs_statsd/stats/timing/pop.rb +28 -0
- data/lib/inst_jobs_statsd/stats/timing.rb +27 -0
- data/lib/inst_jobs_statsd/version.rb +3 -0
- data/spec/factories/jobs.rb +9 -0
- data/spec/factories/workers.rb +9 -0
- data/spec/gemfiles/42.gemfile +7 -0
- data/spec/gemfiles/42.gemfile.lock +201 -0
- data/spec/gemfiles/50.gemfile +7 -0
- data/spec/gemfiles/50.gemfile.lock +224 -0
- data/spec/gemfiles/51.gemfile +7 -0
- data/spec/gemfiles/51.gemfile.lock +224 -0
- data/spec/inst_jobs_statsd/jobs_tracker_spec.rb +30 -0
- data/spec/inst_jobs_statsd/naming_spec.rb +26 -0
- data/spec/inst_jobs_statsd/stats/counters/failed_spec.rb +20 -0
- data/spec/inst_jobs_statsd/stats/counters/orphaned_spec.rb +27 -0
- data/spec/inst_jobs_statsd/stats/counters/run_spec.rb +27 -0
- data/spec/inst_jobs_statsd/stats/periodic/failed_spec.rb +31 -0
- data/spec/inst_jobs_statsd/stats/periodic/queue_spec.rb +95 -0
- data/spec/inst_jobs_statsd/stats/periodic/run_spec.rb +53 -0
- data/spec/inst_jobs_statsd/stats/periodic_spec.rb +63 -0
- data/spec/inst_jobs_statsd/stats/timing/failed_spec.rb +25 -0
- data/spec/inst_jobs_statsd/stats/timing/perform_spec.rb +35 -0
- data/spec/inst_jobs_statsd/stats/timing/pop_spec.rb +34 -0
- data/spec/inst_jobs_statsd/stats/timing_spec.rb +35 -0
- data/spec/inst_statsd/default_tracking_spec.rb +16 -0
- data/spec/matchers.rb +3 -0
- data/spec/setup_test_db.rb +41 -0
- data/spec/spec_helper.rb +63 -0
- metadata +327 -0
@@ -0,0 +1,201 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
inst-jobs-statsd (1.0.0)
|
5
|
+
inst-jobs (>= 0.13, < 0.15)
|
6
|
+
inst_statsd (~> 2.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionmailer (4.2.9)
|
12
|
+
actionpack (= 4.2.9)
|
13
|
+
actionview (= 4.2.9)
|
14
|
+
activejob (= 4.2.9)
|
15
|
+
mail (~> 2.5, >= 2.5.4)
|
16
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
17
|
+
actionpack (4.2.9)
|
18
|
+
actionview (= 4.2.9)
|
19
|
+
activesupport (= 4.2.9)
|
20
|
+
rack (~> 1.6)
|
21
|
+
rack-test (~> 0.6.2)
|
22
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
23
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
24
|
+
actionview (4.2.9)
|
25
|
+
activesupport (= 4.2.9)
|
26
|
+
builder (~> 3.1)
|
27
|
+
erubis (~> 2.7.0)
|
28
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
29
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
30
|
+
activejob (4.2.9)
|
31
|
+
activesupport (= 4.2.9)
|
32
|
+
globalid (>= 0.3.0)
|
33
|
+
activemodel (4.2.9)
|
34
|
+
activesupport (= 4.2.9)
|
35
|
+
builder (~> 3.1)
|
36
|
+
activerecord (4.2.9)
|
37
|
+
activemodel (= 4.2.9)
|
38
|
+
activesupport (= 4.2.9)
|
39
|
+
arel (~> 6.0)
|
40
|
+
activesupport (4.2.9)
|
41
|
+
i18n (~> 0.7)
|
42
|
+
minitest (~> 5.1)
|
43
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
44
|
+
tzinfo (~> 1.1)
|
45
|
+
after_transaction_commit (1.1.2)
|
46
|
+
activerecord (>= 4.0)
|
47
|
+
arel (6.0.4)
|
48
|
+
aroi (0.0.5)
|
49
|
+
rails (>= 3.2, < 5.2)
|
50
|
+
ast (2.3.0)
|
51
|
+
builder (3.2.3)
|
52
|
+
bump (0.5.4)
|
53
|
+
byebug (9.0.6)
|
54
|
+
coderay (1.1.1)
|
55
|
+
concurrent-ruby (1.0.5)
|
56
|
+
database_cleaner (1.6.1)
|
57
|
+
diff-lcs (1.3)
|
58
|
+
docile (1.1.5)
|
59
|
+
erubis (2.7.0)
|
60
|
+
et-orbi (1.0.5)
|
61
|
+
tzinfo
|
62
|
+
factory_girl (4.8.1)
|
63
|
+
activesupport (>= 3.0.0)
|
64
|
+
globalid (0.4.0)
|
65
|
+
activesupport (>= 4.2.0)
|
66
|
+
i18n (0.8.6)
|
67
|
+
inst-jobs (0.14.0)
|
68
|
+
after_transaction_commit (>= 1.0, < 3)
|
69
|
+
rails (>= 4.2)
|
70
|
+
redis (> 3.0)
|
71
|
+
redis-scripting (~> 1.0.1)
|
72
|
+
rufus-scheduler (~> 3.4)
|
73
|
+
inst_statsd (2.0.4)
|
74
|
+
aroi (~> 0.0.4)
|
75
|
+
statsd-ruby (~> 1.0)
|
76
|
+
json (2.1.0)
|
77
|
+
loofah (2.0.3)
|
78
|
+
nokogiri (>= 1.5.9)
|
79
|
+
mail (2.6.6)
|
80
|
+
mime-types (>= 1.16, < 4)
|
81
|
+
method_source (0.8.2)
|
82
|
+
mime-types (3.1)
|
83
|
+
mime-types-data (~> 3.2015)
|
84
|
+
mime-types-data (3.2016.0521)
|
85
|
+
mini_portile2 (2.2.0)
|
86
|
+
minitest (5.10.3)
|
87
|
+
nokogiri (1.8.0)
|
88
|
+
mini_portile2 (~> 2.2.0)
|
89
|
+
parallel (1.12.0)
|
90
|
+
parser (2.4.0.0)
|
91
|
+
ast (~> 2.2)
|
92
|
+
pg (0.21.0)
|
93
|
+
powerpack (0.1.1)
|
94
|
+
pry (0.10.4)
|
95
|
+
coderay (~> 1.1.0)
|
96
|
+
method_source (~> 0.8.1)
|
97
|
+
slop (~> 3.4)
|
98
|
+
rack (1.6.8)
|
99
|
+
rack-test (0.6.3)
|
100
|
+
rack (>= 1.0)
|
101
|
+
rails (4.2.9)
|
102
|
+
actionmailer (= 4.2.9)
|
103
|
+
actionpack (= 4.2.9)
|
104
|
+
actionview (= 4.2.9)
|
105
|
+
activejob (= 4.2.9)
|
106
|
+
activemodel (= 4.2.9)
|
107
|
+
activerecord (= 4.2.9)
|
108
|
+
activesupport (= 4.2.9)
|
109
|
+
bundler (>= 1.3.0, < 2.0)
|
110
|
+
railties (= 4.2.9)
|
111
|
+
sprockets-rails
|
112
|
+
rails-deprecated_sanitizer (1.0.3)
|
113
|
+
activesupport (>= 4.2.0.alpha)
|
114
|
+
rails-dom-testing (1.0.8)
|
115
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
116
|
+
nokogiri (~> 1.6)
|
117
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
118
|
+
rails-html-sanitizer (1.0.3)
|
119
|
+
loofah (~> 2.0)
|
120
|
+
railties (4.2.9)
|
121
|
+
actionpack (= 4.2.9)
|
122
|
+
activesupport (= 4.2.9)
|
123
|
+
rake (>= 0.8.7)
|
124
|
+
thor (>= 0.18.1, < 2.0)
|
125
|
+
rainbow (2.2.2)
|
126
|
+
rake
|
127
|
+
rake (12.0.0)
|
128
|
+
redis (4.0.1)
|
129
|
+
redis-scripting (1.0.1)
|
130
|
+
redis (>= 3.0)
|
131
|
+
rspec (3.4.0)
|
132
|
+
rspec-core (~> 3.4.0)
|
133
|
+
rspec-expectations (~> 3.4.0)
|
134
|
+
rspec-mocks (~> 3.4.0)
|
135
|
+
rspec-core (3.4.4)
|
136
|
+
rspec-support (~> 3.4.0)
|
137
|
+
rspec-expectations (3.4.0)
|
138
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
139
|
+
rspec-support (~> 3.4.0)
|
140
|
+
rspec-mocks (3.4.1)
|
141
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
142
|
+
rspec-support (~> 3.4.0)
|
143
|
+
rspec-support (3.4.1)
|
144
|
+
rubocop (0.50.0)
|
145
|
+
parallel (~> 1.10)
|
146
|
+
parser (>= 2.3.3.1, < 3.0)
|
147
|
+
powerpack (~> 0.1)
|
148
|
+
rainbow (>= 2.2.2, < 3.0)
|
149
|
+
ruby-progressbar (~> 1.7)
|
150
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
151
|
+
ruby-progressbar (1.9.0)
|
152
|
+
rufus-scheduler (3.4.2)
|
153
|
+
et-orbi (~> 1.0)
|
154
|
+
simplecov (0.15.1)
|
155
|
+
docile (~> 1.1.0)
|
156
|
+
json (>= 1.8, < 3)
|
157
|
+
simplecov-html (~> 0.10.0)
|
158
|
+
simplecov-html (0.10.2)
|
159
|
+
slop (3.6.0)
|
160
|
+
sprockets (3.7.1)
|
161
|
+
concurrent-ruby (~> 1.0)
|
162
|
+
rack (> 1, < 3)
|
163
|
+
sprockets-rails (3.2.0)
|
164
|
+
actionpack (>= 4.0)
|
165
|
+
activesupport (>= 4.0)
|
166
|
+
sprockets (>= 3.0.0)
|
167
|
+
statsd-ruby (1.4.0)
|
168
|
+
test_after_commit (0.4.1)
|
169
|
+
activerecord (>= 3.2)
|
170
|
+
thor (0.19.4)
|
171
|
+
thread_safe (0.3.6)
|
172
|
+
timecop (0.7.1)
|
173
|
+
tzinfo (1.2.3)
|
174
|
+
thread_safe (~> 0.1)
|
175
|
+
unicode-display_width (1.3.0)
|
176
|
+
wwtd (1.3.0)
|
177
|
+
|
178
|
+
PLATFORMS
|
179
|
+
ruby
|
180
|
+
|
181
|
+
DEPENDENCIES
|
182
|
+
after_transaction_commit (< 2)
|
183
|
+
bump
|
184
|
+
bundler
|
185
|
+
byebug
|
186
|
+
database_cleaner (= 1.6.1)
|
187
|
+
factory_girl
|
188
|
+
inst-jobs-statsd!
|
189
|
+
pg
|
190
|
+
pry
|
191
|
+
rails (~> 4.2.5)
|
192
|
+
rake
|
193
|
+
rspec (= 3.4.0)
|
194
|
+
rubocop (~> 0)
|
195
|
+
simplecov (~> 0.14)
|
196
|
+
test_after_commit (= 0.4.1)
|
197
|
+
timecop
|
198
|
+
wwtd (~> 1.3.0)
|
199
|
+
|
200
|
+
BUNDLED WITH
|
201
|
+
1.15.4
|
@@ -0,0 +1,224 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
inst-jobs-statsd (1.0.0)
|
5
|
+
inst-jobs (>= 0.13, < 0.15)
|
6
|
+
inst_statsd (~> 2.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actioncable (5.0.4)
|
12
|
+
actionpack (= 5.0.4)
|
13
|
+
nio4r (>= 1.2, < 3.0)
|
14
|
+
websocket-driver (~> 0.6.1)
|
15
|
+
actionmailer (5.0.4)
|
16
|
+
actionpack (= 5.0.4)
|
17
|
+
actionview (= 5.0.4)
|
18
|
+
activejob (= 5.0.4)
|
19
|
+
mail (~> 2.5, >= 2.5.4)
|
20
|
+
rails-dom-testing (~> 2.0)
|
21
|
+
actionpack (5.0.4)
|
22
|
+
actionview (= 5.0.4)
|
23
|
+
activesupport (= 5.0.4)
|
24
|
+
rack (~> 2.0)
|
25
|
+
rack-test (~> 0.6.3)
|
26
|
+
rails-dom-testing (~> 2.0)
|
27
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
+
actionview (5.0.4)
|
29
|
+
activesupport (= 5.0.4)
|
30
|
+
builder (~> 3.1)
|
31
|
+
erubis (~> 2.7.0)
|
32
|
+
rails-dom-testing (~> 2.0)
|
33
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
+
activejob (5.0.4)
|
35
|
+
activesupport (= 5.0.4)
|
36
|
+
globalid (>= 0.3.6)
|
37
|
+
activemodel (5.0.4)
|
38
|
+
activesupport (= 5.0.4)
|
39
|
+
activerecord (5.0.4)
|
40
|
+
activemodel (= 5.0.4)
|
41
|
+
activesupport (= 5.0.4)
|
42
|
+
arel (~> 7.0)
|
43
|
+
activesupport (5.0.4)
|
44
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
45
|
+
i18n (~> 0.7)
|
46
|
+
minitest (~> 5.1)
|
47
|
+
tzinfo (~> 1.1)
|
48
|
+
after_transaction_commit (2.0.0)
|
49
|
+
activerecord (>= 5.0)
|
50
|
+
arel (7.1.4)
|
51
|
+
aroi (0.0.5)
|
52
|
+
rails (>= 3.2, < 5.2)
|
53
|
+
ast (2.3.0)
|
54
|
+
backports (3.8.0)
|
55
|
+
builder (3.2.3)
|
56
|
+
bump (0.5.4)
|
57
|
+
byebug (9.0.6)
|
58
|
+
coderay (1.1.1)
|
59
|
+
concurrent-ruby (1.0.5)
|
60
|
+
database_cleaner (1.6.1)
|
61
|
+
diff-lcs (1.3)
|
62
|
+
docile (1.1.5)
|
63
|
+
erubis (2.7.0)
|
64
|
+
et-orbi (1.0.5)
|
65
|
+
tzinfo
|
66
|
+
factory_girl (4.8.1)
|
67
|
+
activesupport (>= 3.0.0)
|
68
|
+
globalid (0.4.0)
|
69
|
+
activesupport (>= 4.2.0)
|
70
|
+
i18n (0.8.6)
|
71
|
+
inst-jobs (0.14.0)
|
72
|
+
after_transaction_commit (>= 1.0, < 3)
|
73
|
+
rails (>= 4.2)
|
74
|
+
redis (> 3.0)
|
75
|
+
redis-scripting (~> 1.0.1)
|
76
|
+
rufus-scheduler (~> 3.4)
|
77
|
+
inst_statsd (2.0.4)
|
78
|
+
aroi (~> 0.0.4)
|
79
|
+
statsd-ruby (~> 1.0)
|
80
|
+
json (2.1.0)
|
81
|
+
loofah (2.0.3)
|
82
|
+
nokogiri (>= 1.5.9)
|
83
|
+
mail (2.6.6)
|
84
|
+
mime-types (>= 1.16, < 4)
|
85
|
+
method_source (0.8.2)
|
86
|
+
mime-types (3.1)
|
87
|
+
mime-types-data (~> 3.2015)
|
88
|
+
mime-types-data (3.2016.0521)
|
89
|
+
mini_portile2 (2.2.0)
|
90
|
+
minitest (5.10.3)
|
91
|
+
multi_json (1.12.1)
|
92
|
+
mustermann (1.0.0.beta2)
|
93
|
+
nio4r (2.1.0)
|
94
|
+
nokogiri (1.8.0)
|
95
|
+
mini_portile2 (~> 2.2.0)
|
96
|
+
parallel (1.12.0)
|
97
|
+
parser (2.4.0.0)
|
98
|
+
ast (~> 2.2)
|
99
|
+
pg (0.21.0)
|
100
|
+
powerpack (0.1.1)
|
101
|
+
pry (0.10.4)
|
102
|
+
coderay (~> 1.1.0)
|
103
|
+
method_source (~> 0.8.1)
|
104
|
+
slop (~> 3.4)
|
105
|
+
rack (2.0.3)
|
106
|
+
rack-protection (2.0.0.beta2)
|
107
|
+
rack
|
108
|
+
rack-test (0.6.3)
|
109
|
+
rack (>= 1.0)
|
110
|
+
rails (5.0.4)
|
111
|
+
actioncable (= 5.0.4)
|
112
|
+
actionmailer (= 5.0.4)
|
113
|
+
actionpack (= 5.0.4)
|
114
|
+
actionview (= 5.0.4)
|
115
|
+
activejob (= 5.0.4)
|
116
|
+
activemodel (= 5.0.4)
|
117
|
+
activerecord (= 5.0.4)
|
118
|
+
activesupport (= 5.0.4)
|
119
|
+
bundler (>= 1.3.0, < 2.0)
|
120
|
+
railties (= 5.0.4)
|
121
|
+
sprockets-rails (>= 2.0.0)
|
122
|
+
rails-dom-testing (2.0.3)
|
123
|
+
activesupport (>= 4.2.0)
|
124
|
+
nokogiri (>= 1.6)
|
125
|
+
rails-html-sanitizer (1.0.3)
|
126
|
+
loofah (~> 2.0)
|
127
|
+
railties (5.0.4)
|
128
|
+
actionpack (= 5.0.4)
|
129
|
+
activesupport (= 5.0.4)
|
130
|
+
method_source
|
131
|
+
rake (>= 0.8.7)
|
132
|
+
thor (>= 0.18.1, < 2.0)
|
133
|
+
rainbow (2.2.2)
|
134
|
+
rake
|
135
|
+
rake (12.0.0)
|
136
|
+
redis (4.0.1)
|
137
|
+
redis-scripting (1.0.1)
|
138
|
+
redis (>= 3.0)
|
139
|
+
rspec (3.4.0)
|
140
|
+
rspec-core (~> 3.4.0)
|
141
|
+
rspec-expectations (~> 3.4.0)
|
142
|
+
rspec-mocks (~> 3.4.0)
|
143
|
+
rspec-core (3.4.4)
|
144
|
+
rspec-support (~> 3.4.0)
|
145
|
+
rspec-expectations (3.4.0)
|
146
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
147
|
+
rspec-support (~> 3.4.0)
|
148
|
+
rspec-mocks (3.4.1)
|
149
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
150
|
+
rspec-support (~> 3.4.0)
|
151
|
+
rspec-support (3.4.1)
|
152
|
+
rubocop (0.50.0)
|
153
|
+
parallel (~> 1.10)
|
154
|
+
parser (>= 2.3.3.1, < 3.0)
|
155
|
+
powerpack (~> 0.1)
|
156
|
+
rainbow (>= 2.2.2, < 3.0)
|
157
|
+
ruby-progressbar (~> 1.7)
|
158
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
159
|
+
ruby-progressbar (1.9.0)
|
160
|
+
rufus-scheduler (3.4.2)
|
161
|
+
et-orbi (~> 1.0)
|
162
|
+
simplecov (0.15.1)
|
163
|
+
docile (~> 1.1.0)
|
164
|
+
json (>= 1.8, < 3)
|
165
|
+
simplecov-html (~> 0.10.0)
|
166
|
+
simplecov-html (0.10.2)
|
167
|
+
sinatra (2.0.0.beta2)
|
168
|
+
mustermann (= 1.0.0.beta2)
|
169
|
+
rack (~> 2.0)
|
170
|
+
rack-protection (= 2.0.0.beta2)
|
171
|
+
tilt (~> 2.0)
|
172
|
+
sinatra-contrib (2.0.0.beta2)
|
173
|
+
backports (>= 2.0)
|
174
|
+
multi_json
|
175
|
+
mustermann (= 1.0.0.beta2)
|
176
|
+
rack-protection (= 2.0.0.beta2)
|
177
|
+
rack-test
|
178
|
+
sinatra (= 2.0.0.beta2)
|
179
|
+
tilt (>= 1.3, < 3)
|
180
|
+
slop (3.6.0)
|
181
|
+
sprockets (3.7.1)
|
182
|
+
concurrent-ruby (~> 1.0)
|
183
|
+
rack (> 1, < 3)
|
184
|
+
sprockets-rails (3.2.0)
|
185
|
+
actionpack (>= 4.0)
|
186
|
+
activesupport (>= 4.0)
|
187
|
+
sprockets (>= 3.0.0)
|
188
|
+
statsd-ruby (1.4.0)
|
189
|
+
thor (0.19.4)
|
190
|
+
thread_safe (0.3.6)
|
191
|
+
tilt (2.0.7)
|
192
|
+
timecop (0.7.1)
|
193
|
+
tzinfo (1.2.3)
|
194
|
+
thread_safe (~> 0.1)
|
195
|
+
unicode-display_width (1.3.0)
|
196
|
+
websocket-driver (0.6.5)
|
197
|
+
websocket-extensions (>= 0.1.0)
|
198
|
+
websocket-extensions (0.1.2)
|
199
|
+
wwtd (1.3.0)
|
200
|
+
|
201
|
+
PLATFORMS
|
202
|
+
ruby
|
203
|
+
|
204
|
+
DEPENDENCIES
|
205
|
+
bump
|
206
|
+
bundler
|
207
|
+
byebug
|
208
|
+
database_cleaner (= 1.6.1)
|
209
|
+
factory_girl
|
210
|
+
inst-jobs-statsd!
|
211
|
+
pg
|
212
|
+
pry
|
213
|
+
rails (~> 5.0.0)
|
214
|
+
rake
|
215
|
+
rspec (= 3.4.0)
|
216
|
+
rubocop (~> 0)
|
217
|
+
simplecov (~> 0.14)
|
218
|
+
sinatra (= 2.0.0.beta2)
|
219
|
+
sinatra-contrib (= 2.0.0.beta2)
|
220
|
+
timecop
|
221
|
+
wwtd (~> 1.3.0)
|
222
|
+
|
223
|
+
BUNDLED WITH
|
224
|
+
1.15.4
|
@@ -0,0 +1,224 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
inst-jobs-statsd (1.0.0)
|
5
|
+
inst-jobs (>= 0.13, < 0.15)
|
6
|
+
inst_statsd (~> 2.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actioncable (5.1.2)
|
12
|
+
actionpack (= 5.1.2)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (~> 0.6.1)
|
15
|
+
actionmailer (5.1.2)
|
16
|
+
actionpack (= 5.1.2)
|
17
|
+
actionview (= 5.1.2)
|
18
|
+
activejob (= 5.1.2)
|
19
|
+
mail (~> 2.5, >= 2.5.4)
|
20
|
+
rails-dom-testing (~> 2.0)
|
21
|
+
actionpack (5.1.2)
|
22
|
+
actionview (= 5.1.2)
|
23
|
+
activesupport (= 5.1.2)
|
24
|
+
rack (~> 2.0)
|
25
|
+
rack-test (~> 0.6.3)
|
26
|
+
rails-dom-testing (~> 2.0)
|
27
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
+
actionview (5.1.2)
|
29
|
+
activesupport (= 5.1.2)
|
30
|
+
builder (~> 3.1)
|
31
|
+
erubi (~> 1.4)
|
32
|
+
rails-dom-testing (~> 2.0)
|
33
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
+
activejob (5.1.2)
|
35
|
+
activesupport (= 5.1.2)
|
36
|
+
globalid (>= 0.3.6)
|
37
|
+
activemodel (5.1.2)
|
38
|
+
activesupport (= 5.1.2)
|
39
|
+
activerecord (5.1.2)
|
40
|
+
activemodel (= 5.1.2)
|
41
|
+
activesupport (= 5.1.2)
|
42
|
+
arel (~> 8.0)
|
43
|
+
activesupport (5.1.2)
|
44
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
45
|
+
i18n (~> 0.7)
|
46
|
+
minitest (~> 5.1)
|
47
|
+
tzinfo (~> 1.1)
|
48
|
+
after_transaction_commit (2.0.0)
|
49
|
+
activerecord (>= 5.0)
|
50
|
+
arel (8.0.0)
|
51
|
+
aroi (0.0.5)
|
52
|
+
rails (>= 3.2, < 5.2)
|
53
|
+
ast (2.3.0)
|
54
|
+
backports (3.8.0)
|
55
|
+
builder (3.2.3)
|
56
|
+
bump (0.5.4)
|
57
|
+
byebug (9.0.6)
|
58
|
+
coderay (1.1.1)
|
59
|
+
concurrent-ruby (1.0.5)
|
60
|
+
database_cleaner (1.6.1)
|
61
|
+
diff-lcs (1.3)
|
62
|
+
docile (1.1.5)
|
63
|
+
erubi (1.6.1)
|
64
|
+
et-orbi (1.0.5)
|
65
|
+
tzinfo
|
66
|
+
factory_girl (4.8.1)
|
67
|
+
activesupport (>= 3.0.0)
|
68
|
+
globalid (0.4.0)
|
69
|
+
activesupport (>= 4.2.0)
|
70
|
+
i18n (0.8.6)
|
71
|
+
inst-jobs (0.14.0)
|
72
|
+
after_transaction_commit (>= 1.0, < 3)
|
73
|
+
rails (>= 4.2)
|
74
|
+
redis (> 3.0)
|
75
|
+
redis-scripting (~> 1.0.1)
|
76
|
+
rufus-scheduler (~> 3.4)
|
77
|
+
inst_statsd (2.0.4)
|
78
|
+
aroi (~> 0.0.4)
|
79
|
+
statsd-ruby (~> 1.0)
|
80
|
+
json (2.1.0)
|
81
|
+
loofah (2.0.3)
|
82
|
+
nokogiri (>= 1.5.9)
|
83
|
+
mail (2.6.6)
|
84
|
+
mime-types (>= 1.16, < 4)
|
85
|
+
method_source (0.8.2)
|
86
|
+
mime-types (3.1)
|
87
|
+
mime-types-data (~> 3.2015)
|
88
|
+
mime-types-data (3.2016.0521)
|
89
|
+
mini_portile2 (2.2.0)
|
90
|
+
minitest (5.10.3)
|
91
|
+
multi_json (1.12.1)
|
92
|
+
mustermann (1.0.0.beta2)
|
93
|
+
nio4r (2.1.0)
|
94
|
+
nokogiri (1.8.0)
|
95
|
+
mini_portile2 (~> 2.2.0)
|
96
|
+
parallel (1.12.0)
|
97
|
+
parser (2.4.0.0)
|
98
|
+
ast (~> 2.2)
|
99
|
+
pg (0.21.0)
|
100
|
+
powerpack (0.1.1)
|
101
|
+
pry (0.10.4)
|
102
|
+
coderay (~> 1.1.0)
|
103
|
+
method_source (~> 0.8.1)
|
104
|
+
slop (~> 3.4)
|
105
|
+
rack (2.0.3)
|
106
|
+
rack-protection (2.0.0.beta2)
|
107
|
+
rack
|
108
|
+
rack-test (0.6.3)
|
109
|
+
rack (>= 1.0)
|
110
|
+
rails (5.1.2)
|
111
|
+
actioncable (= 5.1.2)
|
112
|
+
actionmailer (= 5.1.2)
|
113
|
+
actionpack (= 5.1.2)
|
114
|
+
actionview (= 5.1.2)
|
115
|
+
activejob (= 5.1.2)
|
116
|
+
activemodel (= 5.1.2)
|
117
|
+
activerecord (= 5.1.2)
|
118
|
+
activesupport (= 5.1.2)
|
119
|
+
bundler (>= 1.3.0, < 2.0)
|
120
|
+
railties (= 5.1.2)
|
121
|
+
sprockets-rails (>= 2.0.0)
|
122
|
+
rails-dom-testing (2.0.3)
|
123
|
+
activesupport (>= 4.2.0)
|
124
|
+
nokogiri (>= 1.6)
|
125
|
+
rails-html-sanitizer (1.0.3)
|
126
|
+
loofah (~> 2.0)
|
127
|
+
railties (5.1.2)
|
128
|
+
actionpack (= 5.1.2)
|
129
|
+
activesupport (= 5.1.2)
|
130
|
+
method_source
|
131
|
+
rake (>= 0.8.7)
|
132
|
+
thor (>= 0.18.1, < 2.0)
|
133
|
+
rainbow (2.2.2)
|
134
|
+
rake
|
135
|
+
rake (12.0.0)
|
136
|
+
redis (4.0.1)
|
137
|
+
redis-scripting (1.0.1)
|
138
|
+
redis (>= 3.0)
|
139
|
+
rspec (3.4.0)
|
140
|
+
rspec-core (~> 3.4.0)
|
141
|
+
rspec-expectations (~> 3.4.0)
|
142
|
+
rspec-mocks (~> 3.4.0)
|
143
|
+
rspec-core (3.4.4)
|
144
|
+
rspec-support (~> 3.4.0)
|
145
|
+
rspec-expectations (3.4.0)
|
146
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
147
|
+
rspec-support (~> 3.4.0)
|
148
|
+
rspec-mocks (3.4.1)
|
149
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
150
|
+
rspec-support (~> 3.4.0)
|
151
|
+
rspec-support (3.4.1)
|
152
|
+
rubocop (0.50.0)
|
153
|
+
parallel (~> 1.10)
|
154
|
+
parser (>= 2.3.3.1, < 3.0)
|
155
|
+
powerpack (~> 0.1)
|
156
|
+
rainbow (>= 2.2.2, < 3.0)
|
157
|
+
ruby-progressbar (~> 1.7)
|
158
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
159
|
+
ruby-progressbar (1.9.0)
|
160
|
+
rufus-scheduler (3.4.2)
|
161
|
+
et-orbi (~> 1.0)
|
162
|
+
simplecov (0.15.1)
|
163
|
+
docile (~> 1.1.0)
|
164
|
+
json (>= 1.8, < 3)
|
165
|
+
simplecov-html (~> 0.10.0)
|
166
|
+
simplecov-html (0.10.2)
|
167
|
+
sinatra (2.0.0.beta2)
|
168
|
+
mustermann (= 1.0.0.beta2)
|
169
|
+
rack (~> 2.0)
|
170
|
+
rack-protection (= 2.0.0.beta2)
|
171
|
+
tilt (~> 2.0)
|
172
|
+
sinatra-contrib (2.0.0.beta2)
|
173
|
+
backports (>= 2.0)
|
174
|
+
multi_json
|
175
|
+
mustermann (= 1.0.0.beta2)
|
176
|
+
rack-protection (= 2.0.0.beta2)
|
177
|
+
rack-test
|
178
|
+
sinatra (= 2.0.0.beta2)
|
179
|
+
tilt (>= 1.3, < 3)
|
180
|
+
slop (3.6.0)
|
181
|
+
sprockets (3.7.1)
|
182
|
+
concurrent-ruby (~> 1.0)
|
183
|
+
rack (> 1, < 3)
|
184
|
+
sprockets-rails (3.2.0)
|
185
|
+
actionpack (>= 4.0)
|
186
|
+
activesupport (>= 4.0)
|
187
|
+
sprockets (>= 3.0.0)
|
188
|
+
statsd-ruby (1.4.0)
|
189
|
+
thor (0.19.4)
|
190
|
+
thread_safe (0.3.6)
|
191
|
+
tilt (2.0.7)
|
192
|
+
timecop (0.7.1)
|
193
|
+
tzinfo (1.2.3)
|
194
|
+
thread_safe (~> 0.1)
|
195
|
+
unicode-display_width (1.3.0)
|
196
|
+
websocket-driver (0.6.5)
|
197
|
+
websocket-extensions (>= 0.1.0)
|
198
|
+
websocket-extensions (0.1.2)
|
199
|
+
wwtd (1.3.0)
|
200
|
+
|
201
|
+
PLATFORMS
|
202
|
+
ruby
|
203
|
+
|
204
|
+
DEPENDENCIES
|
205
|
+
bump
|
206
|
+
bundler
|
207
|
+
byebug
|
208
|
+
database_cleaner (= 1.6.1)
|
209
|
+
factory_girl
|
210
|
+
inst-jobs-statsd!
|
211
|
+
pg
|
212
|
+
pry
|
213
|
+
rails (~> 5.1.0)
|
214
|
+
rake
|
215
|
+
rspec (= 3.4.0)
|
216
|
+
rubocop (~> 0)
|
217
|
+
simplecov (~> 0.14)
|
218
|
+
sinatra (= 2.0.0.beta2)
|
219
|
+
sinatra-contrib (= 2.0.0.beta2)
|
220
|
+
timecop
|
221
|
+
wwtd (~> 1.3.0)
|
222
|
+
|
223
|
+
BUNDLED WITH
|
224
|
+
1.15.4
|
@@ -0,0 +1,30 @@
|
|
1
|
+
RSpec.describe InstJobsStatsd::JobsTracker do
|
2
|
+
describe '.track' do
|
3
|
+
it 'calls the block' do
|
4
|
+
@done_in_block = false
|
5
|
+
expect do
|
6
|
+
InstJobsStatsd::JobsTracker.track do
|
7
|
+
@done_in_block = true
|
8
|
+
end
|
9
|
+
end.to(change { @done_in_block })
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '.initialize' do
|
14
|
+
it 'enables everything' do
|
15
|
+
expect(InstJobsStatsd::Stats::Counters::Failed).to receive(:enable)
|
16
|
+
expect(InstJobsStatsd::Stats::Counters::Orphaned).to receive(:enable)
|
17
|
+
expect(InstJobsStatsd::Stats::Counters::Run).to receive(:enable)
|
18
|
+
|
19
|
+
expect(InstJobsStatsd::Stats::Periodic::Failed).to receive(:enable)
|
20
|
+
expect(InstJobsStatsd::Stats::Periodic::Queue).to receive(:enable)
|
21
|
+
expect(InstJobsStatsd::Stats::Periodic::Run).to receive(:enable)
|
22
|
+
|
23
|
+
expect(InstJobsStatsd::Stats::Timing::Failed).to receive(:enable)
|
24
|
+
expect(InstJobsStatsd::Stats::Timing::Perform).to receive(:enable)
|
25
|
+
expect(InstJobsStatsd::Stats::Timing::Pop).to receive(:enable)
|
26
|
+
|
27
|
+
InstJobsStatsd::JobsTracker.new
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
RSpec.describe InstJobsStatsd::Naming do
|
2
|
+
describe '.qualified_names' do
|
3
|
+
subject { InstJobsStatsd::Naming.qualified_names(stat_name, job) }
|
4
|
+
let(:stat_name) { :wut }
|
5
|
+
|
6
|
+
context 'when no job is given' do
|
7
|
+
let(:job) { nil }
|
8
|
+
it { should eq ['delayedjob.wut'] }
|
9
|
+
end
|
10
|
+
|
11
|
+
context 'when job is given' do
|
12
|
+
let(:job) { build :job }
|
13
|
+
it { should include 'delayedjob.wut.tag.Test-Job.perform' }
|
14
|
+
|
15
|
+
context 'job tag is unusual' do
|
16
|
+
let(:job) { build :job, tag: 'periodic__Something_on_a_schedule' }
|
17
|
+
it { should include 'delayedjob.wut.tag.periodic__Something_on_a_schedule' }
|
18
|
+
end
|
19
|
+
|
20
|
+
context 'job tag is dynamic' do
|
21
|
+
let(:job) { build :job, tag: '<Class:0x00000004f575b8>#perform' }
|
22
|
+
it { should eq ['delayedjob.wut'] }
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|