promenade 0.1.11 → 0.1.12

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: 2278db3e96b17da5b6cd8fd64775a6eed606fe500d6ee69a80c000b2dfeff818
4
- data.tar.gz: edf1af8bd855e077f5dd8239495aae253c9bae41f5a71abe8953873c95546005
3
+ metadata.gz: 2007c474f4b4c26918e7418125be085515c95a5a3fe5d07f879b6b7eb8646ddc
4
+ data.tar.gz: 446debe6df9a27bc60d0c59408ed2659dcac6b5ce46026283d2eedcc0bf6e78c
5
5
  SHA512:
6
- metadata.gz: 3267c599cfe5b7073342b1a207ac7b1bc7e7b52d4c5ce43810458636cdb14f85a9b38314df7aa21baa37282e49bef3b7d5d0d71ace265c9a86973a94c48a5271
7
- data.tar.gz: d0e8ca80774f4fa4528fe5bca272dc1f99cc0649b01d5685ee504592273e2442e68f36ed774de693230b5c3005c13768fba7f9b633053adeed8a77d79596de3c
6
+ metadata.gz: 82094137eec4aace1b94a44dc19902d602cb8e3c630a88baf91f4c0eab1ce3331b836c488b9a0befc3d3f2ee20750dcc63b9d8e38281902fb9c2843c24c3b016
7
+ data.tar.gz: fd8f179a2b6d4c0c68dea6495ead3128bd02169d09329ac4b9a3f5ddf4ec058372475b8460f0e2205a5b94e1d4af742e74bf90586c136be78ab3b2c6af998a65
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- promenade (0.1.11)
4
+ promenade (0.1.12)
5
5
  activesupport
6
6
  prometheus-client-mmap (~> 0.9.3)
7
7
  rack
@@ -9,13 +9,13 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (5.2.2)
12
+ activesupport (5.2.3)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 0.7, < 2)
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
17
  ast (2.4.0)
18
- backports (3.12.0)
18
+ backports (3.15.0)
19
19
  binding_of_caller (0.8.0)
20
20
  debug_inspector (>= 0.0.1)
21
21
  climate_control (0.2.0)
@@ -24,65 +24,66 @@ GEM
24
24
  simplecov
25
25
  url
26
26
  coderay (1.1.2)
27
- concurrent-ruby (1.1.4)
27
+ concurrent-ruby (1.1.5)
28
28
  debug_inspector (0.0.3)
29
- deep-cover (0.7.1)
30
- deep-cover-core (= 0.7.1)
29
+ deep-cover (0.7.5)
30
+ deep-cover-core (= 0.7.5)
31
31
  highline
32
32
  thor (>= 0.20.3)
33
33
  with_progress
34
- deep-cover-core (0.7.1)
34
+ deep-cover-core (0.7.5)
35
35
  backports (>= 3.11.0)
36
36
  binding_of_caller
37
- parser (~> 2.5.0)
37
+ parser (>= 2.5, < 2.7)
38
38
  pry
39
39
  term-ansicolor
40
40
  terminal-table
41
41
  diff-lcs (1.3)
42
- docile (1.3.1)
43
- highline (2.0.1)
42
+ docile (1.3.2)
43
+ highline (2.0.2)
44
44
  i18n (1.6.0)
45
45
  concurrent-ruby (~> 1.0)
46
- jaro_winkler (1.5.2)
46
+ jaro_winkler (1.5.3)
47
47
  json (2.2.0)
48
48
  method_source (0.9.2)
49
49
  minitest (5.11.3)
50
- parallel (1.14.0)
51
- parser (2.5.3.0)
50
+ parallel (1.17.0)
51
+ parser (2.6.3.0)
52
52
  ast (~> 2.4.0)
53
- powerpack (0.1.2)
54
- prometheus-client-mmap (0.9.5)
53
+ prometheus-client-mmap (0.9.8)
55
54
  pry (0.12.2)
56
55
  coderay (~> 1.1.0)
57
56
  method_source (~> 0.9.0)
58
- psych (3.1.0)
59
- rack (2.0.6)
57
+ rack (2.0.7)
60
58
  rainbow (3.0.0)
61
59
  rake (10.5.0)
62
60
  rspec (3.8.0)
63
61
  rspec-core (~> 3.8.0)
64
62
  rspec-expectations (~> 3.8.0)
65
63
  rspec-mocks (~> 3.8.0)
66
- rspec-core (3.8.0)
64
+ rspec-core (3.8.2)
67
65
  rspec-support (~> 3.8.0)
68
- rspec-expectations (3.8.2)
66
+ rspec-expectations (3.8.4)
69
67
  diff-lcs (>= 1.2.0, < 2.0)
70
68
  rspec-support (~> 3.8.0)
71
- rspec-mocks (3.8.0)
69
+ rspec-mocks (3.8.1)
72
70
  diff-lcs (>= 1.2.0, < 2.0)
