inst-jobs-statsd 1.2.3 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3de8c2ebb6a0209eece2b69f072091c760908020c2957334e34303dcf209305
4
- data.tar.gz: 5fb37614c812c728b8448f447597d1b4b6d9c7f6856cdb5052ea36ea3d47cb40
3
+ metadata.gz: da19d398392f2c835e41b4c4e5c8090670e2a9be9e7db4b92e40dbf513d3af92
4
+ data.tar.gz: a96644d13a948749cd23f41fa1bd93a588962693c8857723e97b62693ce9751f
5
5
  SHA512:
6
- metadata.gz: 912a311942077658bed03600aa01cc2c5fd114ec381a04b38173a1573d1c956f5a76fdebdc2ff5b26707fe1ba4b0039748b225ce4647c7b0291849dbd8d7f980
7
- data.tar.gz: e1ee70af317c0a531fb005be42541b5cb4a1813afa5d1d275314eb7bd1873e00edd07989fa546453b86786034952f01cdb5eeeed77272e79d404b34afe007170
6
+ metadata.gz: d0979ccc421c624de3127f7dd63e0b43913a92262a5895cfac07fde37c5a681552e17d84ba4d0eadb66eb3a3c43cf69a2fcf7628eba9a24244f565fb47194380
7
+ data.tar.gz: 660fe2b7ed35660a7c33e1525eaeec9beff4a89c5d1690f6edb070ffc16220266d280bf4ec797a9e8f80042004ebd7b8bbdfd05d6641080a3fe686a5b9891f15
@@ -45,6 +45,7 @@ module InstJobsStatsd
45
45
  tag = obj_tag
46
46
  tag = [obj_tag, method_tag].join('.') if method_tag.present?
47
47
  tags[:tag] = tag
48
+ tags
48
49
  end
49
50
 
50
51
  def self.custom_tags(job, tags)
@@ -1,3 +1,3 @@
1
1
  module InstJobsStatsd
2
- VERSION = '1.2.3'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  end
@@ -2,6 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :path=>"../../"
4
4
 
5
- gem "rails", "~> 4.2.5"
6
- gem "after_transaction_commit", "<2"
7
- gem 'test_after_commit', '0.4.1'
5
+ gem "rails", "~> 4.2.11"
6
+ gem "pg", "~> 0.21.0"
7
+ gem "after_transaction_commit", "< 2"
8
+ gem "test_after_commit", "1.1.0"
@@ -2,6 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :path=>"../../"
4
4
 
