orthoses 1.16.0 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/orthoses/constant.rb +1 -0
- data/lib/orthoses/trace/method.rb +12 -10
- data/lib/orthoses/version.rb +1 -1
- data/lib/orthoses.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7d32af3f7ca57a532b811d511f214250dab712748f88602089d23349375c46d
|
4
|
+
data.tar.gz: 197966b36e96be58eb2aeea816090e2c24ebeec954175ee2d24a8cec07771b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d70aeed9a896b32671d41f23c3bdba9efbb5679bd7c2c6bb0a3ead0976a26ee1a903a8b9ce1b748509efc94b6f8f1f66aea0e04a92d6efef8958b85785e81686
|
7
|
+
data.tar.gz: 8f186cc6a6ceeff80267d9dd6150e9d1d8cd96e5a37446314195a0b0f6adf7132356dbca50c61a275b0e16a33aac184b5969c8b39c2b49089d6998e98b491fea
|
data/lib/orthoses/constant.rb
CHANGED
@@ -34,18 +34,20 @@ module Orthoses
|
|
34
34
|
|
35
35
|
def build_trace_point
|
36
36
|
TracePoint.new(:call, :return, :raise) do |tp|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
37
|
+
next unless tp.defined_class
|
38
|
+
|
39
|
+
if tp.defined_class.singleton_class?
|
40
|
+
mod_name = Utils.attached_module_name(tp.defined_class) or next
|
41
|
+
kind = :singleton
|
42
|
+
else
|
43
|
+
mod_name = Utils.module_name(tp.defined_class) or next
|
44
|
+
kind = :instance
|
45
|
+
end
|
46
46
|
|
47
|
-
|
47
|
+
next unless target?(mod_name)
|
48
48
|
|
49
|
+
case tp.event
|
50
|
+
when :call
|
49
51
|
visibility = tp.self.private_methods.include?(tp.method_id) ? :private : nil
|
50
52
|
key = [mod_name, kind, visibility, tp.method_id]
|
51
53
|
op_name_types = tp.parameters.map do |op, name|
|
data/lib/orthoses/version.rb
CHANGED
data/lib/orthoses.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orthoses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ksss
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbs
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
|
-
rubygems_version: 3.5.
|
134
|
+
rubygems_version: 3.5.22
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
137
|
summary: Framework for Generate RBS
|