codegraph 0.7.16 → 0.7.17
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.
- data/lib/codegraph.rb +3 -5
- metadata +3 -3
data/lib/codegraph.rb
CHANGED
@@ -9,7 +9,7 @@ require 'asciify'
|
|
9
9
|
require 'json'
|
10
10
|
|
11
11
|
module Codegraph
|
12
|
-
VERSION = '0.7.
|
12
|
+
VERSION = '0.7.17'
|
13
13
|
end
|
14
14
|
|
15
15
|
class FunctionGraph < RGL::DirectedAdjacencyGraph
|
@@ -30,7 +30,7 @@ class FunctionGraph < RGL::DirectedAdjacencyGraph
|
|
30
30
|
@@filesDB = @@codehomedir+'/filesDB.json'
|
31
31
|
@@funxDB = @@codehomedir+'/funxDB.json'
|
32
32
|
|
33
|
-
@@matchBeforFuncName = $options[:matchBefor].nil? ? '[^A-z0-9_]
|
33
|
+
@@matchBeforFuncName = $options[:matchBefor].nil? ? '[^A-z0-9_]( *)': $options[:matchBefor]
|
34
34
|
@@matchAfterFuncName = $options[:matchAfter].nil? ? '( *\(| |$)' : $options[:matchAfter]
|
35
35
|
|
36
36
|
@@map = Asciify::Mapping.new(:default)
|
@@ -128,7 +128,6 @@ class FunctionGraph < RGL::DirectedAdjacencyGraph
|
|
128
128
|
# fill the graph with all functions found in <filelist>
|
129
129
|
# while all functions from <exclude> aren't recognized
|
130
130
|
def fill(filelist,exclude=[])
|
131
|
-
threads = []
|
132
131
|
# generate the necessary files and fill @funx
|
133
132
|
genFiles(self,filelist,exclude)
|
134
133
|
|
@@ -146,8 +145,7 @@ class FunctionGraph < RGL::DirectedAdjacencyGraph
|
|
146
145
|
edges = []
|
147
146
|
add_vertex(name)
|
148
147
|
(names - [name] + @adds).each { |func|
|
149
|
-
puts
|
150
|
-
puts func
|
148
|
+
puts name if @debug
|
151
149
|
if/#@@matchBeforFuncName#{func}#@@matchAfterFuncName/.match(body)
|
152
150
|
edge = ["#{name}","#{func}"]
|
153
151
|
add_edge(*edge)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
8
|
+
- 17
|
9
|
+
version: 0.7.17
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ralf Mueller
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-11-01 09:15:18 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|