httmultiparty 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/httmultiparty.rb +2 -6
- data/lib/httmultiparty/version.rb +1 -1
- metadata +32 -3
data/lib/httmultiparty.rb
CHANGED
@@ -8,13 +8,9 @@ module HTTMultiParty
|
|
8
8
|
TRANSFORMABLE_TYPES = [File, Tempfile]
|
9
9
|
|
10
10
|
QUERY_STRING_NORMALIZER = Proc.new do |params|
|
11
|
-
|
12
|
-
|
13
|
-
multipart ||= TRANSFORMABLE_TYPES.include?(v.class)
|
14
|
-
[k, multipart ? HTTMultiParty.file_to_upload_io(v) : v]
|
11
|
+
HTTMultiParty.flatten_params(params).map do |(k,v)|
|
12
|
+
[k, TRANSFORMABLE_TYPES.include?(v.class) ? HTTMultiParty.file_to_upload_io(v) : v]
|
15
13
|
end
|
16
|
-
|
17
|
-
multipart ? result : HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER.call(params)
|
18
14
|
end
|
19
15
|
|
20
16
|
def self.included(base)
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httmultiparty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 7
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 10
|
10
|
+
version: 0.3.10
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Johannes Wagener
|
@@ -10,7 +15,8 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2013-04-
|
18
|
+
date: 2013-04-10 00:00:00 +02:00
|
19
|
+
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: httparty
|
@@ -20,6 +26,11 @@ dependencies:
|
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 5
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 7
|
33
|
+
- 3
|
23
34
|
version: 0.7.3
|
24
35
|
type: :runtime
|
25
36
|
version_requirements: *id001
|
@@ -31,6 +42,9 @@ dependencies:
|
|
31
42
|
requirements:
|
32
43
|
- - ">="
|
33
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
34
48
|
version: "0"
|
35
49
|
type: :runtime
|
36
50
|
version_requirements: *id002
|
@@ -42,6 +56,9 @@ dependencies:
|
|
42
56
|
requirements:
|
43
57
|
- - ">="
|
44
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
45
62
|
version: "0"
|
46
63
|
type: :development
|
47
64
|
version_requirements: *id003
|
@@ -53,6 +70,9 @@ dependencies:
|
|
53
70
|
requirements:
|
54
71
|
- - ">="
|
55
72
|
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
56
76
|
version: "0"
|
57
77
|
type: :development
|
58
78
|
version_requirements: *id004
|
@@ -72,6 +92,7 @@ files:
|
|
72
92
|
- lib/httmultiparty/version.rb
|
73
93
|
- lib/httmultiparty.rb
|
74
94
|
- README.md
|
95
|
+
has_rdoc: true
|
75
96
|
homepage: http://github.com/jwagener/httmultiparty
|
76
97
|
licenses: []
|
77
98
|
|
@@ -85,17 +106,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
106
|
requirements:
|
86
107
|
- - ">="
|
87
108
|
- !ruby/object:Gem::Version
|
109
|
+
hash: 3
|
110
|
+
segments:
|
111
|
+
- 0
|
88
112
|
version: "0"
|
89
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
114
|
none: false
|
91
115
|
requirements:
|
92
116
|
- - ">="
|
93
117
|
- !ruby/object:Gem::Version
|
118
|
+
hash: 23
|
119
|
+
segments:
|
120
|
+
- 1
|
121
|
+
- 3
|
122
|
+
- 6
|
94
123
|
version: 1.3.6
|
95
124
|
requirements: []
|
96
125
|
|
97
126
|
rubyforge_project:
|
98
|
-
rubygems_version: 1.
|
127
|
+
rubygems_version: 1.6.2
|
99
128
|
signing_key:
|
100
129
|
specification_version: 3
|
101
130
|
summary: HTTMultiParty is a thin wrapper around HTTParty to provide multipart uploads.
|