cloudconvert 0.0.3 → 0.0.4
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.
- data/lib/cloudconvert/conversion.rb +4 -3
- data/lib/cloudconvert/version.rb +1 -1
- metadata +2 -2
|
@@ -10,7 +10,7 @@ module Cloudconvert
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
#convert request for file
|
|
13
|
-
def convert(inputformat, outputformat, file_path = nil, options =
|
|
13
|
+
def convert(inputformat, outputformat, file_path = nil, options = {})
|
|
14
14
|
raise "File path cant be blank" if file_path == nil
|
|
15
15
|
@convert_request_url = start_conversion(inputformat, outputformat)
|
|
16
16
|
#initiate connection with new response host
|
|
@@ -93,10 +93,11 @@ module Cloudconvert
|
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
#building params for local file
|
|
96
|
-
def build_upload_params(file_path, outputformat, options)
|
|
97
|
-
upload_params = { :format => outputformat
|
|
96
|
+
def build_upload_params(file_path, outputformat, options = {})
|
|
97
|
+
upload_params = { :format => outputformat}
|
|
98
98
|
upload_params.merge!(:callback => callback) if callback != nil
|
|
99
99
|
upload_params.merge!(:input => "download",:link => file_path )
|
|
100
|
+
upload_params.merge!(options)
|
|
100
101
|
end
|
|
101
102
|
|
|
102
103
|
def parse_response(response)
|
data/lib/cloudconvert/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudconvert
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-04-
|
|
12
|
+
date: 2014-04-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|