vx-lib-instrumentation 0.1.9 → 0.1.10

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: ff72ddb7a88101050f23d3b0db56c0da7ae6b572
4
- data.tar.gz: 2494e7d6263470e413b384abb6d2d182ea518b8c
3
+ metadata.gz: 87fad168a70793f3eba1529c497dd9a07ced8cba
4
+ data.tar.gz: 2d86e6061be4db7ef01d35726c198cc5252a829c
5
5
  SHA512:
6
- metadata.gz: 6e9c21e8460dc11e54117e2aa1e949e512319c149483075250588a40d14512c169cb00255080eaf9a640b6bdfdd0c2d766b9142427d2215c37e0a2d9aca37766
7
- data.tar.gz: f185366f214dcf37d10e3a848b36a2f03d91b50cc7d745022a0d8fee4f08f3ea29d95e38c592167648283bc39d01b2d5a329b06df2bce3f259fcde16f127672b
6
+ metadata.gz: 7ddaaf67662933868433be012b68644789df22168c0ffa47a571a782758161fbc408236092dcc24f51f91fa9345e3229e525a1fa6f6c9869095a8c0fac81dd0e
7
+ data.tar.gz: 13c4e2ec06f58495d93a7a1ba50763faeb83c1739acf69d00845573144cb2ca6f6fd1f2463975a012fa0f5e49c129b1e211ce5fdc81a82f935d8f095c40a698e
@@ -1,5 +1,4 @@
1
1
  require 'active_support/notifications'
2
- require 'vx/instrumentation'
3
2
 
4
3
  ActiveSupport::Notifications.subscribe(/\.action_view$/) do |event, started, finished, _, payload|
5
4
  if event[0] != "!"
@@ -1,3 +1,3 @@
1
1
  module Vx ; module Lib ; module Instrumentation
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end ; end ; end
@@ -19,7 +19,7 @@ module Vx ; module Lib ; module Instrumentation
19
19
  end
20
20
 
21
21
  def activate!
22
- Dir[root + "/*.rb"].each do |f|
22
+ Dir[root + "/instrumentation/probe/*.rb"].each do |f|
23
23
  require f
24
24
  end
25
25
  end
@@ -28,8 +28,6 @@ module Vx ; module Lib ; module Instrumentation
28
28
  $stdout.puts " --> activate Vx::Instrumentation, log stored in #{target}"
29
29
  Lib::Instrumentation::Logger.setup target
30
30
  Lib::Instrumentation::Logger.logger.level = log_level
31
-
32
- activate!
33
31
  end
34
32
 
35
33
  def with(new_keys)
@@ -10,6 +10,7 @@ describe Vx::Lib::Instrumentation do
10
10
 
11
11
  it "should successfully install" do
12
12
  expect(inst.install out).to be
13
+ expect(inst.activate!).to be
13
14
  end
14
15
 
15
16
  it "should work with default values" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vx-lib-instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky