rookout 0.1.47 → 0.1.49
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/lib/rookout/commit.rb +1 -1
- data/lib/rookout/exceptions.rb +7 -0
- data/lib/rookout/services/tracer.rb +3 -0
- data/lib/rookout/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e24b722625291259ba768c1ad75926b62e900fbf7c998432e51be9b840969142
|
4
|
+
data.tar.gz: 3d9f0b19ab36191d76f161d8a8bd796f26136034e6a8fe633322fb6f3caa4868
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef9a09cca2833464425abc253c3b9894dc23bbecb95ed8803824bac21dd2937423169d6ba900e18af916e8f27a53d4a2ad15d6e2269728a35cf95538dc02581d
|
7
|
+
data.tar.gz: dbcb67b9a0d68e21943f2a691c777e926767a91e4ba55c085e6f7295c6416a64e9dd0ab4157d15a91b20ce59778a46f3f460a2ba2a230db629dacda88fe585b2
|
data/lib/rookout/commit.rb
CHANGED
data/lib/rookout/exceptions.rb
CHANGED
@@ -146,6 +146,13 @@ module Rookout
|
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
149
|
+
class RookInvalidPositionException < ToolException
|
150
|
+
def initialize filename, line
|
151
|
+
super "Invalid code position for TracePoint: #{filename}:#{line}",
|
152
|
+
{ filename: filename, line: line }
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
149
156
|
class RookObjectCannotBeSerialized < ToolException
|
150
157
|
def initialize object, message
|
151
158
|
super message, { "class" => object.class.to_s }
|
@@ -21,6 +21,9 @@ module Rookout
|
|
21
21
|
begin
|
22
22
|
trace_point.enable target: position.method, target_line: position.lineno
|
23
23
|
rescue RuntimeError, ArgumentError => e
|
24
|
+
if e.message.include? "can not enable any hooks"
|
25
|
+
raise Exceptions::RookInvalidPositionException.new(aug.filename, position.lineno)
|
26
|
+
end
|
24
27
|
raise Exceptions::RookSetTracepointFailed.new(position.lineno, e)
|
25
28
|
end
|
26
29
|
|
data/lib/rookout/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.49
|
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-10-
|
11
|
+
date: 2022-10-24 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.
|
75
|
+
version: 3.21.7
|
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.
|
82
|
+
version: 3.21.7
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: google-style
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|