inst-jobs-statsd 1.0.0 → 1.1.0

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
  SHA1:
3
- metadata.gz: ea3cc2f583c0d355a0ab7440affd123343fa8de1
4
- data.tar.gz: 7fca023059959468544941e582d9d805caf2f3e1
3
+ metadata.gz: d4f584928e34b9db591194e264505db9d06baf3d
4
+ data.tar.gz: 605b11ee3f052360433128f16f1a8f841c30ffd2
5
5
  SHA512:
6
- metadata.gz: 116fada163459dab67b7d70a00d0a8191438636bffe7fa5c95e25b06ad45a1ac8a60e28f628b50333821f109cdca3e182d75a1eb145af54b9992b48d1f067a46
7
- data.tar.gz: fe822cd09c1421b0d694b2ea8255e34f47e98b402275e9ba4c4b262f1b953127a00f122b58376299971c02a2b1fec9305529927db5ad49a817df55ca70749ef7
6
+ metadata.gz: 0dd316c0d3e447121750a462f43b072ed3430776c56f628cf8e6f83cef459c842c5ccde7319169fc2593b9642e39a7155c870e4c04ea7f9ae9504dc5f09300c7
7
+ data.tar.gz: 19750a13d6dc4dc5c5ad3476c69f82ec0fcdf63cd3413fe70fe73b6506062d08ec23663672771703f71bc696092f4776419446638b994a80eb9755bb19ce5d1c
@@ -12,7 +12,8 @@ module InstJobsStatsd
12
12
  names = ["#{basename}.#{stat_name}"]
13
13
  tagged = tagged_stat(names[0], job)
14
14
  names << tagged if tagged.present?
15
- names
15
+ names << region_tags(names)
16
+ names.flatten.compact
16
17
  end
17
18
 
18
19
  # Given a stat name, add a suffix to it to make it
@@ -45,5 +46,15 @@ module InstJobsStatsd
45
46
 
46
47
  tags
47
48
  end
49
+
50
+ # We are using all existing stat names here because we do not want
51
+ # to break existing dependencies on the non-regioned data
52
+ def self.region_tags(stat_names)
53
+ return unless ENV['INST_JOBS_STATSD_NAMESPACE']
54
+
55
+ split_names = stat_names.map{ |names| names.split('.') }
56
+ split_names.map{ |split_names| split_names.insert(2, ENV['INST_JOBS_STATSD_NAMESPACE']) }
57
+ split_names.map{ |regioned_names| regioned_names.join('.') }
58
+ end
48
59
  end
49
60
  end
@@ -1,3 +1,3 @@
1
1
  module InstJobsStatsd
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
@@ -8,36 +8,36 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionmailer (4.2.9)
12
- actionpack (= 4.2.9)
13
- actionview (= 4.2.9)
14
- activejob (= 4.2.9)
11
+ actionmailer (4.2.10)
12
+ actionpack (= 4.2.10)
13
+ actionview (= 4.2.10)
14
+ activejob (= 4.2.10)
15
15
  mail (~> 2.5, >= 2.5.4)
16
16
  rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.9)
18
- actionview (= 4.2.9)
19
- activesupport (= 4.2.9)
17
+ actionpack (4.2.10)
18
+ actionview (= 4.2.10)
19
+ activesupport (= 4.2.10)
20
20
  rack (~> 1.6)
21
21
  rack-test (~> 0.6.2)
22
22
  rails-dom-testing (~> 1.0, >= 1.0.5)
23
23
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
- actionview (4.2.9)
25
- activesupport (= 4.2.9)
24
+ actionview (4.2.10)
25
+ activesupport (= 4.2.10)
26
26
  builder (~> 3.1)
27
27
  erubis (~> 2.7.0)
28
28
  rails-dom-testing (~> 1.0, >= 1.0.5)
29
29
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
- activejob (4.2.9)
31
- activesupport (= 4.2.9)
30
+ activejob (4.2.10)
31
+ activesupport (= 4.2.10)
32
32
  globalid (>= 0.3.0)
33
- activemodel (4.2.9)
34
- activesupport (= 4.2.9)
33
+ activemodel (4.2.10)
34
+ activesupport (= 4.2.10)
35
35
  builder (~> 3.1)
36
- activerecord (4.2.9)
37
- activemodel (= 4.2.9)
38
- activesupport (= 4.2.9)
36
+ activerecord (4.2.10)
37
+ activemodel (= 4.2.10)
38
+ activesupport (= 4.2.10)
39
39
  arel (~> 6.0)
40
- activesupport (4.2.9)
40
+ activesupport (4.2.10)
41
41
  i18n (~> 0.7)
42
42
  minitest (~> 5.1)
43
43
  thread_safe (~> 0.3, >= 0.3.4)
@@ -50,21 +50,23 @@ GEM
50
50
  ast (2.3.0)
51
51
  builder (3.2.3)
52
52
  bump (0.5.4)
53
- byebug (9.0.6)
54
- coderay (1.1.1)
53
+ byebug (9.1.0)
54
+ coderay (1.1.2)
55
55
  concurrent-ruby (1.0.5)
56
+ crass (1.0.3)
56
57
  database_cleaner (1.6.1)
57
58
  diff-lcs (1.3)
58
59
  docile (1.1.5)
59
60
  erubis (2.7.0)
60
- et-orbi (1.0.5)
61
+ et-orbi (1.0.8)
61
62
  tzinfo
62
- factory_girl (4.8.1)
63
+ factory_girl (4.9.0)
63
64
  activesupport (>= 3.0.0)
64
- globalid (0.4.0)
65
+ globalid (0.4.1)
65
66
  activesupport (>= 4.2.0)
66
- i18n (0.8.6)
67
- inst-jobs (0.14.0)
67
+ i18n (0.9.1)
68
+ concurrent-ruby (~> 1.0)
69
+ inst-jobs (0.14.2)
68
70
  after_transaction_commit (>= 1.0, < 3)
69
71
  rails (>= 4.2)
70
72
  redis (> 3.0)
@@ -74,57 +76,54 @@ GEM
74
76
  aroi (~> 0.0.4)
75
77
  statsd-ruby (~> 1.0)
76
78
  json (2.1.0)
77
- loofah (2.0.3)
79
+ loofah (2.1.1)
80
+ crass (~> 1.0.2)
78
81
  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)
82
+ mail (2.7.0)
83
+ mini_mime (>= 0.1.1)
84
+ method_source (0.9.0)
85
+ mini_mime (1.0.0)
86
+ mini_portile2 (2.3.0)
87
+ minitest (5.11.1)
88
+ nokogiri (1.8.1)
89
+ mini_portile2 (~> 2.3.0)
90
+ parallel (1.12.1)
91
+ parser (2.4.0.2)
92
+ ast (~> 2.3)
93
+ pg (1.0.0)
93
94
  powerpack (0.1.1)
94
- pry (0.10.4)
95
+ pry (0.11.3)
95
96
  coderay (~> 1.1.0)
96
- method_source (~> 0.8.1)
97
- slop (~> 3.4)
97
+ method_source (~> 0.9.0)
98
98
  rack (1.6.8)
99
99
  rack-test (0.6.3)
100
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)
101
+ rails (4.2.10)
102
+ actionmailer (= 4.2.10)
103
+ actionpack (= 4.2.10)
104
+ actionview (= 4.2.10)
105
+ activejob (= 4.2.10)
106
+ activemodel (= 4.2.10)
107
+ activerecord (= 4.2.10)
108
+ activesupport (= 4.2.10)
109
109
  bundler (>= 1.3.0, < 2.0)
110
- railties (= 4.2.9)
110
+ railties (= 4.2.10)
111
111
  sprockets-rails
112
112
  rails-deprecated_sanitizer (1.0.3)
113
113
  activesupport (>= 4.2.0.alpha)
114
- rails-dom-testing (1.0.8)
115
- activesupport (>= 4.2.0.beta, < 5.0)
114
+ rails-dom-testing (1.0.9)
115
+ activesupport (>= 4.2.0, < 5.0)
116
116
  nokogiri (~> 1.6)
117
117
  rails-deprecated_sanitizer (>= 1.0.1)
118
118
  rails-html-sanitizer (1.0.3)
119
119
  loofah (~> 2.0)
120
- railties (4.2.9)
121
- actionpack (= 4.2.9)
122
- activesupport (= 4.2.9)
120
+ railties (4.2.10)
121
+ actionpack (= 4.2.10)
122
+ activesupport (= 4.2.10)
123
123
  rake (>= 0.8.7)
124
124
  thor (>= 0.18.1, < 2.0)
125
- rainbow (2.2.2)
126
- rake
127
- rake (12.0.0)
125
+ rainbow (3.0.0)
126
+ rake (12.3.0)
128
127
  redis (4.0.1)
129
128
  redis-scripting (1.0.1)
130
129
  redis (>= 3.0)
@@ -141,11 +140,11 @@ GEM
141
140
  diff-lcs (>= 1.2.0, < 2.0)
142
141
  rspec-support (~> 3.4.0)
143
142
  rspec-support (3.4.1)
144
- rubocop (0.50.0)
143
+ rubocop (0.52.1)
145
144
  parallel (~> 1.10)
146
- parser (>= 2.3.3.1, < 3.0)
145
+ parser (>= 2.4.0.2, < 3.0)
147
146
  powerpack (~> 0.1)
148
- rainbow (>= 2.2.2, < 3.0)
147
+ rainbow (>= 2.2.2, < 4.0)
149
148
  ruby-progressbar (~> 1.7)
150
149
  unicode-display_width (~> 1.0, >= 1.0.1)
151
150
  ruby-progressbar (1.9.0)
@@ -156,21 +155,20 @@ GEM
156
155
  json (>= 1.8, < 3)
157
156
  simplecov-html (~> 0.10.0)
158
157
  simplecov-html (0.10.2)
159
- slop (3.6.0)
160
158
  sprockets (3.7.1)
161
159
  concurrent-ruby (~> 1.0)
162
160
  rack (> 1, < 3)
163
- sprockets-rails (3.2.0)
161
+ sprockets-rails (3.2.1)
164
162
  actionpack (>= 4.0)
165
163
  activesupport (>= 4.0)
166
164
  sprockets (>= 3.0.0)
167
165
  statsd-ruby (1.4.0)
168
166
  test_after_commit (0.4.1)
169
167
  activerecord (>= 3.2)
170
- thor (0.19.4)
168
+ thor (0.20.0)
171
169
  thread_safe (0.3.6)
172
- timecop (0.7.1)
173
- tzinfo (1.2.3)
170
+ timecop (0.9.1)
171
+ tzinfo (1.2.4)
174
172
  thread_safe (~> 0.1)
175
173
  unicode-display_width (1.3.0)
176
174
  wwtd (1.3.0)
@@ -198,4 +196,4 @@ DEPENDENCIES
198
196
  wwtd (~> 1.3.0)
199
197
 
200
198
  BUNDLED WITH
201
- 1.15.4
199
+ 1.16.1
@@ -8,39 +8,39 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.0.4)
12
- actionpack (= 5.0.4)
11
+ actioncable (5.0.6)
12
+ actionpack (= 5.0.6)
13
13
  nio4r (>= 1.2, < 3.0)
14
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)
15
+ actionmailer (5.0.6)
16
+ actionpack (= 5.0.6)
17
+ actionview (= 5.0.6)
18
+ activejob (= 5.0.6)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.0.4)
22
- actionview (= 5.0.4)
23
- activesupport (= 5.0.4)
21
+ actionpack (5.0.6)
22
+ actionview (= 5.0.6)
23
+ activesupport (= 5.0.6)
24
24
  rack (~> 2.0)
25
25
  rack-test (~> 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.0.4)
29
- activesupport (= 5.0.4)
28
+ actionview (5.0.6)
29
+ activesupport (= 5.0.6)
30
30
  builder (~> 3.1)
31
31
  erubis (~> 2.7.0)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.0.4)
35
- activesupport (= 5.0.4)
34
+ activejob (5.0.6)
35
+ activesupport (= 5.0.6)
36
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)
37
+ activemodel (5.0.6)
38
+ activesupport (= 5.0.6)
39
+ activerecord (5.0.6)
40
+ activemodel (= 5.0.6)
41
+ activesupport (= 5.0.6)
42
42
  arel (~> 7.0)
43
- activesupport (5.0.4)
43
+ activesupport (5.0.6)
44
44
  concurrent-ruby (~> 1.0, >= 1.0.2)
45
45
  i18n (~> 0.7)
46
46
  minitest (~> 5.1)
@@ -51,24 +51,26 @@ GEM
51
51
  aroi (0.0.5)
52
52
  rails (>= 3.2, < 5.2)
53
53
  ast (2.3.0)
54
- backports (3.8.0)
54
+ backports (3.11.0)
55
55
  builder (3.2.3)
56
56
  bump (0.5.4)
57
- byebug (9.0.6)
58
- coderay (1.1.1)
57
+ byebug (9.1.0)
58
+ coderay (1.1.2)
59
59
  concurrent-ruby (1.0.5)
60
+ crass (1.0.3)
60
61
  database_cleaner (1.6.1)
61
62
  diff-lcs (1.3)
62
63
  docile (1.1.5)
63
64
  erubis (2.7.0)
64
- et-orbi (1.0.5)
65
+ et-orbi (1.0.8)
65
66
  tzinfo
66
- factory_girl (4.8.1)
67
+ factory_girl (4.9.0)
67
68
  activesupport (>= 3.0.0)
68
- globalid (0.4.0)
69
+ globalid (0.4.1)
69
70
  activesupport (>= 4.2.0)
70
- i18n (0.8.6)
71
- inst-jobs (0.14.0)
71
+ i18n (0.9.1)
72
+ concurrent-ruby (~> 1.0)
73
+ inst-jobs (0.14.2)
72
74
  after_transaction_commit (>= 1.0, < 3)
73
75
  rails (>= 4.2)
74
76
  redis (> 3.0)
@@ -78,61 +80,58 @@ GEM
78
80
  aroi (~> 0.0.4)
79
81
  statsd-ruby (~> 1.0)
80
82
  json (2.1.0)
81
- loofah (2.0.3)
83
+ loofah (2.1.1)
84
+ crass (~> 1.0.2)
82
85
  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)
86
+ mail (2.7.0)
87
+ mini_mime (>= 0.1.1)
88
+ method_source (0.9.0)
89
+ mini_mime (1.0.0)
90
+ mini_portile2 (2.3.0)
91
+ minitest (5.11.1)
92
+ multi_json (1.13.1)
92
93
  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)
94
+ nio4r (2.2.0)
95
+ nokogiri (1.8.1)
96
+ mini_portile2 (~> 2.3.0)
97
+ parallel (1.12.1)
98
+ parser (2.4.0.2)
99
+ ast (~> 2.3)
99
100
  pg (0.21.0)
100
101
  powerpack (0.1.1)
101
- pry (0.10.4)
102
+ pry (0.11.3)
102
103
  coderay (~> 1.1.0)
103
- method_source (~> 0.8.1)
104
- slop (~> 3.4)
104
+ method_source (~> 0.9.0)
105
105
  rack (2.0.3)
106
106
  rack-protection (2.0.0.beta2)
107
107
  rack
108
108
  rack-test (0.6.3)
109
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)
110
+ rails (5.0.6)
111
+ actioncable (= 5.0.6)
112
+ actionmailer (= 5.0.6)
113
+ actionpack (= 5.0.6)
114
+ actionview (= 5.0.6)
115
+ activejob (= 5.0.6)
116
+ activemodel (= 5.0.6)
117
+ activerecord (= 5.0.6)
118
+ activesupport (= 5.0.6)
119
+ bundler (>= 1.3.0)
120
+ railties (= 5.0.6)
121
121
  sprockets-rails (>= 2.0.0)
122
122
  rails-dom-testing (2.0.3)
123
123
  activesupport (>= 4.2.0)
124
124
  nokogiri (>= 1.6)
125
125
  rails-html-sanitizer (1.0.3)
126
126
  loofah (~> 2.0)
127
- railties (5.0.4)
128
- actionpack (= 5.0.4)
129
- activesupport (= 5.0.4)
127
+ railties (5.0.6)
128
+ actionpack (= 5.0.6)
129
+ activesupport (= 5.0.6)
130
130
  method_source
131
131
  rake (>= 0.8.7)
132
132
  thor (>= 0.18.1, < 2.0)
133
- rainbow (2.2.2)
134
- rake
135
- rake (12.0.0)
133
+ rainbow (3.0.0)
134
+ rake (12.3.0)
136
135
  redis (4.0.1)
137
136
  redis-scripting (1.0.1)
138
137
  redis (>= 3.0)
@@ -149,11 +148,11 @@ GEM
149
148
  diff-lcs (>= 1.2.0, < 2.0)
150
149
  rspec-support (~> 3.4.0)
151
150
  rspec-support (3.4.1)
152
- rubocop (0.50.0)
151
+ rubocop (0.52.1)
153
152
  parallel (~> 1.10)
154
- parser (>= 2.3.3.1, < 3.0)
153
+ parser (>= 2.4.0.2, < 3.0)
155
154
  powerpack (~> 0.1)
156
- rainbow (>= 2.2.2, < 3.0)
155
+ rainbow (>= 2.2.2, < 4.0)
157
156
  ruby-progressbar (~> 1.7)
158
157
  unicode-display_width (~> 1.0, >= 1.0.1)
159
158
  ruby-progressbar (1.9.0)
@@ -177,25 +176,24 @@ GEM
177
176
  rack-test
178
177
  sinatra (= 2.0.0.beta2)
179
178
  tilt (>= 1.3, < 3)
180
- slop (3.6.0)
181
179
  sprockets (3.7.1)
182
180
  concurrent-ruby (~> 1.0)
183
181
  rack (> 1, < 3)
184
- sprockets-rails (3.2.0)
182
+ sprockets-rails (3.2.1)
185
183
  actionpack (>= 4.0)
186
184
  activesupport (>= 4.0)
187
185
  sprockets (>= 3.0.0)
188
186
  statsd-ruby (1.4.0)
189
- thor (0.19.4)
187
+ thor (0.20.0)
190
188
  thread_safe (0.3.6)
191
- tilt (2.0.7)
192
- timecop (0.7.1)
193
- tzinfo (1.2.3)
189
+ tilt (2.0.8)
190
+ timecop (0.9.1)
191
+ tzinfo (1.2.4)
194
192
  thread_safe (~> 0.1)
195
193
  unicode-display_width (1.3.0)
196
194
  websocket-driver (0.6.5)
197
195
  websocket-extensions (>= 0.1.0)
198
- websocket-extensions (0.1.2)
196
+ websocket-extensions (0.1.3)
199
197
  wwtd (1.3.0)
200
198
 
201
199
  PLATFORMS
@@ -208,7 +206,7 @@ DEPENDENCIES
208
206
  database_cleaner (= 1.6.1)
209
207
  factory_girl
210
208
  inst-jobs-statsd!
211
- pg
209
+ pg (= 0.21.0)
212
210
  pry
213
211
  rails (~> 5.0.0)
214
212
  rake
@@ -221,4 +219,4 @@ DEPENDENCIES
221
219
  wwtd (~> 1.3.0)
222
220
 
223
221
  BUNDLED WITH
224
- 1.15.4
222
+ 1.16.1
@@ -8,39 +8,39 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.1.2)
12
- actionpack (= 5.1.2)
11
+ actioncable (5.1.4)
12
+ actionpack (= 5.1.4)
13
13
  nio4r (~> 2.0)
14
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)
15
+ actionmailer (5.1.4)
16
+ actionpack (= 5.1.4)
17
+ actionview (= 5.1.4)
18
+ activejob (= 5.1.4)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.1.2)
22
- actionview (= 5.1.2)
23
- activesupport (= 5.1.2)
21
+ actionpack (5.1.4)
22
+ actionview (= 5.1.4)
23
+ activesupport (= 5.1.4)
24
24
  rack (~> 2.0)
25
- rack-test (~> 0.6.3)
25
+ rack-test (>= 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.1.2)
29
- activesupport (= 5.1.2)
28
+ actionview (5.1.4)
29
+ activesupport (= 5.1.4)
30
30
  builder (~> 3.1)
31
31
  erubi (~> 1.4)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.1.2)
35
- activesupport (= 5.1.2)
34
+ activejob (5.1.4)
35
+ activesupport (= 5.1.4)
36
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)
37
+ activemodel (5.1.4)
38
+ activesupport (= 5.1.4)
39
+ activerecord (5.1.4)
40
+ activemodel (= 5.1.4)
41
+ activesupport (= 5.1.4)
42
42
  arel (~> 8.0)
43
- activesupport (5.1.2)
43
+ activesupport (5.1.4)
44
44
  concurrent-ruby (~> 1.0, >= 1.0.2)
45
45
  i18n (~> 0.7)
46
46
  minitest (~> 5.1)
@@ -51,24 +51,26 @@ GEM
51
51
  aroi (0.0.5)
52
52
  rails (>= 3.2, < 5.2)
53
53
  ast (2.3.0)
54
- backports (3.8.0)
54
+ backports (3.11.0)
55
55
  builder (3.2.3)
56
56
  bump (0.5.4)
57
- byebug (9.0.6)
58
- coderay (1.1.1)
57
+ byebug (9.1.0)
58
+ coderay (1.1.2)
59
59
  concurrent-ruby (1.0.5)
60
+ crass (1.0.3)
60
61
  database_cleaner (1.6.1)
61
62
  diff-lcs (1.3)
62
63
  docile (1.1.5)
63
- erubi (1.6.1)
64
- et-orbi (1.0.5)
64
+ erubi (1.7.0)
65
+ et-orbi (1.0.8)
65
66
  tzinfo
66
- factory_girl (4.8.1)
67
+ factory_girl (4.9.0)
67
68
  activesupport (>= 3.0.0)
68
- globalid (0.4.0)
69
+ globalid (0.4.1)
69
70
  activesupport (>= 4.2.0)
70
- i18n (0.8.6)
71
- inst-jobs (0.14.0)
71
+ i18n (0.9.1)
72
+ concurrent-ruby (~> 1.0)
73
+ inst-jobs (0.14.2)
72
74
  after_transaction_commit (>= 1.0, < 3)
73
75
  rails (>= 4.2)
74
76
  redis (> 3.0)
@@ -78,61 +80,58 @@ GEM
78
80
  aroi (~> 0.0.4)
79
81
  statsd-ruby (~> 1.0)
80
82
  json (2.1.0)
81
- loofah (2.0.3)
83
+ loofah (2.1.1)
84
+ crass (~> 1.0.2)
82
85
  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)
86
+ mail (2.7.0)
87
+ mini_mime (>= 0.1.1)
88
+ method_source (0.9.0)
89
+ mini_mime (1.0.0)
90
+ mini_portile2 (2.3.0)
91
+ minitest (5.11.1)
92
+ multi_json (1.13.1)
92
93
  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)
94
+ nio4r (2.2.0)
95
+ nokogiri (1.8.1)
96
+ mini_portile2 (~> 2.3.0)
97
+ parallel (1.12.1)
98
+ parser (2.4.0.2)
99
+ ast (~> 2.3)
100
+ pg (1.0.0)
100
101
  powerpack (0.1.1)
101
- pry (0.10.4)
102
+ pry (0.11.3)
102
103
  coderay (~> 1.1.0)
103
- method_source (~> 0.8.1)
104
- slop (~> 3.4)
104
+ method_source (~> 0.9.0)
105
105
  rack (2.0.3)
106
106
  rack-protection (2.0.0.beta2)
107
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)
108
+ rack-test (0.8.2)
109
+ rack (>= 1.0, < 3)
110
+ rails (5.1.4)
111
+ actioncable (= 5.1.4)
112
+ actionmailer (= 5.1.4)
113
+ actionpack (= 5.1.4)
114
+ actionview (= 5.1.4)
115
+ activejob (= 5.1.4)
116
+ activemodel (= 5.1.4)
117
+ activerecord (= 5.1.4)
118
+ activesupport (= 5.1.4)
119
+ bundler (>= 1.3.0)
120
+ railties (= 5.1.4)
121
121
  sprockets-rails (>= 2.0.0)
122
122
  rails-dom-testing (2.0.3)
123
123
  activesupport (>= 4.2.0)
124
124
  nokogiri (>= 1.6)
125
125
  rails-html-sanitizer (1.0.3)
126
126
  loofah (~> 2.0)
127
- railties (5.1.2)
128
- actionpack (= 5.1.2)
129
- activesupport (= 5.1.2)
127
+ railties (5.1.4)
128
+ actionpack (= 5.1.4)
129
+ activesupport (= 5.1.4)
130
130
  method_source
131
131
  rake (>= 0.8.7)
132
132
  thor (>= 0.18.1, < 2.0)
133
- rainbow (2.2.2)
134
- rake
135
- rake (12.0.0)
133
+ rainbow (3.0.0)
134
+ rake (12.3.0)
136
135
  redis (4.0.1)
137
136
  redis-scripting (1.0.1)
138
137
  redis (>= 3.0)
@@ -149,11 +148,11 @@ GEM
149
148
  diff-lcs (>= 1.2.0, < 2.0)
150
149
  rspec-support (~> 3.4.0)
151
150
  rspec-support (3.4.1)
152
- rubocop (0.50.0)
151
+ rubocop (0.52.1)
153
152
  parallel (~> 1.10)
154
- parser (>= 2.3.3.1, < 3.0)
153
+ parser (>= 2.4.0.2, < 3.0)
155
154
  powerpack (~> 0.1)
156
- rainbow (>= 2.2.2, < 3.0)
155
+ rainbow (>= 2.2.2, < 4.0)
157
156
  ruby-progressbar (~> 1.7)
158
157
  unicode-display_width (~> 1.0, >= 1.0.1)
159
158
  ruby-progressbar (1.9.0)
@@ -177,25 +176,24 @@ GEM
177
176
  rack-test
178
177
  sinatra (= 2.0.0.beta2)
179
178
  tilt (>= 1.3, < 3)
180
- slop (3.6.0)
181
179
  sprockets (3.7.1)
182
180
  concurrent-ruby (~> 1.0)
183
181
  rack (> 1, < 3)
184
- sprockets-rails (3.2.0)
182
+ sprockets-rails (3.2.1)
185
183
  actionpack (>= 4.0)
186
184
  activesupport (>= 4.0)
187
185
  sprockets (>= 3.0.0)
188
186
  statsd-ruby (1.4.0)
189
- thor (0.19.4)
187
+ thor (0.20.0)
190
188
  thread_safe (0.3.6)
191
- tilt (2.0.7)
192
- timecop (0.7.1)
193
- tzinfo (1.2.3)
189
+ tilt (2.0.8)
190
+ timecop (0.9.1)
191
+ tzinfo (1.2.4)
194
192
  thread_safe (~> 0.1)
195
193
  unicode-display_width (1.3.0)
196
194
  websocket-driver (0.6.5)
197
195
  websocket-extensions (>= 0.1.0)
198
- websocket-extensions (0.1.2)
196
+ websocket-extensions (0.1.3)
199
197
  wwtd (1.3.0)
200
198
 
201
199
  PLATFORMS
@@ -221,4 +219,4 @@ DEPENDENCIES
221
219
  wwtd (~> 1.3.0)
222
220
 
223
221
  BUNDLED WITH
224
- 1.15.4
222
+ 1.15.0
@@ -22,5 +22,23 @@ RSpec.describe InstJobsStatsd::Naming do
22
22
  it { should eq ['delayedjob.wut'] }
23
23
  end
24
24
  end
25
+
26
+ context 'with region tags' do
27
+ before do
28
+ @jobs_namespace = ENV['INST_JOBS_STATSD_NAMESPACE']
29
+ ENV['INST_JOBS_STATSD_NAMESPACE'] = 'region_name'
30
+ end
31
+
32
+ after do
33
+ ENV['INST_JOBS_STATSD_NAMESPACE'] = @jobs_namespace
34
+ end
35
+
36
+ let(:job) { build :job, tag: 'a_tag_name' }
37
+
38
+ it { should include 'delayedjob.wut' }
39
+ it { should include 'delayedjob.wut.tag.a_tag_name' }
40
+ it { should include 'delayedjob.wut.region_name' }
41
+ it { should include 'delayedjob.wut.region_name.tag.a_tag_name' }
42
+ end
25
43
  end
26
44
  end
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.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Slade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-02 00:00:00.000000000 Z
11
+ date: 2018-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inst-jobs
@@ -118,16 +118,16 @@ dependencies:
118
118
  name: pg
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - ">="
121
+ - - '='
122
122
  - !ruby/object:Gem::Version
123
- version: '0'
123
+ version: 0.21.0
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - ">="
128
+ - - '='
129
129
  - !ruby/object:Gem::Version
130
- version: '0'
130
+ version: 0.21.0
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: pry
133
133
  requirement: !ruby/object:Gem::Requirement