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: 8040b8f7ef63c5de08e4b88d65fe5ca999234c322cfb5af86d39878c1f6e08e3
4
- data.tar.gz: 57248fae037569c0aebb652e6392f898a9b02c6f7c3c877aaf87a1b15de56bd7
3
+ metadata.gz: e29a242da18895cccd18d06de8fae99dbc8ead7835c6b7650372ed96adc7b50e
4
+ data.tar.gz: 27710c993d783cdc7233de04167f219ab5e064300328a39c0bdab98af90b496d
5
5
  SHA512:
6
- metadata.gz: 88c2abac9098f88bbb57f0ea57141e53a2923787d4d24094ff43d2d021c2f7a03c8e709f9b3f0c2219d81bc38d2b015271f8e47c1d15ce861e2c2eb75da3de08
7
- data.tar.gz: 547e6a36dbc1734a9f5ba16b68703eedf2e87b66364e04c3b39fc771c05fa2ce67301809d6ed09b91d1630b6b68fc480500429d94c4a92fbf23a6ed12527fb39
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 = '>= 2.2'
22
+ spec.required_ruby_version = '>= 3.0'
23
23
 
24
- spec.add_runtime_dependency "parser", "~> 2.2", ">= 2.2.1"
25
- spec.add_runtime_dependency "unparser", "~> 0.2", ">= 0.2.8"
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", "~> 1.9"
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
- if (children = node.children)
166
- children.each do |kid|
167
- v = depth_first_search(kid, target, stop)
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
@@ -1,6 +1,5 @@
1
1
  module DissociatedIntrospection
2
2
  class RubyCode
3
-
4
3
  # @param [String] source
5
4
  # @param [true, false] parse_with_comments
6
5
  # @return [DissociatedIntrospection::RubyCode]
@@ -1,3 +1,3 @@
1
1
  module DissociatedIntrospection
2
- VERSION = "0.12.0"
2
+ VERSION = "0.13.0"
3
3
  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.12.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: 2018-08-02 00:00:00.000000000 Z
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: 2.2.1
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: 2.2.1
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: '0.2'
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: '0.2'
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: '1.9'
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: '1.9'
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: '2.2'
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
- rubyforge_project:
148
- rubygems_version: 2.7.7
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.