dissociated_introspection 0.8.3 → 0.8.4
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/CHANGELOG.md +4 -0
- data/lib/dissociated_introspection/ruby_class.rb +1 -0
- 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: 7d7a7d6a47b8a88dbfc78c0b1348c7c67c7e2020
|
4
|
+
data.tar.gz: edce31e5e61d5f21ebd4df75320842216e039fb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add0a4bab5920ff3252a2b9ac819e4b8d76589e56e2c37ebfc67217d625c45800390ddf6b1db5ea7f0fe3309f489cb1a04f382619791274351675eda90c6ca73
|
7
|
+
data.tar.gz: eef257c6c4b3f11cb759730d149378e8600c6f5b7de659663f6ff3e1b0bf2b1f42e29839049d6a9ddb256273b015c8b8a8f1dec3d889abea2903b0e4355b76cd
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## 0.8.4 - 2017-09-30
|
5
|
+
### Fix
|
6
|
+
- DissociatedIntrospection::RubyClass#class_defs failed to parse a single class methods with `class >> self; end;`
|
7
|
+
|
4
8
|
## 0.8.3 - 2017-09-30
|
5
9
|
### Fix
|
6
10
|
- DissociatedIntrospection::RubyClass#class_defs failed to parse class methods with `class >> self; end;`
|
@@ -69,6 +69,7 @@ module DissociatedIntrospection
|
|
69
69
|
create_def(n.updated(:def, n.children[1..-1]))
|
70
70
|
end
|
71
71
|
ns2 = class_begin.children.select { |n| :sclass == n.try(:type) }.flat_map do |n|
|
72
|
+
next create_def(n.children[1]) if n.children[1].type == :def
|
72
73
|
n.children[1].children.select { |n| n.try(:type) == :def }.map(&method(:create_def))
|
73
74
|
end
|
74
75
|
[*ns, *ns2]
|