pdfs2pdf 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: 241ca3eae68eff4dc7ae71285d3deefa36633f01
4
- data.tar.gz: bb2887a89e62bc6856b97facadec260c0aea06dd
3
+ metadata.gz: f17c49df966f21ddacf12bc8fe50922653f241cb
4
+ data.tar.gz: 168edf5d9447a0519ec0c7064af4cf9f64f33fe7
5
5
  SHA512:
6
- metadata.gz: 3a6ff38f48946a2417f6792fd9a964e29488516ca46265a84f9fdbe52986acbd70d6c2e7fa082ccaa3217c2b54d75b0281966c4f4213675e9f8ae1647feda279
7
- data.tar.gz: 8312815aa42237a3724ba510469aca0b2ca98e79615eb6bbc047f174110f04150aa24126b5106a7fc2d3a4ca5c5cdec6067640801607fc77c6798aa9e26d80a1
6
+ metadata.gz: 516522ade406149108a1584c7b1a4070a53f67649cbf08535e1ac7f85682cb3f6c27a05b9f76f7a938bac6d4159213a1ddab86deb9ad5505a6cf35891ca8fd2f
7
+ data.tar.gz: 957ec4d4c95b3a16d99ac637eb585f7fca0c5f74f01cd4e1a96d2ac2423281e51c6b3b005f5a1ff2d94eb049edd0ff18481bd62e915b68220c4110505167480e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ### Changelogs
2
2
 
3
+ #### 0.1.6
4
+
5
+ - Make sure that the index file is the first item in the list for nicer output
6
+ - Don't include the combined in the output file on subsequent run
7
+
3
8
  #### 0.1.5
4
9
 
5
10
  - Improve the README.md
data/lib/pdfs2pdf/cli.rb CHANGED
@@ -26,6 +26,10 @@ module Pdfs2Pdf
26
26
  # Note: we remove the output file from the list of file here first if any
27
27
  output_file = "pdfs2pdf_#{File.basename(File.expand_path(base_dir))}.pdf"
28
28
  pdf_files.delete_if { |file| file == "./#{output_file}" }
29
+
30
+ # We make sure that the index.html.pdf is the first element in the list if applicable
31
+ index_file = pdf_files.delete("./index.html.pdf")
32
+ pdf_files.unshift(index_file) if index_file
29
33
  create_pdfmarks(pdf_files, base_dir)
30
34
  merge_pdfs(pdf_files, output_file)
31
35
  end
@@ -1,3 +1,3 @@
1
1
  module Pdfs2Pdf
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfs2pdf
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
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-07 00:00:00.000000000 Z
11
+ date: 2014-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -262,10 +262,10 @@ specification_version: 4
262
262
  summary: Combine multiple pdf files into a single pdf with combined table of content
263
263
  for quick navigation
264
264
  test_files:
265
- - test/fixtures/samples/demo1_xxx.rb.xhtml.pdf
266
- - test/fixtures/samples/demo2_xxx.rb.xhtml.pdf
267
- - test/fixtures/samples/sub_dir/demo3_xxx.rb.xhtml.pdf
268
- - test/fixtures/samples/sub_dir/demo4_xxx.rb.xhtml.pdf
269
265
  - test/lib/pdfs2pdf/test_pdfs2pdf.rb
270
266
  - test/test_helper.rb
267
+ - test/fixtures/samples/demo2_xxx.rb.xhtml.pdf
268
+ - test/fixtures/samples/sub_dir/demo4_xxx.rb.xhtml.pdf
269
+ - test/fixtures/samples/sub_dir/demo3_xxx.rb.xhtml.pdf
270
+ - test/fixtures/samples/demo1_xxx.rb.xhtml.pdf
271
271
  has_rdoc: