code2pdf_rdeterre 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +61 -0
- data/LICENSE +24 -0
- data/README.md +52 -0
- data/Rakefile +7 -0
- data/bin/code2pdf +39 -0
- data/code2pdf.gemspec +24 -0
- data/examples/example.pdf +24488 -0
- data/lib/code2pdf.rb +4 -0
- data/lib/code2pdf/convert_to_pdf.rb +120 -0
- data/lib/code2pdf/version.rb +3 -0
- data/spec/code2pdf/convert_to_pdf_spec.rb +73 -0
- data/spec/fixtures/hello_world/.code2pdf +7 -0
- data/spec/fixtures/hello_world/doc/HelloWorld.html +162 -0
- data/spec/fixtures/hello_world/doc/HelloWorld/Gambi.html +150 -0
- data/spec/fixtures/hello_world/doc/HelloWorld/Goodbye.html +199 -0
- data/spec/fixtures/hello_world/doc/HelloWorld/Helo.html +199 -0
- data/spec/fixtures/hello_world/doc/created.rid +5 -0
- data/spec/fixtures/hello_world/doc/index.html +66 -0
- data/spec/fixtures/hello_world/doc/lib/gambi_rb.html +52 -0
- data/spec/fixtures/hello_world/doc/lib/goodbye_rb.html +52 -0
- data/spec/fixtures/hello_world/doc/lib/hello_rb.html +52 -0
- data/spec/fixtures/hello_world/doc/rdoc.css +706 -0
- data/spec/fixtures/hello_world/doc/tmp_txt.html +90 -0
- data/spec/fixtures/hello_world/lib/gambi.rb +5 -0
- data/spec/fixtures/hello_world/lib/goodbye.rb +7 -0
- data/spec/fixtures/hello_world/lib/hello.rb +7 -0
- data/spec/fixtures/hello_world/tmp.txt +1 -0
- data/spec/fixtures/hello_world_original.pdf +0 -0
- data/spec/fixtures/purplelist.yml +3 -0
- data/spec/fixtures/syntax_highlight.html +15 -0
- data/spec/spec_helper.rb +10 -0
- metadata +189 -0
@@ -0,0 +1,199 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: HelloWorld::Goodbye</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="class">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="../index.html">Home</a>
|
29
|
+
<a href="../index.html#classes">Classes</a>
|
30
|
+
<a href="../index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="../lib/goodbye_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="lib/goodbye.rb">lib/goodbye.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
<div id="parent-class-section" class="section">
|
56
|
+
<h3 class="section-header">Parent</h3>
|
57
|
+
|
58
|
+
<p class="link">Object</p>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Namespace Contents -->
|
64
|
+
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
|
68
|
+
<div id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
<li><a href="#method-i-say">#say</a></li>
|
73
|
+
|
74
|
+
</ul>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
|
78
|
+
<!-- Included Modules -->
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div id="project-metadata">
|
83
|
+
|
84
|
+
|
85
|
+
<div id="fileindex-section" class="section project-section">
|
86
|
+
<h3 class="section-header">Files</h3>
|
87
|
+
<ul>
|
88
|
+
|
89
|
+
<li class="file"><a href="../tmp_txt.html">tmp.txt</a></li>
|
90
|
+
|
91
|
+
</ul>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
|
95
|
+
<div id="classindex-section" class="section project-section">
|
96
|
+
<h3 class="section-header">Class Index
|
97
|
+
<span class="search-toggle"><img src="../images/find.png"
|
98
|
+
height="16" width="16" alt="[+]"
|
99
|
+
title="show/hide quicksearch" /></span></h3>
|
100
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
101
|
+
<fieldset>
|
102
|
+
<legend>Quicksearch</legend>
|
103
|
+
<input type="text" name="quicksearch" value=""
|
104
|
+
class="quicksearch-field" />
|
105
|
+
</fieldset>
|
106
|
+
</form>
|
107
|
+
|
108
|
+
<ul class="link-list">
|
109
|
+
|
110
|
+
<li><a href="../HelloWorld.html">HelloWorld</a></li>
|
111
|
+
|
112
|
+
<li><a href="../HelloWorld/Gambi.html">HelloWorld::Gambi</a></li>
|
113
|
+
|
114
|
+
<li><a href="../HelloWorld/Goodbye.html">HelloWorld::Goodbye</a></li>
|
115
|
+
|
116
|
+
<li><a href="../HelloWorld/Helo.html">HelloWorld::Helo</a></li>
|
117
|
+
|
118
|
+
</ul>
|
119
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
|
123
|
+
</div>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<div id="documentation">
|
127
|
+
<h1 class="class">HelloWorld::Goodbye</h1>
|
128
|
+
|
129
|
+
<div id="description">
|
130
|
+
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<!-- Constants -->
|
134
|
+
|
135
|
+
|
136
|
+
<!-- Attributes -->
|
137
|
+
|
138
|
+
|
139
|
+
<!-- Methods -->
|
140
|
+
|
141
|
+
<div id="public-instance-method-details" class="method-section section">
|
142
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
143
|
+
|
144
|
+
|
145
|
+
<div id="say-method" class="method-detail ">
|
146
|
+
<a name="method-i-say"></a>
|
147
|
+
|
148
|
+
<div class="method-heading">
|
149
|
+
|
150
|
+
<span class="method-name">say</span><span
|
151
|
+
class="method-args">()</span>
|
152
|
+
<span class="method-click-advice">click to toggle source</span>
|
153
|
+
|
154
|
+
</div>
|
155
|
+
|
156
|
+
<div class="method-description">
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<div class="method-source-code"
|
163
|
+
id="say-source">
|
164
|
+
<pre>
|
165
|
+
<span class="ruby-comment cmt"># File lib/goodbye.rb, line 3</span>
|
166
|
+
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">say</span>
|
167
|
+
4: <span class="ruby-value str">"See ya!"</span>
|
168
|
+
5: <span class="ruby-keyword kw">end</span></pre>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
</div>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
</div>
|
177
|
+
|
178
|
+
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
</div>
|
183
|
+
|
184
|
+
|
185
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
186
|
+
|
187
|
+
<p>Disabled; run with --debug to generate this.</p>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
|
191
|
+
<div id="validator-badges">
|
192
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
193
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
194
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
</body>
|
198
|
+
</html>
|
199
|
+
|
@@ -0,0 +1,199 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: HelloWorld::Helo</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="class">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="../index.html">Home</a>
|
29
|
+
<a href="../index.html#classes">Classes</a>
|
30
|
+
<a href="../index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="../lib/hello_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="lib/hello.rb">lib/hello.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
<div id="parent-class-section" class="section">
|
56
|
+
<h3 class="section-header">Parent</h3>
|
57
|
+
|
58
|
+
<p class="link">Object</p>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Namespace Contents -->
|
64
|
+
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
|
68
|
+
<div id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
<li><a href="#method-i-say">#say</a></li>
|
73
|
+
|
74
|
+
</ul>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
|
78
|
+
<!-- Included Modules -->
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div id="project-metadata">
|
83
|
+
|
84
|
+
|
85
|
+
<div id="fileindex-section" class="section project-section">
|
86
|
+
<h3 class="section-header">Files</h3>
|
87
|
+
<ul>
|
88
|
+
|
89
|
+
<li class="file"><a href="../tmp_txt.html">tmp.txt</a></li>
|
90
|
+
|
91
|
+
</ul>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
|
95
|
+
<div id="classindex-section" class="section project-section">
|
96
|
+
<h3 class="section-header">Class Index
|
97
|
+
<span class="search-toggle"><img src="../images/find.png"
|
98
|
+
height="16" width="16" alt="[+]"
|
99
|
+
title="show/hide quicksearch" /></span></h3>
|
100
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
101
|
+
<fieldset>
|
102
|
+
<legend>Quicksearch</legend>
|
103
|
+
<input type="text" name="quicksearch" value=""
|
104
|
+
class="quicksearch-field" />
|
105
|
+
</fieldset>
|
106
|
+
</form>
|
107
|
+
|
108
|
+
<ul class="link-list">
|
109
|
+
|
110
|
+
<li><a href="../HelloWorld.html">HelloWorld</a></li>
|
111
|
+
|
112
|
+
<li><a href="../HelloWorld/Gambi.html">HelloWorld::Gambi</a></li>
|
113
|
+
|
114
|
+
<li><a href="../HelloWorld/Goodbye.html">HelloWorld::Goodbye</a></li>
|
115
|
+
|
116
|
+
<li><a href="../HelloWorld/Helo.html">HelloWorld::Helo</a></li>
|
117
|
+
|
118
|
+
</ul>
|
119
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
|
123
|
+
</div>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<div id="documentation">
|
127
|
+
<h1 class="class">HelloWorld::Helo</h1>
|
128
|
+
|
129
|
+
<div id="description">
|
130
|
+
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<!-- Constants -->
|
134
|
+
|
135
|
+
|
136
|
+
<!-- Attributes -->
|
137
|
+
|
138
|
+
|
139
|
+
<!-- Methods -->
|
140
|
+
|
141
|
+
<div id="public-instance-method-details" class="method-section section">
|
142
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
143
|
+
|
144
|
+
|
145
|
+
<div id="say-method" class="method-detail ">
|
146
|
+
<a name="method-i-say"></a>
|
147
|
+
|
148
|
+
<div class="method-heading">
|
149
|
+
|
150
|
+
<span class="method-name">say</span><span
|
151
|
+
class="method-args">(name)</span>
|
152
|
+
<span class="method-click-advice">click to toggle source</span>
|
153
|
+
|
154
|
+
</div>
|
155
|
+
|
156
|
+
<div class="method-description">
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<div class="method-source-code"
|
163
|
+
id="say-source">
|
164
|
+
<pre>
|
165
|
+
<span class="ruby-comment cmt"># File lib/hello.rb, line 3</span>
|
166
|
+
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">say</span>(<span class="ruby-identifier">name</span>)
|
167
|
+
4: <span class="ruby-node">"Hi, #{name}!"</span>
|
168
|
+
5: <span class="ruby-keyword kw">end</span></pre>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
</div>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
</div>
|
177
|
+
|
178
|
+
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
</div>
|
183
|
+
|
184
|
+
|
185
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
186
|
+
|
187
|
+
<p>Disabled; run with --debug to generate this.</p>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
|
191
|
+
<div id="validator-badges">
|
192
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
193
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
194
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
</body>
|
198
|
+
</html>
|
199
|
+
|
@@ -0,0 +1,66 @@
|
|
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
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>RDoc Documentation</title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
<script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
17
|
+
|
18
|
+
</head>
|
19
|
+
<body class="indexpage">
|
20
|
+
|
21
|
+
|
22
|
+
<h1>RDoc Documentation</h1>
|
23
|
+
|
24
|
+
|
25
|
+
<p>This is the API documentation for 'RDoc Documentation'.</p>
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
<h2>Files</h2>
|
31
|
+
<ul>
|
32
|
+
|
33
|
+
<li class="file"><a href="tmp_txt.html">tmp.txt</a></li>
|
34
|
+
|
35
|
+
</ul>
|
36
|
+
|
37
|
+
|
38
|
+
<h2 id="classes">Classes/Modules</h2>
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li class="module"><a href="HelloWorld.html">HelloWorld</a></li>
|
42
|
+
|
43
|
+
<li class="class"><a href="HelloWorld/Gambi.html">HelloWorld::Gambi</a></li>
|
44
|
+
|
45
|
+
<li class="class"><a href="HelloWorld/Goodbye.html">HelloWorld::Goodbye</a></li>
|
46
|
+
|
47
|
+
<li class="class"><a href="HelloWorld/Helo.html">HelloWorld::Helo</a></li>
|
48
|
+
|
49
|
+
</ul>
|
50
|
+
|
51
|
+
<h2 id="methods">Methods</h2>
|
52
|
+
<ul>
|
53
|
+
|
54
|
+
<li><a href="HelloWorld/Goodbye.html#method-i-say">#say — HelloWorld::Goodbye</a></li>
|
55
|
+
|
56
|
+
<li><a href="HelloWorld/Helo.html#method-i-say">#say — HelloWorld::Helo</a></li>
|
57
|
+
|
58
|
+
</ul>
|
59
|
+
|
60
|
+
<div id="validator-badges">
|
61
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
62
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
63
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|