vitals 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/vitals/utils.rb +10 -2
- data/lib/vitals/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 546f782bec4a2c3243aabd6e5cf8fd5cbfd50a05
|
|
4
|
+
data.tar.gz: d2985a831608ae80b14d2b882b330da3aa529609
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff6b5c0b35c4b10841666259068a19cc0b099a19df4d860f7e08785fe4ec6200fa535ff1fdc1adc474c0b082ffd851401a29c58b374add7c645d46a87a86748e
|
|
7
|
+
data.tar.gz: 43340e3291331b453dca45ca53bce8d757eeb7373f66b3bc78d730d0d99a0e24e2cd23c07605f1697c3ad2288b69214617b5a0228b99bc947d812d7ab299de30
|
data/Gemfile.lock
CHANGED
data/lib/vitals/utils.rb
CHANGED
|
@@ -13,8 +13,16 @@ module Vitals
|
|
|
13
13
|
end
|
|
14
14
|
# XXX grape specific, move this away some day?
|
|
15
15
|
def self.grape_path(route)
|
|
16
|
-
version
|
|
17
|
-
|
|
16
|
+
if route.respond_to?(:version) && route.respond_to?(:path)
|
|
17
|
+
version = route.version
|
|
18
|
+
path = route.path
|
|
19
|
+
else
|
|
20
|
+
# deprecated methods
|
|
21
|
+
version = route.route_version
|
|
22
|
+
path = route.route_path
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
path = path.dup[1..-1] # /foo/bar/baz -> foo/bar/baz
|
|
18
26
|
path.sub!(/\(\..*\)$/, '') # (.json) -> ''
|
|
19
27
|
path.sub!(":version", version) if version # :version -> v1
|
|
20
28
|
path.gsub!(/\//, self.path_sep) # foo/bar -> foo.bar
|
data/lib/vitals/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.12.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:
|
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: statsd-ruby
|
|
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
262
262
|
version: '0'
|
|
263
263
|
requirements: []
|
|
264
264
|
rubyforge_project:
|
|
265
|
-
rubygems_version: 2.5.
|
|
265
|
+
rubygems_version: 2.5.2
|
|
266
266
|
signing_key:
|
|
267
267
|
specification_version: 4
|
|
268
268
|
summary: Flexible StatsD instrumentation for Rails, Rack, Grape and more
|