vitals 0.5.0 → 0.6.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: 83bd5a1cdcb360cf115ed3111ce5b0f9b3ba7eef
4
- data.tar.gz: bdc61cc8440f048f789fe85a4458c80bf559cbd3
3
+ metadata.gz: e9e5ba3c92282f21ad9d99202b745fac43ba7ef4
4
+ data.tar.gz: d33d618d83901d8bf6cc19f708b865acc977269a
5
5
  SHA512:
6
- metadata.gz: 60dce42282596f0239e9e334efc31228a9320cd6a8b3d3b46205ab471c3be2ca45f1660e3f9f04cd891f64fa300d92fa4fff9748b9c9d0bc381b1dfc33a8e8a9
7
- data.tar.gz: b5e9ca2bb6a7e698b2122a2409dcc4be1847251e8ad9c8d69b456adaf74e68447eb576500d0c186a92e6152f85e02bff123eedd435a4f9cf0ae88af4c0ac788f
6
+ metadata.gz: 231707f0c9836419a53606ac64fce4f56f8454835e4b21451d0bb2389676fd5671d6d703ce5fbbcf2be31db94062925f8bf596355a5139508b6d09df715f003f
7
+ data.tar.gz: 20b6e2a3a88fa5b2d27b9bd7d808ad014b18a576c2a8a34b69e679848f0a88ed9d47bf2faeb3345835fd7398dc718dd032c678f020a9f3fdcd33d8e520b5ec55
data/Gemfile.lock CHANGED
@@ -19,6 +19,9 @@ GEM
19
19
  ice_nine (~> 0.11.0)
20
20
  thread_safe (~> 0.3, >= 0.3.1)
21
21
  benchmark-ips (2.5.0)
22
+ benchmark-ipsa (0.2.0)
23
+ benchmark-ips (~> 2.5.0)
24
+ memory_profiler (~> 0.9.6)
22
25
  builder (3.2.2)
23
26
  byebug (8.2.2)
24
27
  coderay (1.1.1)
@@ -140,14 +143,13 @@ PLATFORMS
140
143
 
141
144
  DEPENDENCIES
142
145
  activesupport (~> 4.2.6)
143
- benchmark-ips (~> 2.5.0)
146
+ benchmark-ipsa (~> 0.2.0)
144
147
  bundler (~> 1.11)
145
148
  byebug (~> 8.2.2)
146
149
  coveralls (~> 0.8.13)
147
150
  grape (~> 0.15.0)
148
151
  guard-minitest (~> 2.4.4)
149
152
  guard-rubocop (~> 1.2.0)
150
- memory_profiler (~> 0.9.6)
151
153
  minitest (~> 5.0)
152
154
  rack-test (~> 0.6.3)
153
155
  rake (~> 10.0)
data/README.md CHANGED
@@ -51,7 +51,7 @@ Vitals::Integrations::Notifications::ActiveJob.subscribe!
51
51
  # Grape
52
52
  #
53
53
  require 'vitals/integrations/notifications/grape'
54
- Vitals::Integrations::Notifications::Grapej.subscribe!
54
+ Vitals::Integrations::Notifications::Grape.subscribe!
55
55
  ```
56
56
 
57
57
  You can shortcircuit the notifications configuration by using `subscribe!` right after configuring:
@@ -15,7 +15,7 @@ module Vitals::Integrations::Notifications
15
15
  ctrl = payload[:controller].sub(/Controller$/, '').downcase
16
16
  # format = payload[:format]
17
17
 
18
- m = "controllers.#{ctrl}_#{action}_#{method}.#{status}"
18
+ m = "controllers.#{ctrl}_#{action}.#{method}.#{status}"
19
19
  Vitals.timing("#{m}.all", duration(started, finished))
20
20
  Vitals.timing("#{m}.db", payload[:db_runtime]) if payload[:db_runtime]
21
21
  Vitals.timing("#{m}.view", payload[:view_runtime]) if payload[:view_runtime]
@@ -16,7 +16,7 @@ module Vitals::Integrations::Notifications
16
16
  path = Vitals::Utils.grape_path(route)
17
17
 
18
18
  # TODO move 'grape' to configuration opts in subscribe!(opts)
19
- m = "grape.#{path}_#{method}.#{endpoint.status}.all"
19
+ m = "grape.#{path}.#{method}.#{endpoint.status}.all"
20
20
  Vitals.timing(m, duration(started, finished))
21
21
  end
22
22
 
@@ -25,7 +25,7 @@ module Vitals::Integrations::Rack
25
25
  else
26
26
  Requests.rack_path(env)
27
27
  end
28
- m = "requests.#{@prefix}#{path}_#{env[REQUEST_METHOD].downcase}.#{status}"
28
+ m = "requests.#{@prefix}#{path}.#{env[REQUEST_METHOD].downcase}.#{status}"
29
29
 
30
30
  # TODO add option to customize 'requests' through options
31
31
  Vitals.timing(m, Vitals::Utils.sec_to_ms(t))
@@ -1,3 +1,3 @@
1
1
  module Vitals
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
data/vitals.gemspec CHANGED
@@ -28,8 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency "minitest", "~> 5.0"
29
29
  spec.add_development_dependency "rack-test", "~> 0.6.3"
30
30
  spec.add_development_dependency "rr", "~> 1.1.2"
31
- spec.add_development_dependency "benchmark-ips", "~> 2.5.0"
32
- spec.add_development_dependency "memory_profiler", "~> 0.9.6"
31
+ spec.add_development_dependency "benchmark-ipsa", "~> 0.2.0"
33
32
 
34
33
  spec.add_development_dependency "coveralls", "~> 0.8.13"
35
34
  # integrations
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dotan Nahum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: statsd-ruby
@@ -123,33 +123,19 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.1.2
125
125
  - !ruby/object:Gem::Dependency
126
- name: benchmark-ips
126
+ name: benchmark-ipsa
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 2.5.0
131
+ version: 0.2.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 2.5.0
139
- - !ruby/object:Gem::Dependency
140
- name: memory_profiler
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 0.9.6
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 0.9.6
138
+ version: 0.2.0
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: coveralls
155
141
  requirement: !ruby/object:Gem::Requirement