dissociated_introspection 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/dissociated_introspection/ruby_class.rb +3 -2
- data/lib/dissociated_introspection/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 943e04bc256389529fa5d43a1e0cba4fbb8a1451
|
4
|
+
data.tar.gz: 6651fde5dde7b492b0adc926d96f5b1be689d0db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4ab2267f0cccdcd2e8b6512f5ca6f33b85a4bf4cc0842b2b380b9dc2ce23741de14276cf2b205aaac312b1388ffc3e4a450f97d0a9d3852738223370195770d
|
7
|
+
data.tar.gz: 1e22d5ec0bb0b2a23eb690c61bfdde2a4b0299b441e947a8929a3d72183db59a68f2dc03aa0c9832e0e260bfa9a6024c59f4cb7aa4066b7a3da15aaf5ea6b0f1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
## 0.9.1 - 2018-01-16
|
5
|
+
### Fix
|
6
|
+
- `DissociatedIntrospection::RubyClass#class_begin` added back to public API
|
7
|
+
|
3
8
|
## 0.9.0 - 2018-01-16
|
4
9
|
### Enhancement
|
5
10
|
- `DissociatedIntrospection::RubyClass#defined_nested_modules` and #defined_nested_classes returns an array of `RubyCode`.
|
@@ -135,12 +135,13 @@ module DissociatedIntrospection
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
138
|
-
|
139
|
-
|
138
|
+
# @return [AST]
|
140
139
|
def class_begin
|
141
140
|
find_class.children.find { |n| n.try(:type) == :begin } || find_class
|
142
141
|
end
|
143
142
|
|
143
|
+
private
|
144
|
+
|
144
145
|
def create_def(n)
|
145
146
|
def_comments = comments.select do |comment|
|
146
147
|
comment.location.last_line+1 == n.location.first_line
|