vitals 0.11.1 → 0.12.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: d27736303cd202c69914c55a2813af0472226da6
4
- data.tar.gz: 2fbf342293e95abfc7d38b0a6edde6201a333606
3
+ metadata.gz: 546f782bec4a2c3243aabd6e5cf8fd5cbfd50a05
4
+ data.tar.gz: d2985a831608ae80b14d2b882b330da3aa529609
5
5
  SHA512:
6
- metadata.gz: 8c8ebde094f153418c4326cd70fa10c6cb64b7f6799eb02453e79c3e29af66a1779493c7897cea56ba2019aceb573c4c9910f90430df2c8f9c9ee40f1348abeb
7
- data.tar.gz: a0b5c5b21a537d0af69540507a820a8633556b39ea6836a72c268bb48deecbeb0fa53359c67ae299188e62f903d9a62634486e8ddc049dfcc47179d47e499c9e
6
+ metadata.gz: ff6b5c0b35c4b10841666259068a19cc0b099a19df4d860f7e08785fe4ec6200fa535ff1fdc1adc474c0b082ffd851401a29c58b374add7c645d46a87a86748e
7
+ data.tar.gz: 43340e3291331b453dca45ca53bce8d757eeb7373f66b3bc78d730d0d99a0e24e2cd23c07605f1697c3ad2288b69214617b5a0228b99bc947d812d7ab299de30
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vitals (0.11.0)
4
+ vitals (0.12.0)
5
5
  statsd-ruby (~> 1.3.0)
6
6
 
7
7
  GEM
@@ -158,4 +158,4 @@ DEPENDENCIES
158
158
  vitals!
159
159
 
160
160
  BUNDLED WITH
161
- 1.11.2
161
+ 1.13.2
@@ -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 = route.route_version
17
- path = route.route_path.dup[1..-1] # /foo/bar/baz -> foo/bar/baz
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
@@ -1,3 +1,3 @@
1
1
  module Vitals
2
- VERSION = "0.11.1"
2
+ VERSION = "0.12.0"
3
3
  end
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.11.1
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: 2016-12-15 00:00:00.000000000 Z
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.1
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