hypdf 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hypdf/version.rb +1 -1
  3. data/lib/hypdf.rb +5 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 802ce3b46d3a2d0b6c8feaa158f020eca0389bb8
4
- data.tar.gz: 76aea0b70b32dcdfdeee2224416aca12e548f0cc
3
+ metadata.gz: 4e0d86edb55fad4576f8fbcbda9c1347c315fb85
4
+ data.tar.gz: d96d35784ce765d84c05390ff8e6fdd5848e9fed
5
5
  SHA512:
6
- metadata.gz: b7f6d4b3fae155dd78c85de9b918d4dc27f0a5eee02c65e650e1bc84d0bb3e8efa734f8d04299980f9ff3fc2c960a9ed3d68744f01b925c1a178080752bb76d8
7
- data.tar.gz: f6130c49ed53754653431e60c18c40537a65dcb45b769d810229436813812e62a3277461af2874dc3c7a2af70b4cb95c92eacedc3fab07376125198c4c70af79
6
+ metadata.gz: 54d8f809e7e3cdc2e911b0db6fa30f4745f400b93d93bf5ffd5a0c8698a5df76ea6521772efd7dcf6d354dfc9687eb6c89e5f7da5dcf426e40e7efaad6e9a8fa
7
+ data.tar.gz: adce98b76a2876b0430914106fcba27ee97b4f74485b3e627fd07275d440ef97f2f2d554d2d199e30dce73333b14a28b1202c477197c3411967ec7cca027daa2
data/lib/hypdf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class HyPDF
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
data/lib/hypdf.rb CHANGED
@@ -47,9 +47,11 @@ class HyPDF
47
47
  end
48
48
  end
49
49
 
50
- def pdfunite(file_1, file_2, options = {})
51
- options.merge!(file_1: File.new(file_1))
52
- options.merge!(file_2: File.new(file_2))
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.2
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-13 00:00:00.000000000 Z
11
+ date: 2013-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty