afmotion 0.8 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTdiNzU4ZDY0OTM0YWM1MTEwOGE0OWExYjE3ZTcyYTA0YzA0MmMxZg==
4
+ OTY1ZjcyN2NlMjAzOGU2OTRlNzk5NDEwMzAyOGI3ODg4YWM5ZWE4NA==
5
5
  data.tar.gz: !binary |-
6
- ODZlZmFlNzBlMjNmMWMzZjMyNTE1MDc1OWQ3YTUzMjhmMGI3MzA1Yg==
6
+ YWVkMzVkY2FjYzc3NDY1ODY2OTE3MzRkZGM3NGVlMjcyYTg4NzdjYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTkyYTM2ZjcxODc4OTkzYmEwZWQ4NGYyOWM1YjAwNTRlYmY5MTJmNThjY2Ey
10
- Yjk3OTFiZjBhM2I5YmIxYjFlY2EzMzc2OGYyOTkyOGRhYTc5ZDQxZTQ4OGZj
11
- NDhiNjQ5M2U1YTRjNGYyN2U0MzhiZTU0OTI3NWY1YTUzZmNmNmY=
9
+ OTMxZjJmNjUyMTFiYTUwZjBjMDFlMThmNjUyM2M0MGU1MjBmYmQ3NGYyZTMw
10
+ YjcwYTcyMTI2ZDljODhjOTI4NGM4MzE0MzNmOGQzN2UzNTM1NTM5NTI0OWYx
11
+ MDU0NTJjNWM2MGRjYzJjZDYyMmY0NGRlNmEzNTA2MTQwNzE3ZWE=
12
12
  data.tar.gz: !binary |-
13
- YjA5YTRkODQ5MGJkYjI5NjEyOWJhMmZjYzE1NTAzZWNmNTEwOTU0ZDc3Y2E0
14
- OWM5ZDUwZTgyMjE5MmQ1NmJmZTY2ZTQzMmRmMzczZDU5ZmYxYzdkOTQzYWJl
15
- ODVhNTYxMDRjZjI3NWZjZjE4ZmZjODdmMDQ5M2JlZmEyODA2Mjg=
13
+ ZjFjMDBlZWUxOTQxZWM4MTQ3ODExZDRmOGRmY2ExODYzN2Y2NzBhN2JlZmIw
14
+ MzE3ZTdiZmQxODA1ZDdhYTVhZjY4NzYyMDU4Mzg4MDcyNDNlNDE0MzZhNWZm
15
+ Njc5M2RjOGFjYjViOTU5NjE4YTVjYjhhZDRhOTlhNDZkNWFlOWE=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- afmotion (0.8)
4
+ afmotion (0.8.1)
5
5
  motion-cocoapods (~> 1.3.6)
6
6
 
7
7
  GEM
@@ -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 @multipart
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
@@ -1,5 +1,5 @@
1
1
  module AFMotion
2
- VERSION = "0.8"
2
+ VERSION = "0.8.1"
3
3
 
4
4
  HTTP_METHODS = [:get, :post, :put, :delete, :patch, :head]
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: afmotion
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clay Allsopp