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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 566a33b1b7b5a9b759104ee816903b3d60f697c6
4
- data.tar.gz: 0d04fa9767c56e13da9709b74bed17824a8ad7be
3
+ metadata.gz: 335aeb69b88513c0a02f400ee06d51f9029122a4
4
+ data.tar.gz: e220337ebb73e4f8a1f1e128c0063291fd3a43c0
5
5
  SHA512:
6
- metadata.gz: 617ccc90c63bd820ad094c6d321314110c37d511094476dc43ab03aa2843469ce3bfa64a5fa8683351f2bca5d125b6f93c7af1b695dcda818e72bcd12aa26ded
7
- data.tar.gz: 09854b529d213d36cd26e6bfa759dac9302c9474fd72993e8cfed466d74f443f22a0470662a00c340673a744497700297c6475d98f2a0edf8330d7875e639358
6
+ metadata.gz: a8ab0bd17f2a051be0cd955ed2e607c18ce5e9cf0477def12835a8ba7709fd529a43e76a3fe90364bb1356680f414bd66d115d3f2b0c1cb88e2d5171e3028769
7
+ data.tar.gz: 7554df1c05e6819296494e9c6034354763b03b50153357ff8b2c76dad0818a9aabd3f97e495c7089114d62ea604006da5f9d3f157261a8b012c9f01d86569bcf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Html2Pdf - Changelogs
2
2
 
3
+ #### 0.1.4
4
+
5
+ - Make the `--base-dir` works properly with the relative directory that is not '.'
6
+
3
7
  #### 0.1.3
4
8
 
5
9
  - Respect the `--recursive` options
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
- input_files = CodeLister.files base_dir: opts[:base_dir],
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
 
@@ -1,3 +1,3 @@
1
1
  module Html2Pdf
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-18 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor