codegraph 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/LICENSE +0 -0
  2. data/gemspec +2 -2
  3. data/lib/codegraph.rb +5 -3
  4. metadata +3 -3
data/LICENSE CHANGED
File without changes
data/gemspec CHANGED
@@ -2,8 +2,8 @@ require 'rubygems'
2
2
 
3
3
  spec = Gem::Specification.new do |s|
4
4
  s.name = "codegraph"
5
- s.version = "0.7.3"
6
- s.date = "2010-11-05"
5
+ s.version = "0.7.4"
6
+ s.date = Time.new.to_s
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.bindir = 'bin'
9
9
  s.files = ["lib/codegraph.rb","bin/codegraph"] + ["gemspec","LICENSE"]
data/lib/codegraph.rb CHANGED
@@ -6,6 +6,8 @@ require 'rgl/rdot'
6
6
  require 'rgl/traversal'
7
7
  require 'thread'
8
8
 
9
+ $KCODE="UTF8"
10
+
9
11
  class FunctionGraph < RGL::DirectedAdjacencyGraph
10
12
  attr_accessor :funx, :internal
11
13
 
@@ -37,7 +39,7 @@ class FunctionGraph < RGL::DirectedAdjacencyGraph
37
39
  @@codehomedir = "#{@@home}/.codegraph"
38
40
  @@internal_funx = []
39
41
  @@matchBeforFuncName = '[^A-z0-9_]\s*'
40
- @@matchAfterFuncName = '\('
42
+ @@matchAfterFuncName = ' *\('
41
43
 
42
44
  # Generate the codegraph storage directory
43
45
  if not FileTest.directory?(@@codehomedir)
@@ -64,7 +66,7 @@ class FunctionGraph < RGL::DirectedAdjacencyGraph
64
66
  filelist.each {|file|
65
67
  threads << Thread.new(file, @@codehomedir) {|file,codehomedir|
66
68
  funxFile = "funxnames"
67
- ctagsKinds = '--c-kinds=f --fortran-kinds=fs --php-kinds=f --perl-kinds=f'
69
+ ctagsKinds = '--c-kinds=f --fortran-kinds=fsp --php-kinds=f --perl-kinds=f'
68
70
 
69
71
  puts "Processing #{file} ..." if false
70
72
  basefile = File.basename(file)
@@ -124,7 +126,7 @@ class FunctionGraph < RGL::DirectedAdjacencyGraph
124
126
  puts "Add func: #{name}" if false
125
127
  add_vertex(name)
126
128
  (names - [name] + @@internal_funx).each { |func|
127
- puts body if false
129
+ puts body if true
128
130
  add_edge("#{name}","#{func}") if/#@@matchBeforFuncName#{func}#@@matchAfterFuncName/.match(body)
129
131
  }
130
132
  }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 3
9
- version: 0.7.3
8
+ - 4
9
+ version: 0.7.4
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: 2010-11-05 00:00:00 +01:00
17
+ date: 2011-01-10 16:45:59 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency