code_reference_finder 0.0.1 → 0.0.2
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/lib/code_reference_finder.rb +11 -8
- 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: b04ca2779112a1b2416077eaa8b553e54be8fc6a34b54df4152a326149c41764
|
4
|
+
data.tar.gz: a67cfe89dc7c8a28392e9a9e2c9497d1ca67ecc02db747176b7a77f882c5bc85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23f5e0d9c510db0bfb88ceb59a198eb9666e3b42acb4c6c355b5f2bf9b3c5a4f49271043003340da6cd08a764fbc324ba342f2e347b6bda703f1c66ba7f9487d
|
7
|
+
data.tar.gz: '08d03ac2fcf56374a29f5e0f4d80c7e67e68ca268e231eb62fe5327dc1d95c0f804a9bda121586e314a80a37e005ed43aeb67e0c57e13181de9ce7d7d8339330'
|
@@ -108,14 +108,17 @@ class CodeReferenceFinder
|
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
111
|
+
# if there were matches, add them.
|
112
|
+
if line_matches.size > 0
|
113
|
+
file_matches[name] = {
|
114
|
+
:path => path,
|
115
|
+
:line_count => i,
|
116
|
+
:ref_count => ref_searches.size,
|
117
|
+
:match_count => line_matches.size,
|
118
|
+
:refs => ref_searches,
|
119
|
+
:matches => line_matches
|
120
|
+
}
|
121
|
+
end
|
119
122
|
end
|
120
123
|
|
121
124
|
end_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|