transloadit 0.1.1 → 0.1.2

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.
@@ -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
@@ -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}" }.
@@ -1,4 +1,4 @@
1
1
  class Transloadit
2
2
  # The current version of Transloadit.
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: transloadit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Stephen