doc_to_pdf 0.1.0 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/lib/doc_to_pdf/version.rb +1 -1
- data/lib/tasks/doc_to_pdf.rake +4 -2
- metadata +13 -29
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6952265d27f85e1d07741f051da2e53238ed6f93
|
4
|
+
data.tar.gz: 60a576fb8b452014d52dd12b87297d2cd7fb931d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7d4fe33ad09b690132372e67a6db864c28fff486ea1c94c1578196e9ed9c974fa8d6c44ffb08d92b854db89f9c00a751eaa5bb87b8df28e6866da821d56faf8b
|
7
|
+
data.tar.gz: b16cbd6c9076a163ea4a791338bc7c7f1742ead96f0885202ea4df907de3fff3728998729b6ca6705eaec8803af981083d6c2986685a3420421f650966990310
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
|
2
2
|
#### [Current]
|
3
|
+
* [3408a4c](../../commit/3408a4c) Bump to 0.1.1 __(Ruben Espinosa)__
|
4
|
+
* [5b05208](../../commit/5b05208) delete serach and header __(Ruben Espinosa)__
|
5
|
+
|
6
|
+
#### v0.1.0
|
7
|
+
* [56a9f6a](../../commit/56a9f6a) changelog __(Ruben Espinosa)__
|
3
8
|
* [fe4b8e8](../../commit/fe4b8e8) readme updated __(Ruben Espinosa)__
|
4
9
|
* [508405c](../../commit/508405c) changelog __(Ruben Espinosa)__
|
5
10
|
* [dd02d98](../../commit/dd02d98) cleaning html, colorized output __(Ruben Espinosa)__
|
data/lib/doc_to_pdf/version.rb
CHANGED
data/lib/tasks/doc_to_pdf.rake
CHANGED
@@ -26,7 +26,7 @@ def create(name, clean)
|
|
26
26
|
if files.empty?
|
27
27
|
puts "Documentation not found in doc/ folder, please create it with rake doc:app or rdoc".orange
|
28
28
|
else
|
29
|
-
`wkhtmltopdf -O Landscape #{files.join(" ")} #{name}.pdf`
|
29
|
+
`wkhtmltopdf -t --footer-center [page]/[topage] -O Landscape #{files.join(" ")} #{name}.pdf`
|
30
30
|
end
|
31
31
|
|
32
32
|
end
|
@@ -47,6 +47,8 @@ def clean_html(path)
|
|
47
47
|
doc.search("#classindex-section").try(:remove)
|
48
48
|
doc.search("#project-metadata").try(:remove)
|
49
49
|
doc.search("#home-metadata").try(:remove)
|
50
|
-
doc.search("#search-
|
50
|
+
doc.search("#search-section").try(:remove)
|
51
|
+
doc.search("#home-section").try(:remove)
|
52
|
+
|
51
53
|
File.open(path, "w"){|f| f.puts(doc)}
|
52
54
|
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doc_to_pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ruben Espinosa
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-09-04 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,49 +27,43 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: colorize
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: nokogiri
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
description: Turn documentation stored in doc folder in your rails app in a pdf file
|
@@ -103,34 +94,27 @@ files:
|
|
103
94
|
homepage: ''
|
104
95
|
licenses:
|
105
96
|
- MIT
|
97
|
+
metadata: {}
|
106
98
|
post_install_message:
|
107
99
|
rdoc_options: []
|
108
100
|
require_paths:
|
109
101
|
- lib
|
110
102
|
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
103
|
requirements:
|
113
|
-
- -
|
104
|
+
- - '>='
|
114
105
|
- !ruby/object:Gem::Version
|
115
106
|
version: '0'
|
116
|
-
segments:
|
117
|
-
- 0
|
118
|
-
hash: -1393820445308166564
|
119
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
-
none: false
|
121
108
|
requirements:
|
122
|
-
- -
|
109
|
+
- - '>='
|
123
110
|
- !ruby/object:Gem::Version
|
124
111
|
version: '0'
|
125
|
-
segments:
|
126
|
-
- 0
|
127
|
-
hash: -1393820445308166564
|
128
112
|
requirements:
|
129
113
|
- wkhtmltopdf
|
130
114
|
rubyforge_project:
|
131
|
-
rubygems_version:
|
115
|
+
rubygems_version: 2.0.3
|
132
116
|
signing_key:
|
133
|
-
specification_version:
|
117
|
+
specification_version: 4
|
134
118
|
summary: Turn documentation in pdf file
|
135
119
|
test_files:
|
136
120
|
- spec/rails_spec.rb
|