diver_down 0.0.1.alpha6 → 0.0.1.alpha8
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: 0b6dec73d4653351d9d352e2576d572e3e16617d4b93b7fac88d1f92346f0d6d
|
4
|
+
data.tar.gz: '0429bc45357cdf12327e0960b379d65df8ffe6d345c23b99600b3ab9e9d02f98'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 012d06bc87393013c42a7b6033507845c7efe36f654058a8afcde1e7b2f229d6b33e45e66e4465ac770c07b69a500adec6ef80e8da98c9ea2414f40f79a8ebc4
|
7
|
+
data.tar.gz: 391c6a56bc9440b60b59eab6a05dfca33095d41a4c1ed7353661ff387f4f227c80865504c51e961c5d512e6cd2caec4d7147547b3ab7dcf54cd7f4d5f250d056
|
@@ -91,13 +91,7 @@ module DiverDown
|
|
91
91
|
|
92
92
|
# Search is a heavy process and should be terminated early.
|
93
93
|
# The position of the most recently found caller or the start of trace is used as the maximum value.
|
94
|
-
|
95
|
-
call_stack.stack_size
|
96
|
-
else
|
97
|
-
call_stack.stack_size - call_stack.context_stack_size[-1]
|
98
|
-
end
|
99
|
-
|
100
|
-
caller_location = find_neast_caller_location(maximum_back_stack_size)
|
94
|
+
caller_location = find_neast_caller_location(call_stack.stack_size)
|
101
95
|
|
102
96
|
# `caller_location` is nil if it is filtered by caller_paths
|
103
97
|
if caller_location
|
data/lib/diver_down/version.rb
CHANGED
@@ -131,6 +131,7 @@ module DiverDown
|
|
131
131
|
definition_group: definition.definition_group,
|
132
132
|
title: definition.title,
|
133
133
|
sources_count: definition.sources.size,
|
134
|
+
unclassified_sources_count: definition.sources.reject { @module_store.include?(_1.source_name) }.size,
|
134
135
|
}
|
135
136
|
end,
|
136
137
|
pagination: pagination.to_h
|
@@ -285,7 +285,6 @@ module DiverDown
|
|
285
285
|
|
286
286
|
sources.each do |source|
|
287
287
|
insert_source(source)
|
288
|
-
insert_dependencies(source)
|
289
288
|
end
|
290
289
|
else
|
291
290
|
buf = swap_io do
|
@@ -303,7 +302,6 @@ module DiverDown
|
|
303
302
|
sources = (by_modules[module_names] || []).sort_by(&:source_name)
|
304
303
|
sources.each do |source|
|
305
304
|
insert_source(source)
|
306
|
-
insert_dependencies(source)
|
307
305
|
end
|
308
306
|
|
309
307
|
next_proc&.call
|
@@ -315,6 +313,10 @@ module DiverDown
|
|
315
313
|
io.write buf.string
|
316
314
|
end
|
317
315
|
end
|
316
|
+
|
317
|
+
definition.sources.sort_by(&:source_name).each do |source|
|
318
|
+
insert_dependencies(source)
|
319
|
+
end
|
318
320
|
end
|
319
321
|
|
320
322
|
def insert_source(source)
|