code2pdf 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +2 -0
- data/Gemfile.lock +12 -2
- data/README.textile +2 -2
- data/bin/code2pdf +8 -60
- data/code2pdf.gemspec +2 -2
- data/lib/code2pdf.rb +3 -0
- data/lib/code2pdf/convert_to_pdf.rb +65 -4
- data/lib/code2pdf/version.rb +1 -1
- data/spec/code2pdf/convert_to_pdf_spec.rb +32 -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/purplelist.yml +3 -0
- data/spec/spec_helper.rb +2 -0
- metadata +55 -16
@@ -0,0 +1,90 @@
|
|
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
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>File: tmp.txt [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"
|
14
|
+
charset="utf-8"></script>
|
15
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
16
|
+
charset="utf-8"></script>
|
17
|
+
<script src="./js/quicksearch.js" type="text/javascript"
|
18
|
+
charset="utf-8"></script>
|
19
|
+
<script src="./js/darkfish.js" type="text/javascript"
|
20
|
+
charset="utf-8"></script>
|
21
|
+
</head>
|
22
|
+
|
23
|
+
<body class="file">
|
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="project-metadata">
|
36
|
+
|
37
|
+
|
38
|
+
<div id="fileindex-section" class="section project-section">
|
39
|
+
<h3 class="section-header">Files</h3>
|
40
|
+
<ul>
|
41
|
+
|
42
|
+
<li class="file"><a href="./tmp_txt.html">tmp.txt</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
|
48
|
+
<div id="classindex-section" class="section project-section">
|
49
|
+
<h3 class="section-header">Class Index
|
50
|
+
<span class="search-toggle"><img src="./images/find.png"
|
51
|
+
height="16" width="16" alt="[+]"
|
52
|
+
title="show/hide quicksearch" /></span></h3>
|
53
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
54
|
+
<fieldset>
|
55
|
+
<legend>Quicksearch</legend>
|
56
|
+
<input type="text" name="quicksearch" value=""
|
57
|
+
class="quicksearch-field" />
|
58
|
+
</fieldset>
|
59
|
+
</form>
|
60
|
+
|
61
|
+
<ul class="link-list">
|
62
|
+
|
63
|
+
<li><a href="./HelloWorld.html">HelloWorld</a></li>
|
64
|
+
|
65
|
+
<li><a href="./HelloWorld/Gambi.html">HelloWorld::Gambi</a></li>
|
66
|
+
|
67
|
+
<li><a href="./HelloWorld/Goodbye.html">HelloWorld::Goodbye</a></li>
|
68
|
+
|
69
|
+
<li><a href="./HelloWorld/Helo.html">HelloWorld::Helo</a></li>
|
70
|
+
|
71
|
+
</ul>
|
72
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="documentation">
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div id="validator-badges">
|
84
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
85
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
86
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
87
|
+
</div>
|
88
|
+
</body>
|
89
|
+
</html>
|
90
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
some content that should not be included in PDF file
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code2pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 1
|
9
8
|
- 2
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lucas Caton
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-28 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: prawn
|
@@ -23,28 +23,28 @@ dependencies:
|
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 49
|
29
29
|
segments:
|
30
30
|
- 0
|
31
|
-
|
32
|
-
|
31
|
+
- 11
|
32
|
+
- 1
|
33
|
+
version: 0.11.1
|
34
|
+
type: :runtime
|
33
35
|
version_requirements: *id001
|
34
36
|
- !ruby/object:Gem::Dependency
|
35
|
-
name:
|
37
|
+
name: rspec
|
36
38
|
prerelease: false
|
37
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
40
|
none: false
|
39
41
|
requirements:
|
40
|
-
- -
|
42
|
+
- - ">="
|
41
43
|
- !ruby/object:Gem::Version
|
42
|
-
hash:
|
44
|
+
hash: 3
|
43
45
|
segments:
|
44
46
|
- 0
|
45
|
-
|
46
|
-
- 1
|
47
|
-
version: 0.11.1
|
47
|
+
version: "0"
|
48
48
|
type: :development
|
49
49
|
version_requirements: *id002
|
50
50
|
description: Convert your source code to PDF
|
@@ -58,6 +58,7 @@ extra_rdoc_files: []
|
|
58
58
|
|
59
59
|
files:
|
60
60
|
- .gitignore
|
61
|
+
- .rspec
|
61
62
|
- Gemfile
|
62
63
|
- Gemfile.lock
|
63
64
|
- LICENSE.txt
|
@@ -66,8 +67,28 @@ files:
|
|
66
67
|
- bin/code2pdf
|
67
68
|
- code2pdf.gemspec
|
68
69
|
- examples/example.pdf
|
70
|
+
- lib/code2pdf.rb
|
69
71
|
- lib/code2pdf/convert_to_pdf.rb
|
70
72
|
- lib/code2pdf/version.rb
|
73
|
+
- spec/code2pdf/convert_to_pdf_spec.rb
|
74
|
+
- spec/fixtures/hello_world/.code2pdf
|
75
|
+
- spec/fixtures/hello_world/doc/HelloWorld.html
|
76
|
+
- spec/fixtures/hello_world/doc/HelloWorld/Gambi.html
|
77
|
+
- spec/fixtures/hello_world/doc/HelloWorld/Goodbye.html
|
78
|
+
- spec/fixtures/hello_world/doc/HelloWorld/Helo.html
|
79
|
+
- spec/fixtures/hello_world/doc/created.rid
|
80
|
+
- spec/fixtures/hello_world/doc/index.html
|
81
|
+
- spec/fixtures/hello_world/doc/lib/gambi_rb.html
|
82
|
+
- spec/fixtures/hello_world/doc/lib/goodbye_rb.html
|
83
|
+
- spec/fixtures/hello_world/doc/lib/hello_rb.html
|
84
|
+
- spec/fixtures/hello_world/doc/rdoc.css
|
85
|
+
- spec/fixtures/hello_world/doc/tmp_txt.html
|
86
|
+
- spec/fixtures/hello_world/lib/gambi.rb
|
87
|
+
- spec/fixtures/hello_world/lib/goodbye.rb
|
88
|
+
- spec/fixtures/hello_world/lib/hello.rb
|
89
|
+
- spec/fixtures/hello_world/tmp.txt
|
90
|
+
- spec/fixtures/purplelist.yml
|
91
|
+
- spec/spec_helper.rb
|
71
92
|
homepage: http://blog.lucascaton.com.br/
|
72
93
|
licenses: []
|
73
94
|
|
@@ -101,5 +122,23 @@ rubygems_version: 1.7.2
|
|
101
122
|
signing_key:
|
102
123
|
specification_version: 3
|
103
124
|
summary: Convert your source code to PDF
|
104
|
-
test_files:
|
105
|
-
|
125
|
+
test_files:
|
126
|
+
- spec/code2pdf/convert_to_pdf_spec.rb
|
127
|
+
- spec/fixtures/hello_world/.code2pdf
|
128
|
+
- spec/fixtures/hello_world/doc/HelloWorld.html
|
129
|
+
- spec/fixtures/hello_world/doc/HelloWorld/Gambi.html
|
130
|
+
- spec/fixtures/hello_world/doc/HelloWorld/Goodbye.html
|
131
|
+
- spec/fixtures/hello_world/doc/HelloWorld/Helo.html
|
132
|
+
- spec/fixtures/hello_world/doc/created.rid
|
133
|
+
- spec/fixtures/hello_world/doc/index.html
|
134
|
+
- spec/fixtures/hello_world/doc/lib/gambi_rb.html
|
135
|
+
- spec/fixtures/hello_world/doc/lib/goodbye_rb.html
|
136
|
+
- spec/fixtures/hello_world/doc/lib/hello_rb.html
|
137
|
+
- spec/fixtures/hello_world/doc/rdoc.css
|
138
|
+
- spec/fixtures/hello_world/doc/tmp_txt.html
|
139
|
+
- spec/fixtures/hello_world/lib/gambi.rb
|
140
|
+
- spec/fixtures/hello_world/lib/goodbye.rb
|
141
|
+
- spec/fixtures/hello_world/lib/hello.rb
|
142
|
+
- spec/fixtures/hello_world/tmp.txt
|
143
|
+
- spec/fixtures/purplelist.yml
|
144
|
+
- spec/spec_helper.rb
|