5
- gem "rails", "~> 5.1.0"
6
- gem 'sinatra', "2.0.0.beta2"
7
- gem 'sinatra-contrib', "2.0.0.beta2"
5
+ gem "rails", "~> 5.1.7"
6
+ gem "sinatra", "~> 2.0.8"
7
+ gem "sinatra-contrib", "~> 2.0.8"
8
+ gem "sprockets", "~> 3.7" # 4.0+ requires Ruby 2.5
@@ -0,0 +1,227 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ inst-jobs-statsd (1.3.0)
5
+ inst-jobs (>= 0.15, < 0.16)
6
+ inst_statsd (>= 2.1.2, < 3.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.1.7)
12
+ actionpack (= 5.1.7)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.1.7)
16
+ actionpack (= 5.1.7)
17
+ actionview (= 5.1.7)
18
+ activejob (= 5.1.7)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.1.7)
22
+ actionview (= 5.1.7)
23
+ activesupport (= 5.1.7)
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.7)
29
+ activesupport (= 5.1.7)
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.7)
35
+ activesupport (= 5.1.7)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.1.7)
38
+ activesupport (= 5.1.7)
39
+ activerecord (5.1.7)
40
+ activemodel (= 5.1.7)
41
+ activesupport (= 5.1.7)
42
+ arel (~> 8.0)
43
+ activesupport (5.1.7)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (>= 0.7, < 2)
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.7)
52
+ rails (>= 3.2)
53
+ ast (2.4.0)
54
+ backports (3.15.0)
55
+ builder (3.2.4)
56
+ bump (0.8.0)
57
+ byebug (11.1.1)
58
+ coderay (1.1.2)
59
+ concurrent-ruby (1.1.5)
60
+ crass (1.0.6)
61
+ database_cleaner (1.8.1)
62
+ diff-lcs (1.3)
63
+ docile (1.3.2)
64
+ dogstatsd-ruby (4.6.0)
65
+ erubi (1.9.0)
66
+ et-orbi (1.2.2)
67
+ tzinfo
68
+ factory_girl (4.9.0)
69
+ activesupport (>= 3.0.0)
70
+ fugit (1.3.3)
71
+ et-orbi (~> 1.1, >= 1.1.8)
72
+ raabro (~> 1.1)
73
+ globalid (0.4.2)
74
+ activesupport (>= 4.2.0)
75
+ i18n (1.8.2)
76
+ concurrent-ruby (~> 1.0)
77
+ inst-jobs (0.15.15)
78
+ activerecord (>= 4.2)
79
+ activesupport (>= 4.2)
80
+ after_transaction_commit (>= 1.0, < 3)
81
+ fugit (~> 1.3)
82
+ railties (>= 4.2)
83
+ redis (> 3.0)
84
+ redis-scripting (~> 1.0.1)
85
+ inst_statsd (2.1.6)
86
+ aroi (~> 0.0.7)
87
+ dogstatsd-ruby (~> 4.2)
88
+ statsd-ruby (~> 1.0)
89
+ loofah (2.4.0)
90
+ crass (~> 1.0.2)
91
+ nokogiri (>= 1.5.9)
92
+ mail (2.7.1)
93
+ mini_mime (>= 0.1.1)
94
+ method_source (0.9.2)
95
+ mini_mime (1.0.2)
96
+ mini_portile2 (2.4.0)
97
+ minitest (5.14.0)
98
+ multi_json (1.14.1)
99
+ mustermann (1.1.1)
100
+ ruby2_keywords (~> 0.0.1)
101
+ nio4r (2.5.2)
102
+ nokogiri (1.10.7)
103
+ mini_portile2 (~> 2.4.0)
104
+ parser (2.7.0.2)
105
+ ast (~> 2.4.0)
106
+ pg (1.2.2)
107
+ powerpack (0.1.2)
108
+ pry (0.12.2)
109
+ coderay (~> 1.1.0)
110
+ method_source (~> 0.9.0)
111
+ raabro (1.1.6)
112
+ rack (2.1.2)
113
+ rack-protection (2.0.8.1)
114
+ rack
115
+ rack-test (1.1.0)
116
+ rack (>= 1.0, < 3)
117
+ rails (5.1.7)
118
+ actioncable (= 5.1.7)
119
+ actionmailer (= 5.1.7)
120
+ actionpack (= 5.1.7)
121
+ actionview (= 5.1.7)
122
+ activejob (= 5.1.7)
123
+ activemodel (= 5.1.7)
124
+ activerecord (= 5.1.7)
125
+ activesupport (= 5.1.7)
126
+ bundler (>= 1.3.0)
127
+ railties (= 5.1.7)
128
+ sprockets-rails (>= 2.0.0)
129
+ rails-dom-testing (2.0.3)
130
+ activesupport (>= 4.2.0)
131
+ nokogiri (>= 1.6)
132
+ rails-html-sanitizer (1.3.0)
133
+ loofah (~> 2.3)
134
+ railties (5.1.7)
135
+ actionpack (= 5.1.7)
136
+ activesupport (= 5.1.7)
137
+ method_source
138
+ rake (>= 0.8.7)
139
+ thor (>= 0.18.1, < 2.0)
140
+ rainbow (2.2.2)
141
+ rake
142
+ rake (13.0.1)
143
+ redis (4.1.3)
144
+ redis-scripting (1.0.1)
145
+ redis (>= 3.0)
146
+ rspec (3.9.0)
147
+ rspec-core (~> 3.9.0)
148
+ rspec-expectations (~> 3.9.0)
149
+ rspec-mocks (~> 3.9.0)
150
+ rspec-core (3.9.1)
151
+ rspec-support (~> 3.9.1)
152
+ rspec-expectations (3.9.0)
153
+ diff-lcs (>= 1.2.0, < 2.0)
154
+ rspec-support (~> 3.9.0)
155
+ rspec-mocks (3.9.1)
156
+ diff-lcs (>= 1.2.0, < 2.0)
157
+ rspec-support (~> 3.9.0)
158
+ rspec-support (3.9.2)
159
+ rubocop (0.48.1)
160
+ parser (>= 2.3.3.1, < 3.0)
161
+ powerpack (~> 0.1)
162
+ rainbow (>= 1.99.1, < 3.0)
163
+ ruby-progressbar (~> 1.7)
164
+ unicode-display_width (~> 1.0, >= 1.0.1)
165
+ ruby-progressbar (1.10.1)
166
+ ruby2_keywords (0.0.2)
167
+ simplecov (0.18.1)
168
+ docile (~> 1.1)
169
+ simplecov-html (~> 0.11.0)
170
+ simplecov-html (0.11.0)
171
+ sinatra (2.0.8.1)
172
+ mustermann (~> 1.0)
173
+ rack (~> 2.0)
174
+ rack-protection (= 2.0.8.1)
175
+ tilt (~> 2.0)
176
+ sinatra-contrib (2.0.8.1)
177
+ backports (>= 2.8.2)
178
+ multi_json
179
+ mustermann (~> 1.0)
180
+ rack-protection (= 2.0.8.1)
181
+ sinatra (= 2.0.8.1)
182
+ tilt (~> 2.0)
183
+ sprockets (3.7.2)
184
+ concurrent-ruby (~> 1.0)
185
+ rack (> 1, < 3)
186
+ sprockets-rails (3.2.1)
187
+ actionpack (>= 4.0)
188
+ activesupport (>= 4.0)
189
+ sprockets (>= 3.0.0)
190
+ statsd-ruby (1.4.0)
191
+ thor (1.0.1)
192
+ thread_safe (0.3.6)
193
+ tilt (2.0.10)
194
+ timecop (0.9.1)
195
+ tzinfo (1.2.6)
196
+ thread_safe (~> 0.1)
197
+ unicode-display_width (1.6.1)
198
+ websocket-driver (0.6.5)
199
+ websocket-extensions (>= 0.1.0)
200
+ websocket-extensions (0.1.4)
201
+ wwtd (1.4.0)
202
+
203
+ PLATFORMS
204
+ ruby
205
+
206
+ DEPENDENCIES
207
+ bump
208
+ bundler
209
+ byebug
210
+ database_cleaner (~> 1.7)
211
+ factory_girl
212
+ inst-jobs-statsd!
213
+ pg (~> 1.2)
214
+ pry
215
+ rails (~> 5.1.7)
216
+ rake
217
+ rspec (~> 3.9)
218
+ rubocop (~> 0.48.0)
219
+ simplecov (~> 0.17)
220
+ sinatra (~> 2.0.8)
221
+ sinatra-contrib (~> 2.0.8)
222
+ sprockets (~> 3.7)
223
+ timecop
224
+ wwtd (~> 1.4.0)
225
+
226
+ BUNDLED WITH
227
+ 2.0.2
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path=>"../../"
4
+
5
+ gem "rails", "~> 6.0"
6
+ gem "sinatra", "~> 2.0.8"
7
+ gem "sinatra-contrib", "~> 2.0.8"
@@ -0,0 +1,251 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ inst-jobs-statsd (1.3.0)
5
+ inst-jobs (>= 0.15, < 0.16)
6
+ inst_statsd (>= 2.1.2, < 3.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (6.0.2.1)
12
+ actionpack (= 6.0.2.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.0.2.1)
16
+ actionpack (= 6.0.2.1)
17
+ activejob (= 6.0.2.1)
18
+ activerecord (= 6.0.2.1)
19
+ activestorage (= 6.0.2.1)
20
+ activesupport (= 6.0.2.1)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.0.2.1)
23
+ actionpack (= 6.0.2.1)
24
+ actionview (= 6.0.2.1)
25
+ activejob (= 6.0.2.1)
26
+ mail (~> 2.5, >= 2.5.4)
27
+ rails-dom-testing (~> 2.0)
28
+ actionpack (6.0.2.1)
29
+ actionview (= 6.0.2.1)
30
+ activesupport (= 6.0.2.1)
31
+ rack (~> 2.0, >= 2.0.8)
32
+ rack-test (>= 0.6.3)
33
+ rails-dom-testing (~> 2.0)
34
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
+ actiontext (6.0.2.1)
36
+ actionpack (= 6.0.2.1)
37
+ activerecord (= 6.0.2.1)
38
+ activestorage (= 6.0.2.1)
39
+ activesupport (= 6.0.2.1)
40
+ nokogiri (>= 1.8.5)
41
+ actionview (6.0.2.1)
42
+ activesupport (= 6.0.2.1)
43
+ builder (~> 3.1)
44
+ erubi (~> 1.4)
45
+ rails-dom-testing (~> 2.0)
46
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
+ activejob (6.0.2.1)
48
+ activesupport (= 6.0.2.1)
49
+ globalid (>= 0.3.6)
50
+ activemodel (6.0.2.1)
51
+ activesupport (= 6.0.2.1)
52
+ activerecord (6.0.2.1)
53
+ activemodel (= 6.0.2.1)
54
+ activesupport (= 6.0.2.1)
55
+ activestorage (6.0.2.1)
56
+ actionpack (= 6.0.2.1)
57
+ activejob (= 6.0.2.1)
58
+ activerecord (= 6.0.2.1)
59
+ marcel (~> 0.3.1)
60
+ activesupport (6.0.2.1)
61
+ concurrent-ruby (~> 1.0, >= 1.0.2)
62
+ i18n (>= 0.7, < 2)
63
+ minitest (~> 5.1)
64
+ tzinfo (~> 1.1)
65
+ zeitwerk (~> 2.2)
66
+ after_transaction_commit (2.0.0)
67
+ activerecord (>= 5.0)
68
+ aroi (0.0.7)
69
+ rails (>= 3.2)
70
+ ast (2.4.0)
71
+ backports (3.15.0)
72
+ builder (3.2.4)
73
+ bump (0.8.0)
74
+ byebug (11.1.1)
75
+ coderay (1.1.2)
76
+ concurrent-ruby (1.1.5)
77
+ crass (1.0.6)
78
+ database_cleaner (1.8.1)
79
+ diff-lcs (1.3)
80
+ docile (1.3.2)
81
+ dogstatsd-ruby (4.6.0)
82
+ erubi (1.9.0)
83
+ et-orbi (1.2.2)
84
+ tzinfo
85
+ factory_girl (4.9.0)
86
+ activesupport (>= 3.0.0)
87
+ fugit (1.3.3)
88
+ et-orbi (~> 1.1, >= 1.1.8)
89
+ raabro (~> 1.1)
90
+ globalid (0.4.2)
91
+ activesupport (>= 4.2.0)
92
+ i18n (1.8.2)
93
+ concurrent-ruby (~> 1.0)
94
+ inst-jobs (0.15.15)
95
+ activerecord (>= 4.2)
96
+ activesupport (>= 4.2)
97
+ after_transaction_commit (>= 1.0, < 3)
98
+ fugit (~> 1.3)
99
+ railties (>= 4.2)
100
+ redis (> 3.0)
101
+ redis-scripting (~> 1.0.1)
102
+ inst_statsd (2.1.6)
103
+ aroi (~> 0.0.7)
104
+ dogstatsd-ruby (~> 4.2)
105
+ statsd-ruby (~> 1.0)
106
+ loofah (2.4.0)
107
+ crass (~> 1.0.2)
108
+ nokogiri (>= 1.5.9)
109
+ mail (2.7.1)
110
+ mini_mime (>= 0.1.1)
111
+ marcel (0.3.3)
112
+ mimemagic (~> 0.3.2)
113
+ method_source (0.9.2)
114
+ mimemagic (0.3.4)
115
+ mini_mime (1.0.2)
116
+ mini_portile2 (2.4.0)
117
+ minitest (5.14.0)
118
+ multi_json (1.14.1)
119
+ mustermann (1.1.1)
120
+ ruby2_keywords (~> 0.0.1)
121
+ nio4r (2.5.2)
122
+ nokogiri (1.10.7)
123
+ mini_portile2 (~> 2.4.0)
124
+ parser (2.7.0.2)
125
+ ast (~> 2.4.0)
126
+ pg (1.2.2)
127
+ powerpack (0.1.2)
128
+ pry (0.12.2)
129
+ coderay (~> 1.1.0)
130
+ method_source (~> 0.9.0)
131
+ raabro (1.1.6)
132
+ rack (2.1.2)
133
+ rack-protection (2.0.8.1)
134
+ rack
135
+ rack-test (1.1.0)
136
+ rack (>= 1.0, < 3)
137
+ rails (6.0.2.1)
138
+ actioncable (= 6.0.2.1)
139
+ actionmailbox (= 6.0.2.1)
140
+ actionmailer (= 6.0.2.1)
141
+ actionpack (= 6.0.2.1)
142
+ actiontext (= 6.0.2.1)
143
+ actionview (= 6.0.2.1)
144
+ activejob (= 6.0.2.1)
145
+ activemodel (= 6.0.2.1)
146
+ activerecord (= 6.0.2.1)
147
+ activestorage (= 6.0.2.1)
148
+ activesupport (= 6.0.2.1)
149
+ bundler (>= 1.3.0)
150
+ railties (= 6.0.2.1)
151
+ sprockets-rails (>= 2.0.0)
152
+ rails-dom-testing (2.0.3)
153
+ activesupport (>= 4.2.0)
154
+ nokogiri (>= 1.6)
155
+ rails-html-sanitizer (1.3.0)
156
+ loofah (~> 2.3)
157
+ railties (6.0.2.1)
158
+ actionpack (= 6.0.2.1)
159
+ activesupport (= 6.0.2.1)
160
+ method_source
161
+ rake (>= 0.8.7)
162
+ thor (>= 0.20.3, < 2.0)
163
+ rainbow (2.2.2)
164
+ rake
165
+ rake (13.0.1)
166
+ redis (4.1.3)
167
+ redis-scripting (1.0.1)
168
+ redis (>= 3.0)
169
+ rspec (3.9.0)
170
+ rspec-core (~> 3.9.0)
171
+ rspec-expectations (~> 3.9.0)
172
+ rspec-mocks (~> 3.9.0)
173
+ rspec-core (3.9.1)
174
+ rspec-support (~> 3.9.1)
175
+ rspec-expectations (3.9.0)
176
+ diff-lcs (>= 1.2.0, < 2.0)
177
+ rspec-support (~> 3.9.0)
178
+ rspec-mocks (3.9.1)
179
+ diff-lcs (>= 1.2.0, < 2.0)
180
+ rspec-support (~> 3.9.0)
181
+ rspec-support (3.9.2)
182
+ rubocop (0.48.1)
183
+ parser (>= 2.3.3.1, < 3.0)
184
+ powerpack (~> 0.1)
185
+ rainbow (>= 1.99.1, < 3.0)
186
+ ruby-progressbar (~> 1.7)
187
+ unicode-display_width (~> 1.0, >= 1.0.1)
188
+ ruby-progressbar (1.10.1)
189
+ ruby2_keywords (0.0.2)
190
+ simplecov (0.18.1)
191
+ docile (~> 1.1)
192
+ simplecov-html (~> 0.11.0)
193
+ simplecov-html (0.11.0)
194
+ sinatra (2.0.8.1)
195
+ mustermann (~> 1.0)
196
+ rack (~> 2.0)
197
+ rack-protection (= 2.0.8.1)
198
+ tilt (~> 2.0)
199
+ sinatra-contrib (2.0.8.1)
200
+ backports (>= 2.8.2)
201
+ multi_json
202
+ mustermann (~> 1.0)
203
+ rack-protection (= 2.0.8.1)
204
+ sinatra (= 2.0.8.1)
205
+ tilt (~> 2.0)
206
+ sprockets (3.7.2)
207
+ concurrent-ruby (~> 1.0)
208
+ rack (> 1, < 3)
209
+ sprockets-rails (3.2.1)
210
+ actionpack (>= 4.0)
211
+ activesupport (>= 4.0)
212
+ sprockets (>= 3.0.0)
213
+ statsd-ruby (1.4.0)
214
+ thor (1.0.1)
215
+ thread_safe (0.3.6)
216
+ tilt (2.0.10)
217
+ timecop (0.9.1)
218
+ tzinfo (1.2.6)
219
+ thread_safe (~> 0.1)
220
+ unicode-display_width (1.6.1)
221
+ websocket-driver (0.7.1)
222
+ websocket-extensions (>= 0.1.0)
223
+ websocket-extensions (0.1.4)
224
+ wwtd (1.4.0)
225
+ zeitwerk (2.2.2)
226
+
227
+ PLATFORMS
228
+ ruby
229
+
230
+ DEPENDENCIES
231
+ bump
232
+ bundler
233
+ byebug
234
+ database_cleaner (~> 1.7)
235
+ factory_girl
236
+ inst-jobs-statsd!
237
+ pg (~> 1.2)
238
+ pry
239
+ rails (~> 6.0)
240
+ rake
241
+ rspec (~> 3.9)
242
+ rubocop (~> 0.48.0)
243
+ simplecov (~> 0.17)
244
+ sinatra (~> 2.0.8)
245
+ sinatra-contrib (~> 2.0.8)
246
+ sprockets (~> 3.7)
247
+ timecop
248
+ wwtd (~> 1.4.0)
249
+
250
+ BUNDLED WITH
251
+ 2.0.1
@@ -40,5 +40,17 @@ RSpec.describe InstJobsStatsd::Naming do
40
40
  it { should include 'delayedjob.wut.region_name' }
41
41
  it { should include 'delayedjob.wut.region_name.tag.a_tag_name' }
42
42
  end
43
+
44
+ describe '.dd_job_tags' do
45
+ it 'works' do
46
+ job = double(tag: 'Account.run_reports_later', shard: double(id: 101), strand: 'special')
47
+ expect(InstJobsStatsd::Naming.dd_job_tags(job)).to eq({ tag: 'Account.run_reports_later', jobshard: 101})
48
+ end
49
+
50
+ it 'properly munges job tags' do
51
+ job = double(tag: 'Quizzes::Quiz#do_something', strand: nil)
52
+ expect(InstJobsStatsd::Naming.dd_job_tags(job)).to eq({ tag: 'Quizzes-Quiz.do_something'})
53
+ end
54
+ end
43
55
  end
44
56
  end
@@ -35,7 +35,15 @@ ActiveRecord::Base.establish_connection(connection_config)
35
35
 
36
36
  # Apply the migrations from the inst-jobs gem
37
37
  inst_jobs_spec = Gem::Specification.find_by_name('inst-jobs')
38
- ActiveRecord::Migrator.migrate(inst_jobs_spec.gem_dir + '/db/migrate')
39
- ActiveRecord::Migrator.migrate(inst_jobs_spec.gem_dir + '/spec/migrate')
38
+ if ::Rails.version >= '6'
39
+ sm = ActiveRecord::Base.connection.schema_migration
40
+ migrations = ActiveRecord::MigrationContext.new(inst_jobs_spec.gem_dir + '/db/migrate', sm).migrations
41
+ ActiveRecord::Migrator.new(:up, migrations, sm).migrate
42
+ migrations = ActiveRecord::MigrationContext.new(inst_jobs_spec.gem_dir + '/spec/migrate', sm).migrations
43
+ ActiveRecord::Migrator.new(:up, migrations, sm).migrate
44
+ else
45
+ ActiveRecord::Migrator.migrate(inst_jobs_spec.gem_dir + '/db/migrate')
46
+ ActiveRecord::Migrator.migrate(inst_jobs_spec.gem_dir + '/spec/migrate')
47
+ end
40
48
  Delayed::Backend::ActiveRecord::Job.reset_column_information
