erlapi 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +5 -0
- data/LICENSE +20 -0
- data/README.rdoc +15 -0
- data/Rakefile +56 -0
- data/VERSION +1 -0
- data/bin/erlapi +26 -0
- data/erlapi.gemspec +140 -0
- data/lib/erlapi.rb +38 -0
- data/lib/erlapi/generator.rb +194 -0
- data/lib/erlapi/generator/shtml.rb +353 -0
- data/lib/erlapi/generator/template/direct/_context.rhtml +172 -0
- data/lib/erlapi/generator/template/direct/class.rhtml +40 -0
- data/lib/erlapi/generator/template/direct/file.rhtml +30 -0
- data/lib/erlapi/generator/template/direct/index.rhtml +14 -0
- data/lib/erlapi/generator/template/direct/resources/apple-touch-icon.png +0 -0
- data/lib/erlapi/generator/template/direct/resources/css/main.css +263 -0
- data/lib/erlapi/generator/template/direct/resources/css/panel.css +383 -0
- data/lib/erlapi/generator/template/direct/resources/css/reset.css +53 -0
- data/lib/erlapi/generator/template/direct/resources/favicon.ico +0 -0
- data/lib/erlapi/generator/template/direct/resources/i/arrows.png +0 -0
- data/lib/erlapi/generator/template/direct/resources/i/results_bg.png +0 -0
- data/lib/erlapi/generator/template/direct/resources/i/tree_bg.png +0 -0
- data/lib/erlapi/generator/template/direct/resources/js/jquery-1.3.2.min.js +19 -0
- data/lib/erlapi/generator/template/direct/resources/js/jquery-effect.js +593 -0
- data/lib/erlapi/generator/template/direct/resources/js/main.js +22 -0
- data/lib/erlapi/generator/template/direct/resources/js/searchdoc.js +628 -0
- data/lib/erlapi/generator/template/direct/resources/panel/index.html +71 -0
- data/lib/erlapi/generator/template/merge/index.rhtml +14 -0
- data/lib/erlapi/generator/template/shtml/_context.rhtml +164 -0
- data/lib/erlapi/generator/template/shtml/class.rhtml +46 -0
- data/lib/erlapi/generator/template/shtml/file.rhtml +37 -0
- data/lib/erlapi/generator/template/shtml/index.rhtml +14 -0
- data/lib/erlapi/generator/template/shtml/resources/apple-touch-icon.png +0 -0
- data/lib/erlapi/generator/template/shtml/resources/css/main.css +191 -0
- data/lib/erlapi/generator/template/shtml/resources/css/panel.css +383 -0
- data/lib/erlapi/generator/template/shtml/resources/css/reset.css +53 -0
- data/lib/erlapi/generator/template/shtml/resources/favicon.ico +0 -0
- data/lib/erlapi/generator/template/shtml/resources/i/arrows.png +0 -0
- data/lib/erlapi/generator/template/shtml/resources/i/results_bg.png +0 -0
- data/lib/erlapi/generator/template/shtml/resources/i/tree_bg.png +0 -0
- data/lib/erlapi/generator/template/shtml/resources/js/jquery-1.3.2.min.js +19 -0
- data/lib/erlapi/generator/template/shtml/resources/js/main.js +34 -0
- data/lib/erlapi/generator/template/shtml/resources/js/searchdoc.js +628 -0
- data/lib/erlapi/generator/template/shtml/resources/panel/index.html +71 -0
- data/lib/erlapi/helpers.rb +26 -0
- data/lib/erlapi/merge.rb +217 -0
- data/lib/erlapi/parser.rb +134 -0
- data/lib/erlapi/shtml.rb +351 -0
- data/lib/erlapi/templatable.rb +51 -0
- data/lib/erlapi/templates/html/direct/_context.rhtml +172 -0
- data/lib/erlapi/templates/html/direct/class.rhtml +40 -0
- data/lib/erlapi/templates/html/direct/file.rhtml +30 -0
- data/lib/erlapi/templates/html/direct/index.rhtml +14 -0
- data/lib/erlapi/templates/html/direct/resources/apple-touch-icon.png +0 -0
- data/lib/erlapi/templates/html/direct/resources/css/main.css +263 -0
- data/lib/erlapi/templates/html/direct/resources/css/panel.css +383 -0
- data/lib/erlapi/templates/html/direct/resources/css/reset.css +53 -0
- data/lib/erlapi/templates/html/direct/resources/favicon.ico +0 -0
- data/lib/erlapi/templates/html/direct/resources/i/arrows.png +0 -0
- data/lib/erlapi/templates/html/direct/resources/i/results_bg.png +0 -0
- data/lib/erlapi/templates/html/direct/resources/i/tree_bg.png +0 -0
- data/lib/erlapi/templates/html/direct/resources/js/jquery-1.3.2.min.js +19 -0
- data/lib/erlapi/templates/html/direct/resources/js/jquery-effect.js +593 -0
- data/lib/erlapi/templates/html/direct/resources/js/main.js +22 -0
- data/lib/erlapi/templates/html/direct/resources/js/searchdoc.js +628 -0
- data/lib/erlapi/templates/html/direct/resources/panel/index.html +71 -0
- data/lib/erlapi/templates/html/merge/index.rhtml +14 -0
- data/lib/erlapi/templates/html/shtml/_context.rhtml +68 -0
- data/lib/erlapi/templates/html/shtml/class.rhtml +25 -0
- data/lib/erlapi/templates/html/shtml/file.rhtml +37 -0
- data/lib/erlapi/templates/html/shtml/index.rhtml +14 -0
- data/lib/erlapi/templates/html/shtml/resources copy/apple-touch-icon.png +0 -0
- data/lib/erlapi/templates/html/shtml/resources copy/css/main.css +195 -0
- data/lib/erlapi/templates/html/shtml/resources copy/css/panel.css +383 -0
- data/lib/erlapi/templates/html/shtml/resources copy/css/reset.css +53 -0
- data/lib/erlapi/templates/html/shtml/resources copy/favicon.ico +0 -0
- data/lib/erlapi/templates/html/shtml/resources copy/i/arrows.png +0 -0
- data/lib/erlapi/templates/html/shtml/resources copy/i/results_bg.png +0 -0
- data/lib/erlapi/templates/html/shtml/resources copy/i/tree_bg.png +0 -0
- data/lib/erlapi/templates/html/shtml/resources copy/js/jquery-1.3.2.min.js +19 -0
- data/lib/erlapi/templates/html/shtml/resources copy/js/main.js +34 -0
- data/lib/erlapi/templates/html/shtml/resources copy/js/searchdoc.js +628 -0
- data/lib/erlapi/templates/html/shtml/resources copy/panel/index.html +71 -0
- data/lib/erlapi/templates/html/shtml/resources/apple-touch-icon.png +0 -0
- data/lib/erlapi/templates/html/shtml/resources/css/main.css +263 -0
- data/lib/erlapi/templates/html/shtml/resources/css/panel.css +383 -0
- data/lib/erlapi/templates/html/shtml/resources/css/reset.css +53 -0
- data/lib/erlapi/templates/html/shtml/resources/favicon.ico +0 -0
- data/lib/erlapi/templates/html/shtml/resources/i/arrows.png +0 -0
- data/lib/erlapi/templates/html/shtml/resources/i/results_bg.png +0 -0
- data/lib/erlapi/templates/html/shtml/resources/i/tree_bg.png +0 -0
- data/lib/erlapi/templates/html/shtml/resources/js/jquery-1.3.2.min.js +19 -0
- data/lib/erlapi/templates/html/shtml/resources/js/jquery-effect.js +593 -0
- data/lib/erlapi/templates/html/shtml/resources/js/main.js +22 -0
- data/lib/erlapi/templates/html/shtml/resources/js/searchdoc.js +620 -0
- data/lib/erlapi/templates/html/shtml/resources/panel/index.html +71 -0
- data/test/erlapi_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- metadata +155 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
6
|
+
<head>
|
7
|
+
<title>layout</title>
|
8
|
+
<link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
<link rel="stylesheet" href="../css/panel.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
<script src="search_index.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script src="tree.js" type="text/javascript" charset="utf-8"></script>
|
12
|
+
<script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../js/searchdoc.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script type="text/javascript" charset="utf-8">
|
15
|
+
//<![CDATA[
|
16
|
+
function placeholder() {
|
17
|
+
if (jQuery.browser.safari) return;
|
18
|
+
$('#search-label').click(function() {
|
19
|
+
$('#search').focus();
|
20
|
+
$('#search-label').hide();
|
21
|
+
});
|
22
|
+
|
23
|
+
$('#search').focus(function() {
|
24
|
+
$('#search-label').hide();
|
25
|
+
});
|
26
|
+
$('#search').blur(function() {
|
27
|
+
this.value == '' && $('#search-label').show()
|
28
|
+
});
|
29
|
+
|
30
|
+
$('#search')[0].value == '' && $('#search-label').show();
|
31
|
+
}
|
32
|
+
$(function() {
|
33
|
+
placeholder();
|
34
|
+
var panel = new Searchdoc.Panel($('#panel'), search_data, tree, top.frames[1]);
|
35
|
+
$('#search').focus();
|
36
|
+
|
37
|
+
var s = window.parent.location.search.match(/\?q=(.*)$/);
|
38
|
+
if (s) {
|
39
|
+
s = decodeURIComponent(s[1]).replace(/\+/g, ' ');
|
40
|
+
if (s.length > 0)
|
41
|
+
{
|
42
|
+
$('#search').val(s);
|
43
|
+
panel.search(s, true);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
})
|
47
|
+
//]]>
|
48
|
+
</script>
|
49
|
+
</head>
|
50
|
+
<body>
|
51
|
+
<div class="panel panel_tree" id="panel">
|
52
|
+
<div class="header">
|
53
|
+
<div>
|
54
|
+
<label for="search" id="search-label" style="display: none">Search</label>
|
55
|
+
<table>
|
56
|
+
<tr><td>
|
57
|
+
<input type="Search" placeholder="Search" autosave="searchdoc" results="10" id="search" autocomplete="off"/>
|
58
|
+
</td></tr>
|
59
|
+
</table></div>
|
60
|
+
</div>
|
61
|
+
<div class="tree">
|
62
|
+
<ul>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
<div class="result">
|
66
|
+
<ul>
|
67
|
+
</ul>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
</body>
|
71
|
+
</html>
|
data/test/erlapi_test.rb
ADDED
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: erlapi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.9
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Rudenko
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-12-13 00:00:00 +03:00
|
13
|
+
default_executable: erlapi
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: ceo@prepor.ru
|
18
|
+
executables:
|
19
|
+
- erlapi
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- LICENSE
|
24
|
+
- README.rdoc
|
25
|
+
files:
|
26
|
+
- .document
|
27
|
+
- .gitignore
|
28
|
+
- LICENSE
|
29
|
+
- README.rdoc
|
30
|
+
- Rakefile
|
31
|
+
- VERSION
|
32
|
+
- bin/erlapi
|
33
|
+
- erlapi.gemspec
|
34
|
+
- lib/erlapi.rb
|
35
|
+
- lib/erlapi/generator.rb
|
36
|
+
- lib/erlapi/generator/shtml.rb
|
37
|
+
- lib/erlapi/generator/template/direct/_context.rhtml
|
38
|
+
- lib/erlapi/generator/template/direct/class.rhtml
|
39
|
+
- lib/erlapi/generator/template/direct/file.rhtml
|
40
|
+
- lib/erlapi/generator/template/direct/index.rhtml
|
41
|
+
- lib/erlapi/generator/template/direct/resources/apple-touch-icon.png
|
42
|
+
- lib/erlapi/generator/template/direct/resources/css/main.css
|
43
|
+
- lib/erlapi/generator/template/direct/resources/css/panel.css
|
44
|
+
- lib/erlapi/generator/template/direct/resources/css/reset.css
|
45
|
+
- lib/erlapi/generator/template/direct/resources/favicon.ico
|
46
|
+
- lib/erlapi/generator/template/direct/resources/i/arrows.png
|
47
|
+
- lib/erlapi/generator/template/direct/resources/i/results_bg.png
|
48
|
+
- lib/erlapi/generator/template/direct/resources/i/tree_bg.png
|
49
|
+
- lib/erlapi/generator/template/direct/resources/js/jquery-1.3.2.min.js
|
50
|
+
- lib/erlapi/generator/template/direct/resources/js/jquery-effect.js
|
51
|
+
- lib/erlapi/generator/template/direct/resources/js/main.js
|
52
|
+
- lib/erlapi/generator/template/direct/resources/js/searchdoc.js
|
53
|
+
- lib/erlapi/generator/template/direct/resources/panel/index.html
|
54
|
+
- lib/erlapi/generator/template/merge/index.rhtml
|
55
|
+
- lib/erlapi/generator/template/shtml/_context.rhtml
|
56
|
+
- lib/erlapi/generator/template/shtml/class.rhtml
|
57
|
+
- lib/erlapi/generator/template/shtml/file.rhtml
|
58
|
+
- lib/erlapi/generator/template/shtml/index.rhtml
|
59
|
+
- lib/erlapi/generator/template/shtml/resources/apple-touch-icon.png
|
60
|
+
- lib/erlapi/generator/template/shtml/resources/css/main.css
|
61
|
+
- lib/erlapi/generator/template/shtml/resources/css/panel.css
|
62
|
+
- lib/erlapi/generator/template/shtml/resources/css/reset.css
|
63
|
+
- lib/erlapi/generator/template/shtml/resources/favicon.ico
|
64
|
+
- lib/erlapi/generator/template/shtml/resources/i/arrows.png
|
65
|
+
- lib/erlapi/generator/template/shtml/resources/i/results_bg.png
|
66
|
+
- lib/erlapi/generator/template/shtml/resources/i/tree_bg.png
|
67
|
+
- lib/erlapi/generator/template/shtml/resources/js/jquery-1.3.2.min.js
|
68
|
+
- lib/erlapi/generator/template/shtml/resources/js/main.js
|
69
|
+
- lib/erlapi/generator/template/shtml/resources/js/searchdoc.js
|
70
|
+
- lib/erlapi/generator/template/shtml/resources/panel/index.html
|
71
|
+
- lib/erlapi/helpers.rb
|
72
|
+
- lib/erlapi/merge.rb
|
73
|
+
- lib/erlapi/parser.rb
|
74
|
+
- lib/erlapi/shtml.rb
|
75
|
+
- lib/erlapi/templatable.rb
|
76
|
+
- lib/erlapi/templates/html/direct/_context.rhtml
|
77
|
+
- lib/erlapi/templates/html/direct/class.rhtml
|
78
|
+
- lib/erlapi/templates/html/direct/file.rhtml
|
79
|
+
- lib/erlapi/templates/html/direct/index.rhtml
|
80
|
+
- lib/erlapi/templates/html/direct/resources/apple-touch-icon.png
|
81
|
+
- lib/erlapi/templates/html/direct/resources/css/main.css
|
82
|
+
- lib/erlapi/templates/html/direct/resources/css/panel.css
|
83
|
+
- lib/erlapi/templates/html/direct/resources/css/reset.css
|
84
|
+
- lib/erlapi/templates/html/direct/resources/favicon.ico
|
85
|
+
- lib/erlapi/templates/html/direct/resources/i/arrows.png
|
86
|
+
- lib/erlapi/templates/html/direct/resources/i/results_bg.png
|
87
|
+
- lib/erlapi/templates/html/direct/resources/i/tree_bg.png
|
88
|
+
- lib/erlapi/templates/html/direct/resources/js/jquery-1.3.2.min.js
|
89
|
+
- lib/erlapi/templates/html/direct/resources/js/jquery-effect.js
|
90
|
+
- lib/erlapi/templates/html/direct/resources/js/main.js
|
91
|
+
- lib/erlapi/templates/html/direct/resources/js/searchdoc.js
|
92
|
+
- lib/erlapi/templates/html/direct/resources/panel/index.html
|
93
|
+
- lib/erlapi/templates/html/merge/index.rhtml
|
94
|
+
- lib/erlapi/templates/html/shtml/_context.rhtml
|
95
|
+
- lib/erlapi/templates/html/shtml/class.rhtml
|
96
|
+
- lib/erlapi/templates/html/shtml/file.rhtml
|
97
|
+
- lib/erlapi/templates/html/shtml/index.rhtml
|
98
|
+
- lib/erlapi/templates/html/shtml/resources copy/apple-touch-icon.png
|
99
|
+
- lib/erlapi/templates/html/shtml/resources copy/css/main.css
|
100
|
+
- lib/erlapi/templates/html/shtml/resources copy/css/panel.css
|
101
|
+
- lib/erlapi/templates/html/shtml/resources copy/css/reset.css
|
102
|
+
- lib/erlapi/templates/html/shtml/resources copy/favicon.ico
|
103
|
+
- lib/erlapi/templates/html/shtml/resources copy/i/arrows.png
|
104
|
+
- lib/erlapi/templates/html/shtml/resources copy/i/results_bg.png
|
105
|
+
- lib/erlapi/templates/html/shtml/resources copy/i/tree_bg.png
|
106
|
+
- lib/erlapi/templates/html/shtml/resources copy/js/jquery-1.3.2.min.js
|
107
|
+
- lib/erlapi/templates/html/shtml/resources copy/js/main.js
|
108
|
+
- lib/erlapi/templates/html/shtml/resources copy/js/searchdoc.js
|
109
|
+
- lib/erlapi/templates/html/shtml/resources copy/panel/index.html
|
110
|
+
- lib/erlapi/templates/html/shtml/resources/apple-touch-icon.png
|
111
|
+
- lib/erlapi/templates/html/shtml/resources/css/main.css
|
112
|
+
- lib/erlapi/templates/html/shtml/resources/css/panel.css
|
113
|
+
- lib/erlapi/templates/html/shtml/resources/css/reset.css
|
114
|
+
- lib/erlapi/templates/html/shtml/resources/favicon.ico
|
115
|
+
- lib/erlapi/templates/html/shtml/resources/i/arrows.png
|
116
|
+
- lib/erlapi/templates/html/shtml/resources/i/results_bg.png
|
117
|
+
- lib/erlapi/templates/html/shtml/resources/i/tree_bg.png
|
118
|
+
- lib/erlapi/templates/html/shtml/resources/js/jquery-1.3.2.min.js
|
119
|
+
- lib/erlapi/templates/html/shtml/resources/js/jquery-effect.js
|
120
|
+
- lib/erlapi/templates/html/shtml/resources/js/main.js
|
121
|
+
- lib/erlapi/templates/html/shtml/resources/js/searchdoc.js
|
122
|
+
- lib/erlapi/templates/html/shtml/resources/panel/index.html
|
123
|
+
- test/erlapi_test.rb
|
124
|
+
- test/test_helper.rb
|
125
|
+
has_rdoc: true
|
126
|
+
homepage: http://github.com/prepor/erlapi
|
127
|
+
licenses: []
|
128
|
+
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options:
|
131
|
+
- --charset=UTF-8
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: "0"
|
139
|
+
version:
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: "0"
|
145
|
+
version:
|
146
|
+
requirements: []
|
147
|
+
|
148
|
+
rubyforge_project:
|
149
|
+
rubygems_version: 1.3.5
|
150
|
+
signing_key:
|
151
|
+
specification_version: 3
|
152
|
+
summary: Searchable erlang api generator
|
153
|
+
test_files:
|
154
|
+
- test/erlapi_test.rb
|
155
|
+
- test/test_helper.rb
|