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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae29767ee829d3841a919b2925ef0237814b6f4a
4
- data.tar.gz: 4086d4a04bcd3d759a427f121c053d2195ed925f
3
+ metadata.gz: 39a6249dabc233910c10ce5fc1b9d08a6ab27e76
4
+ data.tar.gz: 27827777b772dc0743bd9f40e8264cf032d04ffa
5
5
  SHA512:
6
- metadata.gz: 1115deee9ef690a805144405f738758d78ebecc9238baddb5a25109994127edfe8005a321df20bc79b72084f8a3f9d4483d8d1ee6dd6ef822f46fa52fdf61f01
7
- data.tar.gz: 88a1642c9e302302b4462305083806d2ad0f2777128c7da4cbd80d224738655ff46215dcc70637340fb233946b09abe70b840d88b2444721fa23d2f186f2ed16
6
+ metadata.gz: a74621476633dc10b0ee9915bdf2cbb4024d735e6adc3056d1f488e8e22727e645c14ac5a11c0a2da394b4b6dab5dabbaa0496c0f142f0f58966011218bb7264
7
+ data.tar.gz: 4dacd09613d1fc06604613348d9a66acb69dae6b1d2e9607e1f2158bfba082b470a53e0f48a9f2912adaf168db1ae6dc00199fd38cfdbff2b439ccc4a684668d
@@ -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
- [k, TRANSFORMABLE_TYPES.include?(v.class) ? HTTMultiParty.file_to_upload_io(v, detect_mime_type) : v]
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
@@ -1,3 +1,3 @@
1
1
  module HTTMultiParty
2
- VERSION = '0.3.12'
2
+ VERSION = '0.3.13'
3
3
  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.12
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-02-20 00:00:00.000000000 Z
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/multipart_post.rb
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.2
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.