41
49
  Delayed::Backend::ActiveRecord::Job::Failed.reset_column_information
@@ -1,4 +1,4 @@
1
- if /^2\.4/ =~ RUBY_VERSION && /50\./ =~ ENV['BUNDLE_GEMFILE'] # Limit coverage to one build
1
+ if /^2\.5/ =~ RUBY_VERSION && /51\./ =~ ENV['BUNDLE_GEMFILE'] # Limit coverage to one build
2
2
  require 'simplecov'
3
3
 
4
4
  SimpleCov.start do
@@ -6,8 +6,6 @@ if /^2\.4/ =~ RUBY_VERSION && /50\./ =~ ENV['BUNDLE_GEMFILE'] # Limit coverage t
6
6
  add_filter 'spec'
7
7
  track_files 'lib/**/*.rb'
8
8
  end
9
-
10
- SimpleCov.minimum_coverage(100)
11
9
  end
12
10
 
13
11
  require 'inst-jobs-statsd'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inst-jobs-statsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Slade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-25 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inst-jobs
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.13'
19
+ version: '0.15'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0.16'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.13'
29
+ version: '0.15'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0.16'
@@ -96,16 +96,16 @@ dependencies:
96
96
  name: database_cleaner
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '='
99
+ - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: 1.6.1
101
+ version: '1.7'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - '='
106
+ - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: 1.6.1
108
+ version: '1.7'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: factory_girl
111
111
  requirement: !ruby/object:Gem::Requirement
@@ -124,16 +124,16 @@ dependencies:
124
124
  name: pg
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - '='
127
+ - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: 0.21.0
129
+ version: '1.2'
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
- - - '='
134
+ - - "~>"
135
135
  - !ruby/object:Gem::Version
136
- version: 0.21.0
136
+ version: '1.2'
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: pry
139
139
  requirement: !ruby/object:Gem::Requirement
@@ -166,44 +166,44 @@ dependencies:
166
166
  name: rspec
167
167
  requirement: !ruby/object:Gem::Requirement
168
168
  requirements:
169
- - - '='
169
+ - - "~>"
170
170
  - !ruby/object:Gem::Version
171
- version: 3.4.0
171
+ version: '3.9'
172
172
  type: :development
173
173
  prerelease: false
174
174
  version_requirements: !ruby/object:Gem::Requirement
175
175
  requirements:
176
- - - '='
176
+ - - "~>"
177
177
  - !ruby/object:Gem::Version
178
- version: 3.4.0
178
+ version: '3.9'
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: rubocop
181
181
  requirement: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - "~>"
184
184
  - !ruby/object:Gem::Version
185
- version: '0'
185
+ version: 0.48.0
186
186
  type: :development
187
187
  prerelease: false
188
188
  version_requirements: !ruby/object:Gem::Requirement
