pdfs2pdf 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/pdfs2pdf/cli.rb +4 -0
- data/lib/pdfs2pdf/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f17c49df966f21ddacf12bc8fe50922653f241cb
|
4
|
+
data.tar.gz: 168edf5d9447a0519ec0c7064af4cf9f64f33fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 516522ade406149108a1584c7b1a4070a53f67649cbf08535e1ac7f85682cb3f6c27a05b9f76f7a938bac6d4159213a1ddab86deb9ad5505a6cf35891ca8fd2f
|
7
|
+
data.tar.gz: 957ec4d4c95b3a16d99ac637eb585f7fca0c5f74f01cd4e1a96d2ac2423281e51c6b3b005f5a1ff2d94eb049edd0ff18481bd62e915b68220c4110505167480e
|
data/CHANGELOG.md
CHANGED
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
|
data/lib/pdfs2pdf/version.rb
CHANGED
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.
|
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-
|
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:
|