html2pdf 0.1.5 → 0.1.6

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: 522905634a26ce2a180d99732a475a059f65d467
4
- data.tar.gz: 5f360241a7dfdea808e8b54d7bb019e1bb648ce9
3
+ metadata.gz: 4890d94669f7ee299c9c75a8596d8c796b1e79db
4
+ data.tar.gz: 5b36b98c6a042f47031688c535d952d01b5092ad
5
5
  SHA512:
6
- metadata.gz: 0971a4bda8d572df5cf6dc6242a53beeab584e3f025ea307290114d908ccfeda9dfeb5a029f10239d271ca8608cc1618409b2bdc55528059e976c9c7c932bdec
7
- data.tar.gz: 7b78f1851660d073aa7672a0871795b2fba53286e9002be1b69d503be156fc02968d6260429d6ae47299da525a34472e7b92456f0029e605cdccb7a5ec068753
6
+ metadata.gz: a5bfa0b847188cd3bfe22821cb5d7e1e16fb958694961a00bc2e31c4687c44ae2c7c3706311d7dc4e02c9350aa89a5b91c231a031ba87f091ad23bb95b404f50
7
+ data.tar.gz: 58157010f9e34b141244d6b31fd4406719beefccaebab78e33a21476a4160b6c02980945407bcdbfe936b38366c574df2780d316b18b0f99d7926e2d1cf20650
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Changelogs for html2pdf
2
2
 
3
+ #### 0.1.6
4
+
5
+ - Make use of the starting directory in the output filename
6
+
3
7
  #### 0.1.5
4
8
 
5
9
  - Minor code cleanup
data/README.md CHANGED
@@ -67,7 +67,7 @@ test/fixtures/samples/
67
67
  ```
68
68
  After the above command is executed:
69
69
 
70
- You should get the output `html2pdf-output.tar.gz`
70
+ You should get the output `html2pdf_samples.tar.gz`
71
71
  which contain the pdf version of the input files above.
72
72
  e.g.
73
73
 
data/lib/html2pdf/cli.rb CHANGED
@@ -31,13 +31,12 @@ module Html2Pdf
31
31
  FileUtils.cd(base_dir)
32
32
  Html2Pdf.to_pdfs(input_files)
33
33
  end
34
-
35
34
  generated_files = add_suffix(input_files, "pdf")
36
- AgileUtils::FileUtil.tar_gzip_files(generated_files, "html2pdf-output.tar.gz")
35
+ output_file = "html2pdf_#{File.basename(File.expand_path(base_dir))}.tar.gz"
36
+ AgileUtils::FileUtil.tar_gzip_files(generated_files, output_file)
37
37
  AgileUtils::FileUtil.delete(generated_files)
38
-
39
38
  puts "Convert files to pdfs took #{elapsed} ms"
40
- puts "Your final output is #{File.absolute_path("html2pdf-output.tar.gz")}"
39
+ puts "Your final output is '#{File.absolute_path(output_file)}'"
41
40
  end
42
41
 
43
42
  desc "usage", "Display usage information"
@@ -1,3 +1,3 @@
1
1
  module Html2Pdf
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan