hypdf 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hypdf/version.rb +1 -1
- data/lib/hypdf.rb +5 -3
- 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: 4e0d86edb55fad4576f8fbcbda9c1347c315fb85
|
4
|
+
data.tar.gz: d96d35784ce765d84c05390ff8e6fdd5848e9fed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54d8f809e7e3cdc2e911b0db6fa30f4745f400b93d93bf5ffd5a0c8698a5df76ea6521772efd7dcf6d354dfc9687eb6c89e5f7da5dcf426e40e7efaad6e9a8fa
|
7
|
+
data.tar.gz: adce98b76a2876b0430914106fcba27ee97b4f74485b3e627fd07275d440ef97f2f2d554d2d199e30dce73333b14a28b1202c477197c3411967ec7cca027daa2
|
data/lib/hypdf/version.rb
CHANGED
data/lib/hypdf.rb
CHANGED
@@ -47,9 +47,11 @@ class HyPDF
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
def pdfunite(
|
51
|
-
options.
|
52
|
-
|
50
|
+
def pdfunite(*params)
|
51
|
+
options = params.last.is_a?(Hash) ? params.delete_at(-1) : {}
|
52
|
+
params.each_with_index do |path, index|
|
53
|
+
options.merge!("file_#{index}" => File.new(path))
|
54
|
+
end
|
53
55
|
response = request('pdfunite', options).body
|
54
56
|
|
55
57
|
if options[:bucket].nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hypdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- redfield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httmultiparty
|