afmotion 0.8 → 0.8.1
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.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/lib/afmotion/http_client.rb +5 -1
- data/lib/afmotion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTY1ZjcyN2NlMjAzOGU2OTRlNzk5NDEwMzAyOGI3ODg4YWM5ZWE4NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWVkMzVkY2FjYzc3NDY1ODY2OTE3MzRkZGM3NGVlMjcyYTg4NzdjYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTMxZjJmNjUyMTFiYTUwZjBjMDFlMThmNjUyM2M0MGU1MjBmYmQ3NGYyZTMw
|
10
|
+
YjcwYTcyMTI2ZDljODhjOTI4NGM4MzE0MzNmOGQzN2UzNTM1NTM5NTI0OWYx
|
11
|
+
MDU0NTJjNWM2MGRjYzJjZDYyMmY0NGRlNmEzNTA2MTQwNzE3ZWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjFjMDBlZWUxOTQxZWM4MTQ3ODExZDRmOGRmY2ExODYzN2Y2NzBhN2JlZmIw
|
14
|
+
MzE3ZTdiZmQxODA1ZDdhYTVhZjY4NzYyMDU4Mzg4MDcyNDNlNDE0MzZhNWZm
|
15
|
+
Njc5M2RjOGFjYjViOTU5NjE4YTVjYjhhZDRhOTlhNDZkNWFlOWE=
|
data/Gemfile.lock
CHANGED
data/lib/afmotion/http_client.rb
CHANGED
@@ -80,7 +80,7 @@ class AFHTTPClient
|
|
80
80
|
AFMotion::HTTP_METHODS.each do |method|
|
81
81
|
# EX client.get('my/resource.json')
|
82
82
|
define_method "#{method}", -> (path, parameters = {}, &callback) do
|
83
|
-
if
|
83
|
+
if multipart?
|
84
84
|
@operation = create_multipart_operation(method, path, parameters, &callback)
|
85
85
|
self.enqueueHTTPRequestOperation(@operation)
|
86
86
|
@multipart = nil
|
@@ -154,6 +154,10 @@ class AFHTTPClient
|
|
154
154
|
self
|
155
155
|
end
|
156
156
|
|
157
|
+
def multipart?
|
158
|
+
!!@multipart
|
159
|
+
end
|
160
|
+
|
157
161
|
# options can be
|
158
162
|
# - {username: ___, password: ____}
|
159
163
|
# or
|
data/lib/afmotion/version.rb
CHANGED