189
189
  requirements:
190
190
  - - "~>"
191
191
  - !ruby/object:Gem::Version
192
- version: '0'
192
+ version: 0.48.0
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: simplecov
195
195
  requirement: !ruby/object:Gem::Requirement
196
196
  requirements:
197
197
  - - "~>"
198
198
  - !ruby/object:Gem::Version
199
- version: '0.14'
199
+ version: '0.17'
200
200
  type: :development
201
201
  prerelease: false
202
202
  version_requirements: !ruby/object:Gem::Requirement
203
203
  requirements:
204
204
  - - "~>"
205
205
  - !ruby/object:Gem::Version
206
- version: '0.14'
206
+ version: '0.17'
207
207
  - !ruby/object:Gem::Dependency
208
208
  name: timecop
209
209
  requirement: !ruby/object:Gem::Requirement
@@ -224,14 +224,14 @@ dependencies:
224
224
  requirements:
225
225
  - - "~>"
226
226
  - !ruby/object:Gem::Version
227
- version: 1.3.0
227
+ version: 1.4.0
228
228
  type: :development
229
229
  prerelease: false
230
230
  version_requirements: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - "~>"
233
233
  - !ruby/object:Gem::Version
234
- version: 1.3.0
234
+ version: 1.4.0
235
235
  description:
