html2pdf 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/html2pdf/cli.rb +7 -1
- data/lib/html2pdf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 335aeb69b88513c0a02f400ee06d51f9029122a4
|
4
|
+
data.tar.gz: e220337ebb73e4f8a1f1e128c0063291fd3a43c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8ab0bd17f2a051be0cd955ed2e607c18ce5e9cf0477def12835a8ba7709fd529a43e76a3fe90364bb1356680f414bd66d115d3f2b0c1cb88e2d5171e3028769
|
7
|
+
data.tar.gz: 7554df1c05e6819296494e9c6034354763b03b50153357ff8b2c76dad0818a9aabd3f97e495c7089114d62ea604006da5f9d3f157261a8b012c9f01d86569bcf
|
data/CHANGELOG.md
CHANGED
data/lib/html2pdf/cli.rb
CHANGED
@@ -19,10 +19,16 @@ module Html2Pdf
|
|
19
19
|
puts "You are using Html2Pdf version #{Html2Pdf::VERSION}"
|
20
20
|
exit
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
|
+
# Always expand path so that the '.' or '~' will work if specified
|
24
|
+
base_dir = File.expand_path(opts[:base_dir])
|
25
|
+
input_files = CodeLister.files base_dir: base_dir,
|
23
26
|
exts: %w[html xhtml],
|
24
27
|
recursive: opts[:recursive]
|
25
28
|
elapsed = AgileUtils::FileUtil.time do
|
29
|
+
# Change the directory to the base diretory as the input_files is always
|
30
|
+
# start with '.' relative to the base_dir
|
31
|
+
FileUtils.cd(base_dir)
|
26
32
|
Html2Pdf.to_pdfs(input_files)
|
27
33
|
end
|
28
34
|
|
data/lib/html2pdf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html2pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burin Choomnuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|