transloadit 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/transloadit/assembly.rb +1 -1
- data/lib/transloadit/request.rb +2 -0
- data/lib/transloadit/version.rb +1 -1
- metadata +1 -1
data/lib/transloadit/assembly.rb
CHANGED
@@ -53,7 +53,7 @@ class Transloadit::Assembly
|
|
53
53
|
params = _extract_options!(*ios)
|
54
54
|
payload = { :params => self.to_hash.update(params) }
|
55
55
|
|
56
|
-
ios.each_with_index {|f, i| payload.update "file_#{i}" => f }
|
56
|
+
ios.each_with_index {|f, i| payload.update :"file_#{i}" => f }
|
57
57
|
|
58
58
|
request = Transloadit::Request.new '/assemblies',
|
59
59
|
self.transloadit.secret
|
data/lib/transloadit/request.rb
CHANGED
@@ -85,6 +85,7 @@ class Transloadit::Request
|
|
85
85
|
payload.update :params => payload[:params].to_json
|
86
86
|
payload.update :signature => self.signature(payload[:params])
|
87
87
|
payload.delete :signature if payload[:signature].nil?
|
88
|
+
payload
|
88
89
|
end
|
89
90
|
|
90
91
|
def to_query(params = nil)
|
@@ -94,6 +95,7 @@ class Transloadit::Request
|
|
94
95
|
escape = Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")
|
95
96
|
params = URI.escape(params.to_json, escape)
|
96
97
|
|
98
|
+
# TODO: fix this to not depend on to_hash
|
97
99
|
'?' + self.to_hash.
|
98
100
|
update(:params => params).
|
99
101
|
map {|k,v| "#{k}=#{v}" }.
|
data/lib/transloadit/version.rb
CHANGED