236
236
  email:
237
237
  - jslade@instructure.com
@@ -259,8 +259,10 @@ files:
259
259
  - spec/factories/jobs.rb
260
260
  - spec/factories/workers.rb
261
261
  - spec/gemfiles/42.gemfile
262
- - spec/gemfiles/50.gemfile
263
262
  - spec/gemfiles/51.gemfile
263
+ - spec/gemfiles/51.gemfile.lock
264
+ - spec/gemfiles/60.gemfile
265
+ - spec/gemfiles/60.gemfile.lock
264
266
  - spec/inst_jobs_statsd/jobs_tracker_spec.rb
265
267
  - spec/inst_jobs_statsd/naming_spec.rb
266
268
  - spec/inst_jobs_statsd/stats/counters/failed_spec.rb
@@ -290,15 +292,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
290
292
  requirements:
291
293
  - - ">="
292
294
  - !ruby/object:Gem::Version
293
- version: '2.3'
295
+ version: '2.4'
294
296
  required_rubygems_version: !ruby/object:Gem::Requirement
295
297
  requirements:
296
298
  - - ">="
297
299
  - !ruby/object:Gem::Version
298
300
  version: '0'
299
301
  requirements: []
300
- rubyforge_project:
301
- rubygems_version: 2.7.6
302
+ rubygems_version: 3.0.3
302
303
  signing_key:
303
304
  specification_version: 4
304
305
  summary: Stats reporting for inst-jobs
@@ -319,8 +320,10 @@ test_files:
319
320
  - spec/spec_helper.rb
320
321
  - spec/setup_test_db.rb
321
322
  - spec/matchers.rb
323
+ - spec/gemfiles/51.gemfile.lock
324
+ - spec/gemfiles/60.gemfile.lock
325
+ - spec/gemfiles/60.gemfile
322
326
  - spec/gemfiles/42.gemfile
323
- - spec/gemfiles/50.gemfile
324
327
  - spec/gemfiles/51.gemfile
325
328
  - spec/factories/workers.rb
326
329
  - spec/factories/jobs.rb
@@ -1,7 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path=>"../../"
4
-
5
- gem "rails", "~> 5.0.0"
6
- gem 'sinatra', "2.0.0.beta2"
7
- gem 'sinatra-contrib', "2.0.0.beta2"