rookout 0.1.29 → 0.1.30

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49682fe35cb88044623330221963d1796926bd4d43274e52c6f5d2b9798939da
4
- data.tar.gz: '08146067813084fe74e9c89b8cf4a242b2932a9c2c057144de1cf3a6893fa5a8'
3
+ metadata.gz: f8bbc125cf28986d8ae700369a4d36c255e3912f0f9abb895ea10206d6090ca8
4
+ data.tar.gz: 3d20369b3dfe6141454e6a5a262defc0f6a0700d37d7ee6936911e4eaca5b510
5
5
  SHA512:
6
- metadata.gz: 02ca398a95c761881102ef4d1bf8e3dcc71b38ef65379651e2687dd583ea06bd5bd7fd7843745de1a4568055158cc10d021d9e510134d9d93d63c35578b09818
7
- data.tar.gz: 55f7755051f8d26c407f4b0076975c20782d49b5427a8b55b7dad5e96f576e03519964a967665dd750e551765fc510551739a1a82b2a7582a308044f5fbb2cfd
6
+ metadata.gz: 939d0c89c0683ca263ca0d0c7980c86537d681462d6e81fb447c0598a323fe7897f6342c3d51add8519e06295c33527d7488964b1a0bb448fcdb3b933c86fe24
7
+ data.tar.gz: f7d1228b2cdd81f6fe01a042b3aa38d89e7b6f2312c16cff32107dd6e0c40f951fe2aa67cb746b6f7adf076da245e422a1e3dbaa941063aa34af000db65c3aa5
@@ -29,8 +29,9 @@ module Rookout
29
29
  max_aug_time = configuration["maxAugTime"] || Config.instrumentation_max_aug_time
30
30
 
31
31
  condition_configuration = configuration["conditional"]
32
- raise Exceptions::RookAugInvalidKey.new("conditional", configuration) unless
33
- condition_configuration.nil? || condition_configuration.is_a?(String)
32
+ unless condition_configuration.nil? || condition_configuration.is_a?(String)
33
+ raise Exceptions::RookAugInvalidKey.new("conditional", configuration)
34
+ end
34
35
  condition = condition_configuration.nil? ? nil : Conditions::Condition.new(condition_configuration)
35
36
 
36
37
  rate_limit = create_rate_limit configuration
@@ -47,15 +48,17 @@ module Rookout
47
48
 
48
49
  def create_location configuration, aug
49
50
  name = configuration["name"]
50
- raise Exceptions::RookObjectNameMissing if name.nil?
51
+ raise Exceptions::RookObjectNameMissing, configuration if name.nil?
51
52
 
52
53
  case name
53
54
  when "file_line"
54
55
  return Locations::LocationFileLine.new configuration, @output, aug
55
56
  when "exception_handler"
56
57
  return Locations::LocationExceptionHandler.new configuration, @output, aug
58
+ when "log_handler"
59
+ raise Exceptions::RookUnsupportedLiveLogger
57
60
  else
58
- raise Exceptions::RookUnsupportedLocation if name != "file_line"
61
+ raise Exceptions::RookUnsupportedLocation, configuration if name != "file_line"
59
62
  end
60
63
  end
61
64
 
@@ -128,7 +128,7 @@ module Rookout
128
128
  @ready_event.set
129
129
  end
130
130
 
131
- Logger.instance.info "Connection failed; reason = #{e.message}"
131
+ Logger.instance.warn "Connection failed; reason = #{e.message}"
132
132
  end
133
133
 
134
134
  backoff.after_disconnect
@@ -1,3 +1,3 @@
1
1
  module Rookout
2
- COMMIT = "7d24d368fe1a95d7c6b7e51a2f4ea2e143792b97".freeze
2
+ COMMIT = "a753176d0b434bab7c3ab0467b5a544276d5a7f0".freeze
3
3
  end
@@ -219,5 +219,11 @@ module Rookout
219
219
  }
220
220
  end
221
221
  end
222
+
223
+ class RookUnsupportedLiveLogger < ToolException
224
+ def initialize
225
+ super "Live Logger is not supported. Try using Rookout Live Debugger instead."
226
+ end
227
+ end
222
228
  end
223
229
  end
@@ -43,7 +43,7 @@ module Rookout
43
43
  STDERR.puts "[Rookout] Failed to start Rookout: #{e.message}"
44
44
  rescue RookCommunicationException => e
45
45
  raise if throw_errors
46
- STDERR.puts "[Rookout] " + e.message
46
+ Logger.instance.warn "[Rookout] " + e.message
47
47
  rescue Exception => e
48
48
  STDERR.puts e.full_message if Config.debug
49
49
  raise if throw_errors
@@ -1,3 +1,3 @@
1
1
  module Rookout
2
- VERSION = "0.1.29".freeze
2
+ VERSION = "0.1.30".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rookout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liran Haimovitch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2022-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: binding_of_caller
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 3.17.3
75
+ version: 3.19.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 3.17.3
82
+ version: 3.19.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: google-style
85
85
  requirement: !ruby/object:Gem::Requirement