73
71
  rspec-support (~> 3.8.0)
74
- rspec-support (3.8.0)
75
- rubocop (0.65.0)
72
+ rspec-support (3.8.2)
73
+ rubocop (0.74.0)
76
74
  jaro_winkler (~> 1.5.1)
77
75
  parallel (~> 1.10)
78
- parser (>= 2.5, != 2.5.1.1)
79
- powerpack (~> 0.1)
80
- psych (>= 3.1.0)
76
+ parser (>= 2.6)
81
77
  rainbow (>= 2.2.2, < 4.0)
82
78
  ruby-progressbar (~> 1.7)
83
- unicode-display_width (~> 1.4.0)
84
- ruby-progressbar (1.10.0)
85
- simplecov (0.16.1)
79
+ unicode-display_width (>= 1.4.0, < 1.7)
80
+ rubocop-performance (1.4.1)
81
+ rubocop (>= 0.71.0)
82
+ rubocop-rails (2.2.1)
83
+ rack (>= 1.1)
84
+ rubocop (>= 0.72.0)
85
+ ruby-progressbar (1.10.1)
86
+ simplecov (0.17.0)
86
87
  docile (~> 1.1)
87
88
  json (>= 1.8, < 3)
88
89
  simplecov-html (~> 0.10.0)
@@ -93,10 +94,10 @@ GEM
93
94
  unicode-display_width (~> 1.1, >= 1.1.1)
94
95
  thor (0.20.3)
95
96
  thread_safe (0.3.6)
96
- tins (1.20.2)
97
+ tins (1.21.1)
97
98
  tzinfo (1.2.5)
98
99
  thread_safe (~> 0.1)
99
- unicode-display_width (1.4.1)
100
+ unicode-display_width (1.6.0)
100
101
  url (0.3.2)
101
102
  with_progress (1.0.1)
102
103
  ruby-progressbar (~> 1.4)
@@ -113,7 +114,9 @@ DEPENDENCIES
113
114
  rake (~> 10.0)
114
115
  rspec (~> 3.0)
115
116
  rubocop
117
+ rubocop-performance
118
+ rubocop-rails
116
119
  simplecov
117
120
 
118
121
  BUNDLED WITH
119
- 1.17.2
122
+ 1.17.3
@@ -29,7 +29,7 @@ module Promenade
29
29
  labels = get_labels(event)
30
30
  queue_size = event.payload.fetch(:queue_size)
31
31
  max_queue_size = event.payload.fetch(:max_queue_size)
32
- queue_fill_ratio = queue_size.to_f / max_queue_size.to_f
32
+ queue_fill_ratio = queue_size.to_f / max_queue_size
33
33
 
34
34
  metric(:kafka_async_producer_queue_size).set(labels, queue_size)
35
35
  metric(:kafka_async_producer_max_queue_size).set(labels, max_queue_size)
@@ -39,7 +39,7 @@ module Promenade
39
39
  metric(:kafka_connection_request_size).observe(labels, event.payload.fetch(:request_size, 0))
40
40
  metric(:kafka_connection_response_size).observe(labels, event.payload.fetch(:response_size, 0))
41
41
 
42
- metric(:kafka_connection_errors).increment if event.payload.key?(:exception)
42
+ metric(:kafka_connection_errors).increment(labels) if event.payload.key?(:exception)
43
43
  end
44
44
  end
45
45
  end
@@ -66,7 +66,7 @@ module Promenade
66
66
  message_size = event.payload.fetch(:message_size)
67
67
  buffer_size = event.payload.fetch(:buffer_size)
68
68
  max_buffer_size = event.payload.fetch(:max_buffer_size)
69
- buffer_fill_ratio = buffer_size.to_f / max_buffer_size.to_f
69
+ buffer_fill_ratio = buffer_size.to_f / max_buffer_size
70
70
 
71
71
  metric(:kafka_producer_messages).increment(labels)
72
72
  metric(:kafka_producer_message_size).observe(labels, message_size)
@@ -1,3 +1,3 @@
1
1
  module Promenade
2
- VERSION = "0.1.11".freeze
2
+ VERSION = "0.1.12".freeze
3
3
  end
@@ -32,5 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency "rake", "~> 10.0"
33
33
  spec.add_development_dependency "rspec", "~> 3.0"
34
34
  spec.add_development_dependency "rubocop"
35
+ spec.add_development_dependency "rubocop-performance"
36
+ spec.add_development_dependency "rubocop-rails"
35
37
  spec.add_development_dependency "simplecov"
36
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promenade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Robinson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-08 00:00:00.000000000 Z
11
+ date: 2019-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -136,6 +136,34 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop-performance
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-rails
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: simplecov
141
169
  requirement: !ruby/object:Gem::Requirement