httmultiparty 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/httmultiparty.rb +5 -1
- data/lib/httmultiparty/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39a6249dabc233910c10ce5fc1b9d08a6ab27e76
|
4
|
+
data.tar.gz: 27827777b772dc0743bd9f40e8264cf032d04ffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a74621476633dc10b0ee9915bdf2cbb4024d735e6adc3056d1f488e8e22727e645c14ac5a11c0a2da394b4b6dab5dabbaa0496c0f142f0f58966011218bb7264
|
7
|
+
data.tar.gz: 4dacd09613d1fc06604613348d9a66acb69dae6b1d2e9607e1f2158bfba082b470a53e0f48a9f2912adaf168db1ae6dc00199fd38cfdbff2b439ccc4a684668d
|
data/lib/httmultiparty.rb
CHANGED
@@ -27,7 +27,11 @@ module HTTMultiParty
|
|
27
27
|
detect_mime_type = options.fetch(:detect_mime_type, false)
|
28
28
|
Proc.new do |params|
|
29
29
|
HTTMultiParty.flatten_params(params).map do |(k,v)|
|
30
|
-
|
30
|
+
if TRANSFORMABLE_TYPES.include?(v.class)
|
31
|
+
[k, HTTMultiParty.file_to_upload_io(v, detect_mime_type)]
|
32
|
+
else
|
33
|
+
"#{k}=#{v}"
|
34
|
+
end
|
31
35
|
end
|
32
36
|
end
|
33
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httmultiparty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johannes Wagener
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -102,11 +102,11 @@ executables: []
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
-
- lib/httmultiparty
|
105
|
+
- lib/httmultiparty.rb
|
106
|
+
- lib/httmultiparty/version.rb
|
106
107
|
- lib/httmultiparty/multipart_put.rb
|
108
|
+
- lib/httmultiparty/multipart_post.rb
|
107
109
|
- lib/httmultiparty/multipartable.rb
|
108
|
-
- lib/httmultiparty/version.rb
|
109
|
-
- lib/httmultiparty.rb
|
110
110
|
- README.md
|
111
111
|
homepage: http://github.com/jwagener/httmultiparty
|
112
112
|
licenses:
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: 1.3.6
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.0.
|
131
|
+
rubygems_version: 2.0.14
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: HTTMultiParty is a thin wrapper around HTTParty to provide multipart uploads.
|