promenade 0.1.6 → 0.1.7

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: 21e1b0da279e0be2d796defd5ba139262e5fcae5d9eb7bcc96a0e237ed2627e0
4
- data.tar.gz: 265399012b1a27ef4b4f821a7fd4b860a8d714e3c210cf10da2311c0f5cba12e
3
+ metadata.gz: 6a96e94c081baeb45b67f07de03d05741bf73811365667bc47de25ae9ce73b7c
4
+ data.tar.gz: e21d721b54e7940dd76eb1010174709886c2fa9909ec3709df8e9f513eb3a16b
5
5
  SHA512:
6
- metadata.gz: 9d53dd6240a9b318550f2c94774e46e55a943a4d8bfda8f42b1339f2f7673d802b3fe7acd22d1efd0efcef0ab9ee513dfbc943a17fcb9b270c719ca7dac3be2b
7
- data.tar.gz: c3d7acde8d85895a32a384c3428771b5ed792e6fbe9810d42a60cf1639e6f7fb60333d32209f30ca430ecbe73ec3dfb06be407ffbe35bd8c9ca005d20a476685
6
+ metadata.gz: 0cbb16b42dc91bed722d743638749ed5ca6109b687eb39e7d335ecb083d8d64f7e82ba3359172f0735b27539aea872e3d45b0bba2e656785531616110c8c6fb7
7
+ data.tar.gz: 13bb4634b4d389fd68808133da71cf28ef57824b11ee4994a7d06952cedcb99c93a74abb540aa6782941a4bb135e61c6661cf39d3cf0e0f2545272b4e1174499
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  .rubocop-https*yml
10
+ .sass-cache/
10
11
 
11
12
  # rspec failure tracking
12
13
  .rspec_status
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- promenade (0.1.6)
4
+ promenade (0.1.7)
5
5
  activesupport
6
6
  prometheus-client-mmap (~> 0.9.3)
7
7
  rack
@@ -15,26 +15,52 @@ GEM
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
17
  ast (2.4.0)
18
+ backports (3.11.3)
19
+ binding_of_caller (0.8.0)
20
+ debug_inspector (>= 0.0.1)
18
21
  codecov (0.1.10)
19
22
  json
20
23
  simplecov
21
24
  url
25
+ coderay (1.1.2)
22
26
  concurrent-ruby (1.0.5)
27
+ debug_inspector (0.0.3)
28
+ deep-cover (0.6.2)
29
+ backports (>= 3.11.0)
30
+ binding_of_caller
31
+ bundler
32
+ highline
33
+ parser (~> 2.5.0)
34
+ pry
35
+ sass
36
+ slop (~> 4.0)
37
+ term-ansicolor
38
+ terminal-table
39
+ with_progress
23
40
  diff-lcs (1.3)
24
41
  docile (1.3.1)
42
+ ffi (1.9.25)
43
+ highline (2.0.0)
25
44
  i18n (1.0.1)
26
45
  concurrent-ruby (~> 1.0)
27
46
  jaro_winkler (1.5.1)
28
47
  json (2.1.0)
48
+ method_source (0.9.0)
29
49
  minitest (5.11.3)
30
50
  parallel (1.12.1)
31
51
  parser (2.5.1.0)
32
52
  ast (~> 2.4.0)
33
53
  powerpack (0.1.2)
34
54
  prometheus-client-mmap (0.9.3)
55
+ pry (0.11.3)
56
+ coderay (~> 1.1.0)
57
+ method_source (~> 0.9.0)
35
58
  rack (2.0.5)
36
59
  rainbow (3.0.0)
37
60
  rake (10.5.0)
61
+ rb-fsevent (0.10.3)
62
+ rb-inotify (0.9.10)
63
+ ffi (>= 0.5.0, < 2)
38
64
  rspec (3.7.0)
39
65
  rspec-core (~> 3.7.0)
40
66
  rspec-expectations (~> 3.7.0)
@@ -57,16 +83,29 @@ GEM
57
83
  ruby-progressbar (~> 1.7)
58
84
  unicode-display_width (~> 1.0, >= 1.0.1)
59
85
  ruby-progressbar (1.9.0)
