ree 1.0.23 → 1.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ree/cli/indexing/index_project.rb +9 -6
- data/lib/ree/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a8e8d614b00dc9aaba38993d3e2532f4189eca0f83e1dbc8cc5fa63fcee1a4
|
4
|
+
data.tar.gz: ebc2988db12701721dde74ffc845b5c608debf2255f9d9d57e52749c6458d7af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc915972d2b9306d431e8ef813b5105dc635f35826daaf59775385db5ca7a5f51b411d60d2ee82c4eaa9a6c0906aba94a3f79d4542551985c85b751d5e161a38
|
7
|
+
data.tar.gz: bc9f8776cfc0ae0b1d995d3ee3c40f0b27fd2d903391d7558263a2f0dd74bc1833589cb31837435bb97229cbcaaf58f2d45f064604364c87668905ee4a1b80dc
|
@@ -53,7 +53,7 @@ module Ree
|
|
53
53
|
end
|
54
54
|
|
55
55
|
next if package.dir.nil?
|
56
|
-
|
56
|
+
|
57
57
|
facade.load_entire_package(package.name)
|
58
58
|
|
59
59
|
package_hsh = Ree::CLI::IndexPackage.send(:index_package_entry, package)
|
@@ -73,7 +73,7 @@ module Ree
|
|
73
73
|
private
|
74
74
|
|
75
75
|
def index_public_methods_for_package_classes(package, index_hash)
|
76
|
-
package.objects.each do |obj|
|
76
|
+
package.objects.each do |obj|
|
77
77
|
klass = obj.klass
|
78
78
|
klass_name = demodulize(klass.to_s)
|
79
79
|
obj_name = obj.name.to_s
|
@@ -96,22 +96,25 @@ module Ree
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
-
recursively_index_module(package.module, index_hash, package)
|
99
|
+
recursively_index_module(package.module, index_hash, package, {})
|
100
100
|
|
101
101
|
index_hash
|
102
102
|
end
|
103
103
|
|
104
|
-
def recursively_index_module(mod, index_hsh, package)
|
104
|
+
def recursively_index_module(mod, index_hsh, package, mod_index)
|
105
105
|
return if !mod.is_a?(Module)
|
106
|
+
return if mod_index[mod]
|
107
|
+
|
108
|
+
mod_index[mod] = true
|
106
109
|
|
107
110
|
mod.constants.each do |const_name|
|
108
111
|
const = mod.const_get(const_name)
|
109
112
|
|
110
|
-
recursively_index_module(const, index_hsh, package)
|
113
|
+
recursively_index_module(const, index_hsh, package, mod_index)
|
111
114
|
|
112
115
|
next if !const.is_a?(Class)
|
113
116
|
next if package.objects.any? { |o| o.klass == const }
|
114
|
-
next if index_hsh[:classes].has_key?(demodulize(const.name))
|
117
|
+
next if index_hsh[:classes].has_key?(demodulize(const.name))
|
115
118
|
|
116
119
|
const_abs_path = mod.const_source_location(const.name).first
|
117
120
|
next if !const_abs_path
|
data/lib/ree/version.rb
CHANGED