kefka 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.
- data/Gemfile +8 -0
- data/README +4 -5
- data/TODO +4 -0
- data/VERSION +1 -1
- data/app.rb +36 -0
- data/bin/kefka +3 -9
- data/examples/sample_a.rb +61 -0
- data/kefka.gemspec +30 -6
- data/lib/kefka.rb +167 -79
- data/public/javascripts/app.js +115 -0
- data/public/javascripts/jquery-1.7.2.js +9404 -0
- data/public/stylesheets/application.css +14 -0
- data/views/index.erb +21 -0
- metadata +90 -10
- data/README.rdoc +0 -19
- data/examples/sample1.rb +0 -28
data/views/index.erb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
|
2
|
+
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
+
<head>
|
6
|
+
<title>Method Callgraph</title>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
+
<meta name="keywords" content=""/>
|
9
|
+
<meta name="description" content=""/>
|
10
|
+
<link rel="stylesheet" href="stylesheets/application.css" type="text/css" media="screen" charset="utf-8"/>
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body>
|
14
|
+
<div id="methodGraph">
|
15
|
+
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<script src="javascripts/jquery-1.7.2.js" type="text/javascript" charset="utf-8"></script>
|
19
|
+
<script src="javascripts/app.js" type="text/javascript" charset="utf-8"></script>
|
20
|
+
</body>
|
21
|
+
</html>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kefka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,88 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: yajl-ruby
|
16
|
+
requirement: &70228522339920 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70228522339920
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: coderay
|
27
|
+
requirement: &70228522338980 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70228522338980
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sinatra
|
38
|
+
requirement: &70228522338180 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70228522338180
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: method_source
|
49
|
+
requirement: &70228522337200 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70228522337200
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rgl
|
60
|
+
requirement: &70228522336240 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70228522336240
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: &70228522335260 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70228522335260
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: pry-doc
|
82
|
+
requirement: &70228522334380 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *70228522334380
|
14
91
|
- !ruby/object:Gem::Dependency
|
15
92
|
name: rspec
|
16
|
-
requirement: &
|
93
|
+
requirement: &70228522333560 !ruby/object:Gem::Requirement
|
17
94
|
none: false
|
18
95
|
requirements:
|
19
96
|
- - ! '>='
|
@@ -21,10 +98,10 @@ dependencies:
|
|
21
98
|
version: '0'
|
22
99
|
type: :development
|
23
100
|
prerelease: false
|
24
|
-
version_requirements: *
|
101
|
+
version_requirements: *70228522333560
|
25
102
|
- !ruby/object:Gem::Dependency
|
26
103
|
name: jeweler
|
27
|
-
requirement: &
|
104
|
+
requirement: &70228522332680 !ruby/object:Gem::Requirement
|
28
105
|
none: false
|
29
106
|
requirements:
|
30
107
|
- - ! '>='
|
@@ -32,7 +109,7 @@ dependencies:
|
|
32
109
|
version: '0'
|
33
110
|
type: :development
|
34
111
|
prerelease: false
|
35
|
-
version_requirements: *
|
112
|
+
version_requirements: *70228522332680
|
36
113
|
description: ! ' It traces the execution path of a program and displays the source
|
37
114
|
code of each method call in the callgraph '
|
38
115
|
email: redge.tan@gmail.com
|
@@ -42,23 +119,26 @@ extensions: []
|
|
42
119
|
extra_rdoc_files:
|
43
120
|
- LICENSE.txt
|
44
121
|
- README
|
45
|
-
- README.rdoc
|
46
122
|
- TODO
|
47
123
|
files:
|
48
124
|
- .document
|
49
125
|
- Gemfile
|
50
126
|
- LICENSE.txt
|
51
127
|
- README
|
52
|
-
- README.rdoc
|
53
128
|
- Rakefile
|
54
129
|
- VERSION
|
130
|
+
- app.rb
|
55
131
|
- bin/kefka
|
56
|
-
- examples/
|
132
|
+
- examples/sample_a.rb
|
57
133
|
- examples/trace_specific_lines.rb
|
58
134
|
- kefka.gemspec
|
59
135
|
- lib/kefka.rb
|
136
|
+
- public/javascripts/app.js
|
137
|
+
- public/javascripts/jquery-1.7.2.js
|
138
|
+
- public/stylesheets/application.css
|
60
139
|
- test/helper.rb
|
61
140
|
- test/test_kefka.rb
|
141
|
+
- views/index.erb
|
62
142
|
- TODO
|
63
143
|
homepage: http://github.com/redgetan/kefka
|
64
144
|
licenses:
|
@@ -75,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
155
|
version: '0'
|
76
156
|
segments:
|
77
157
|
- 0
|
78
|
-
hash:
|
158
|
+
hash: 2834341029582018531
|
79
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
160
|
none: false
|
81
161
|
requirements:
|
data/README.rdoc
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
= kefka
|
2
|
-
|
3
|
-
Description goes here.
|
4
|
-
|
5
|
-
== Contributing to kefka
|
6
|
-
|
7
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
-
* Fork the project.
|
10
|
-
* Start a feature/bugfix branch.
|
11
|
-
* Commit and push until you are happy with your contribution.
|
12
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
-
|
15
|
-
== Copyright
|
16
|
-
|
17
|
-
Copyright (c) 2012 Reginald Tan. See LICENSE.txt for
|
18
|
-
further details.
|
19
|
-
|
data/examples/sample1.rb
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
class Displayer
|
2
|
-
def initialize(out)
|
3
|
-
@out = out
|
4
|
-
end
|
5
|
-
|
6
|
-
def puts(val)
|
7
|
-
@out.puts val
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def hello
|
12
|
-
num = init
|
13
|
-
x = 4
|
14
|
-
x = x * 2
|
15
|
-
display = Displayer.new($stdout)
|
16
|
-
display.puts "Hello #{num}"
|
17
|
-
end
|
18
|
-
|
19
|
-
def init
|
20
|
-
a = 1 + rand(9)
|
21
|
-
(0..3).each do |x|
|
22
|
-
a = a + x
|
23
|
-
end
|
24
|
-
a
|
25
|
-
end
|
26
|
-
|
27
|
-
hello
|
28
|
-
|