dissociated_introspection 0.12.0 → 0.13.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e29a242da18895cccd18d06de8fae99dbc8ead7835c6b7650372ed96adc7b50e
|
4
|
+
data.tar.gz: 27710c993d783cdc7233de04167f219ab5e064300328a39c0bdab98af90b496d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76fce8889a4f4a81d66b1a63a7f6b00e670d41cda764fbb01fb2fce1a8615e27597279fc7766fb13ddf020b2742b0d38068f4f41a4f3936ea2a96239ee666c37
|
7
|
+
data.tar.gz: ca2c807f35eaeaf35d5f2e259074527815c21017d4466f7b6a64d8be41b6e8f9e57c9af0092a3e8b55395c3589e05e85a7a0cce6832556074616754911ce4648
|
@@ -19,12 +19,12 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.required_ruby_version = '>=
|
22
|
+
spec.required_ruby_version = '>= 3.0'
|
23
23
|
|
24
|
-
spec.add_runtime_dependency "parser", "
|
25
|
-
spec.add_runtime_dependency "unparser", "~> 0.
|
24
|
+
spec.add_runtime_dependency "parser", ">= 3.1.2.0"
|
25
|
+
spec.add_runtime_dependency "unparser", "~> 0.4.9"
|
26
26
|
|
27
|
-
spec.add_development_dependency "bundler", "~>
|
27
|
+
spec.add_development_dependency "bundler", "~> 2.3"
|
28
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
29
29
|
spec.add_development_dependency "rspec", "~> 3.3"
|
30
30
|
end
|
@@ -162,11 +162,9 @@ module DissociatedIntrospection
|
|
162
162
|
return false unless node.is_a?(Parser::AST::Node)
|
163
163
|
return node if node.type == target
|
164
164
|
return false if stop && node.type == stop
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
return v if v.is_a?(Parser::AST::Node)
|
169
|
-
end
|
165
|
+
[*node.children].each do |kid|
|
166
|
+
v = depth_first_search(kid, target, stop)
|
167
|
+
return v if v.is_a?(Parser::AST::Node)
|
170
168
|
end
|
171
169
|
false
|
172
170
|
end
|
metadata
CHANGED
@@ -1,69 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dissociated_introspection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Zeisler
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '2.2'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: 3.1.2.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.2'
|
30
24
|
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: 3.1.2.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: unparser
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 0.2.8
|
33
|
+
version: 0.4.9
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
37
|
requirements:
|
47
38
|
- - "~>"
|
48
39
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 0.2.8
|
40
|
+
version: 0.4.9
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: bundler
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
56
44
|
requirements:
|
57
45
|
- - "~>"
|
58
46
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
47
|
+
version: '2.3'
|
60
48
|
type: :development
|
61
49
|
prerelease: false
|
62
50
|
version_requirements: !ruby/object:Gem::Requirement
|
63
51
|
requirements:
|
64
52
|
- - "~>"
|
65
53
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
54
|
+
version: '2.3'
|
67
55
|
- !ruby/object:Gem::Dependency
|
68
56
|
name: rake
|
69
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,7 +117,7 @@ homepage: https://github.com/zeisler/dissociated_introspection
|
|
129
117
|
licenses:
|
130
118
|
- MIT
|
131
119
|
metadata: {}
|
132
|
-
post_install_message:
|
120
|
+
post_install_message:
|
133
121
|
rdoc_options: []
|
134
122
|
require_paths:
|
135
123
|
- lib
|
@@ -137,16 +125,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
137
125
|
requirements:
|
138
126
|
- - ">="
|
139
127
|
- !ruby/object:Gem::Version
|
140
|
-
version: '
|
128
|
+
version: '3.0'
|
141
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
130
|
requirements:
|
143
131
|
- - ">="
|
144
132
|
- !ruby/object:Gem::Version
|
145
133
|
version: '0'
|
146
134
|
requirements: []
|
147
|
-
|
148
|
-
|
149
|
-
signing_key:
|
135
|
+
rubygems_version: 3.3.7
|
136
|
+
signing_key:
|
150
137
|
specification_version: 4
|
151
138
|
summary: Introspect methods, parameters, class macros, and constants without loading
|
152
139
|
a parent class or any other dependencies.
|