httmultiparty 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/httmultiparty/multipartable.rb +1 -1
- data/lib/httmultiparty/version.rb +1 -1
- metadata +2 -2
@@ -11,6 +11,6 @@ module HTTMultiParty::Multipartable
|
|
11
11
|
parts << Parts::EpiloguePart.new(boundary)
|
12
12
|
self.set_content_type("multipart/form-data", { "boundary" => boundary })
|
13
13
|
self.content_length = parts.inject(0) {|sum,i| sum + i.length }
|
14
|
-
self.body_stream = CompositeReadIO.new(*parts.map
|
14
|
+
self.body_stream = CompositeReadIO.new(*parts.map { |part| part.to_io })
|
15
15
|
end
|
16
16
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: httmultiparty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Johannes Wagener
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-08-01 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|