86
+ sass (3.5.6)
87
+ sass-listen (~> 4.0.0)
88
+ sass-listen (4.0.0)
89
+ rb-fsevent (~> 0.9, >= 0.9.4)
90
+ rb-inotify (~> 0.9, >= 0.9.7)
60
91
  simplecov (0.16.1)
61
92
  docile (~> 1.1)
62
93
  json (>= 1.8, < 3)
63
94
  simplecov-html (~> 0.10.0)
64
95
  simplecov-html (0.10.2)
96
+ slop (4.6.2)
97
+ term-ansicolor (1.6.0)
98
+ tins (~> 1.0)
99
+ terminal-table (1.8.0)
100
+ unicode-display_width (~> 1.1, >= 1.1.1)
65
101
  thread_safe (0.3.6)
102
+ tins (1.16.3)
66
103
  tzinfo (1.2.5)
67
104
  thread_safe (~> 0.1)
68
105
  unicode-display_width (1.4.0)
69
106
  url (0.3.2)
107
+ with_progress (1.0.1)
108
+ ruby-progressbar (~> 1.4)
70
109
 
71
110
  PLATFORMS
72
111
  ruby
@@ -74,6 +113,7 @@ PLATFORMS
74
113
  DEPENDENCIES
75
114
  bundler (~> 1.16)
76
115
  codecov
116
+ deep-cover
77
117
  promenade!
78
118
  rake (~> 10.0)
79
119
  rspec (~> 3.0)
data/Rakefile CHANGED
@@ -6,4 +6,9 @@ RSpec::Core::RakeTask.new(:spec)
6
6
  RuboCop::RakeTask.new
7
7
 
8
8
  task default: %i(spec rubocop)
9
- task release: :default
9
+
10
+ task :clean do
11
+ sh "rm -rf tmp/promenade"
12
+ end
13
+
14
+ task spec: :clean
@@ -22,9 +22,8 @@ module Promenade
22
22
  doc "Average size of responses made by kafka"
23
23
  end
24
24
 
25
- histogram :kafka_connection_errors do
25
+ counter :kafka_connection_errors do
26
26
  doc "Count of Kafka connection errors"
27
- buckets :memory
28
27
  end
29
28
 
30
29
  def request(event) # rubocop:disable Metrics/AbcSize
@@ -79,7 +79,7 @@ module Promenade
79
79
  end
80
80
 
81
81
  def evaluate(&block)
82
- instance_eval(&block) if block_given?
82
+ instance_eval(&block)
83
83
  self
84
84
  end
85
85
  end
@@ -3,7 +3,7 @@ require "prometheus/client/support/unicorn"
3
3
 
4
4
  module Promenade
5
5
  def self.root_dir
6
- defined?(Rails) && Rails.root || Pathname.new(ENV.fetch("RAILS_ROOT", Dir.pwd))
6
+ Pathname.new(ENV.fetch("RAILS_ROOT", Dir.pwd))
7
7
  end
8
8
 
9
9
  def self.multiprocess_files_dir
@@ -15,9 +15,9 @@ module Promenade
15
15
  FileUtils.mkdir_p multiprocess_files_dir
16
16
  end
17
17
 
18
- Prometheus::Client.configure do |config|
18
+ ::Prometheus::Client.configure do |config|
19
19
  config.multiprocess_files_dir = multiprocess_files_dir
20
- config.pid_provider = Prometheus::Client::Support::Unicorn.method(:worker_pid_provider)
20
+ config.pid_provider = ::Prometheus::Client::Support::Unicorn.method(:worker_pid_provider)
21
21
  end
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Promenade
2
- VERSION = "0.1.6".freeze
2
+ VERSION = "0.1.7".freeze
3
3
  end
data/promenade.gemspec CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "rack"
28
28
 
29
29
  spec.add_development_dependency "bundler", "~> 1.16"
30
+ spec.add_development_dependency "deep-cover"
30
31
  spec.add_development_dependency "rake", "~> 10.0"
31
32
  spec.add_development_dependency "rspec", "~> 3.0"
32
33
  spec.add_development_dependency "rubocop"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promenade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Robinson
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.16'
69
+ - !ruby/object:Gem::Dependency
70
+ name: deep-cover
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
85
  requirement: !ruby/object:Gem::Requirement