afmotion 0.0.4 → 0.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.
- data/.gitignore +1 -0
- data/Gemfile.lock +2 -2
- data/README.md +21 -1
- data/Rakefile +4 -0
- data/lib/afmotion/http.rb +21 -0
- data/lib/afmotion/patch/NSURLRequest_params.rb +47 -0
- data/lib/afmotion/version.rb +1 -1
- data/spec/ns_url_request_spec.rb +41 -0
- data/vendor/Pods/Pods.bridgesupport +131 -131
- metadata +7 -4
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
afmotion (0.
|
4
|
+
afmotion (0.1)
|
5
5
|
motion-cocoapods (>= 1.2.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
json (1.7.5)
|
33
33
|
motion-cocoapods (1.2.1)
|
34
34
|
cocoapods (>= 0.14.0)
|
35
|
-
multi_json (1.3.
|
35
|
+
multi_json (1.3.7)
|
36
36
|
multipart-post (1.1.5)
|
37
37
|
octokit (1.18.0)
|
38
38
|
addressable (~> 2.2)
|
data/README.md
CHANGED
@@ -58,6 +58,18 @@ Loading images from the internet is pretty common. AFNetworking's existing metho
|
|
58
58
|
|
59
59
|
2. `require 'afmotion'` or add to your `Gemfile`
|
60
60
|
|
61
|
+
3. In your `Rakefile`, add:
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
Motion::Project::App.setup do |app|
|
65
|
+
...
|
66
|
+
|
67
|
+
app.pods do
|
68
|
+
pod 'AFNetworking'
|
69
|
+
end
|
70
|
+
end
|
71
|
+
```
|
72
|
+
|
61
73
|
## Overview
|
62
74
|
|
63
75
|
### Results
|
@@ -103,11 +115,19 @@ end
|
|
103
115
|
There are wrappers which automatically run a URL request for a given URL and HTTP method, of the form:
|
104
116
|
|
105
117
|
```ruby
|
106
|
-
AFMotion::[Operation Type].[HTTP method](url) do |result|
|
118
|
+
AFMotion::[Operation Type].[HTTP method](url, [Parameters = {}]) do |result|
|
107
119
|
...
|
108
120
|
end
|
109
121
|
```
|
110
122
|
|
123
|
+
Example:
|
124
|
+
|
125
|
+
```ruby
|
126
|
+
AFMotion::HTTP.get("http://google.com", q: "rubymotion") do |result|
|
127
|
+
# sends request to http://google.com?q=1
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
111
131
|
- `AFMotion::HTTP.get/post/put/patch/delete(url)...`
|
112
132
|
- `AFMotion::JSON.get/post/put/patch/delete(url)...`
|
113
133
|
- `AFMotion::XML.get/post/put/patch/delete(url)...`
|
data/Rakefile
CHANGED
data/lib/afmotion/http.rb
CHANGED
@@ -7,6 +7,11 @@ module AFMotion
|
|
7
7
|
if !request.is_a?(NSURLRequest)
|
8
8
|
request = NSMutableURLRequest.requestWithURL(request_or_url.to_url)
|
9
9
|
request.HTTPMethod = method.upcase
|
10
|
+
if [:get, :head].member? method.downcase.to_sym
|
11
|
+
request.HTTPShouldUsePipelining = true
|
12
|
+
end
|
13
|
+
# SEE NSURLRequest_params.rb
|
14
|
+
request.parameters = parameters.merge(__encoding__: self.parameter_encoding)
|
10
15
|
end
|
11
16
|
|
12
17
|
operation = (self.request_module.for_request(request) do |result|
|
@@ -27,6 +32,10 @@ module AFMotion
|
|
27
32
|
def request_module
|
28
33
|
AFMotion::Operation::HTTP
|
29
34
|
end
|
35
|
+
|
36
|
+
def parameter_encoding
|
37
|
+
AFFormURLParameterEncoding
|
38
|
+
end
|
30
39
|
end
|
31
40
|
|
32
41
|
module JSON
|
@@ -36,6 +45,10 @@ module AFMotion
|
|
36
45
|
def request_module
|
37
46
|
AFMotion::Operation::JSON
|
38
47
|
end
|
48
|
+
|
49
|
+
def parameter_encoding
|
50
|
+
AFJSONParameterEncoding
|
51
|
+
end
|
39
52
|
end
|
40
53
|
|
41
54
|
module XML
|
@@ -45,6 +58,10 @@ module AFMotion
|
|
45
58
|
def request_module
|
46
59
|
AFMotion::Operation::XML
|
47
60
|
end
|
61
|
+
|
62
|
+
def parameter_encoding
|
63
|
+
AFFormURLParameterEncoding
|
64
|
+
end
|
48
65
|
end
|
49
66
|
|
50
67
|
module PLIST
|
@@ -54,5 +71,9 @@ module AFMotion
|
|
54
71
|
def request_module
|
55
72
|
AFMotion::Operation::PLIST
|
56
73
|
end
|
74
|
+
|
75
|
+
def parameter_encoding
|
76
|
+
AFPropertyListParameterEncoding
|
77
|
+
end
|
57
78
|
end
|
58
79
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
class NSMutableURLRequest
|
2
|
+
alias_method :url, :URL
|
3
|
+
|
4
|
+
def url=(url)
|
5
|
+
self.setURL(url.to_url)
|
6
|
+
end
|
7
|
+
|
8
|
+
def content_type=(content_type)
|
9
|
+
self.setValue(content_type, forHTTPHeaderField: "Content-Type")
|
10
|
+
end
|
11
|
+
|
12
|
+
def parameters=(params = {})
|
13
|
+
method = self.HTTPMethod
|
14
|
+
|
15
|
+
af_encoding = params[:__encoding__] || AFFormURLParameterEncoding
|
16
|
+
string_encoding = params[:__string_encoding__] || NSUTF8StringEncoding
|
17
|
+
|
18
|
+
params.delete :__encoding__
|
19
|
+
params.delete :__string_encoding__
|
20
|
+
|
21
|
+
if ["GET", "HEAD", "DELETE", "PUT"].member? method
|
22
|
+
url_string = String.new(self.url.absoluteString)
|
23
|
+
has_query = url_string.rangeOfString("?").location == NSNotFound
|
24
|
+
format = has_query ? "?" : "&"
|
25
|
+
encoded = AFQueryStringFromParametersWithEncoding(params, string_encoding)
|
26
|
+
self.url = (url_string << format) << encoded
|
27
|
+
else
|
28
|
+
charset = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(string_encoding))
|
29
|
+
error = Pointer.new(:object)
|
30
|
+
case af_encoding
|
31
|
+
when AFFormURLParameterEncoding
|
32
|
+
self.content_type = "application/x-www-form-urlencoded; charset=%@" << charset
|
33
|
+
self.HTTPBody = AFQueryStringFromParametersWithEncoding(params, string_encoding).dataUsingEncoding(string_encoding)
|
34
|
+
when AFJSONParameterEncoding
|
35
|
+
self.content_type = "application/json; charset=%@" << charset
|
36
|
+
self.HTTPBody = NSJSONSerialization.dataWithJSONObject(params, options: 0, error: error)
|
37
|
+
when AFPropertyListParameterEncoding
|
38
|
+
self.content_type = "application/x-plist; charset=%@" << charset
|
39
|
+
self.HTTPBody = NSPropertyListSerialization.dataWithPropertyList(params, format: NSPropertyListXMLFormat_v1_0, options: 0, error: error)
|
40
|
+
end
|
41
|
+
|
42
|
+
if error[0]
|
43
|
+
p "NSURLRequest #{self.inspect}#parameters=#{params.inspect} ERROR: #{error.localizedDescription}"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/lib/afmotion/version.rb
CHANGED
@@ -0,0 +1,41 @@
|
|
1
|
+
describe "NSMutableURLRequest" do
|
2
|
+
describe "parameters=" do
|
3
|
+
before do
|
4
|
+
@base_url = "http://google.com"
|
5
|
+
end
|
6
|
+
|
7
|
+
["GET", "HEAD", "DELETE", "PUT"].each do |method|
|
8
|
+
it "should work with #{method} requests" do
|
9
|
+
@request = NSMutableURLRequest.requestWithURL(NSURL.URLWithString(@base_url))
|
10
|
+
|
11
|
+
@request.HTTPMethod = method
|
12
|
+
|
13
|
+
@request.parameters = {herp: "derp", "another" => 3}
|
14
|
+
@request.url.absoluteString.should == "http://google.com?herp=derp&another=3"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
[:default, :URL, :JSON, :XML].each do |encoding|
|
19
|
+
it "POST should work with #{encoding} encoding" do
|
20
|
+
@request = NSMutableURLRequest.requestWithURL(NSURL.URLWithString(@base_url))
|
21
|
+
@request.HTTPMethod = "POST"
|
22
|
+
|
23
|
+
parameters = {herp: "derp", "another" => 3}
|
24
|
+
case encoding
|
25
|
+
when :URL
|
26
|
+
@request.parameters = parameters.merge({__encoding__: AFFormURLParameterEncoding})
|
27
|
+
String.new(@request.HTTPBody).should == "herp=derp&another=3"
|
28
|
+
when :JSON
|
29
|
+
@request.parameters = parameters.merge({__encoding__: AFJSONParameterEncoding})
|
30
|
+
String.new(@request.HTTPBody).should == "{\"herp\":\"derp\",\"another\":3}"
|
31
|
+
when :XML
|
32
|
+
@request.parameters = parameters.merge({__encoding__: AFPropertyListParameterEncoding})
|
33
|
+
String.new(@request.HTTPBody).should == "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>another</key>\n\t<integer>3</integer>\n\t<key>herp</key>\n\t<string>derp</string>\n</dict>\n</plist>\n"
|
34
|
+
else
|
35
|
+
@request.parameters = parameters
|
36
|
+
String.new(@request.HTTPBody).should == "herp=derp&another=3"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -1,33 +1,33 @@
|
|
1
1
|
<?xml version='1.0'?>
|
2
2
|
<signatures version='1.0'>
|
3
|
-
<constant
|
4
|
-
<constant
|
5
|
-
<constant
|
6
|
-
<constant
|
7
|
-
<constant
|
8
|
-
<constant
|
9
|
-
<constant
|
3
|
+
<constant type='@' name='AFNetworkingErrorDomain' const='true' declared_type='NSString*'/>
|
4
|
+
<constant type='@' name='AFNetworkingOperationDidFinishNotification' const='true' declared_type='NSString*'/>
|
5
|
+
<constant type='@' name='AFNetworkingOperationDidStartNotification' const='true' declared_type='NSString*'/>
|
6
|
+
<constant type='@' name='AFNetworkingOperationFailingURLRequestErrorKey' const='true' declared_type='NSString*'/>
|
7
|
+
<constant type='@' name='AFNetworkingOperationFailingURLResponseErrorKey' const='true' declared_type='NSString*'/>
|
8
|
+
<constant type='d' name='kAFUploadStream3GSuggestedDelay' const='true' declared_type='NSTimeInterval'/>
|
9
|
+
<constant type='I' name='kAFUploadStream3GSuggestedPacketSize' const='true' declared_type='NSUInteger'/>
|
10
10
|
<enum value='0' name='AFFormURLParameterEncoding'/>
|
11
11
|
<enum value='1' name='AFJSONParameterEncoding'/>
|
12
12
|
<enum value='2' name='AFPropertyListParameterEncoding'/>
|
13
13
|
<function name='AFContentTypesFromHTTPHeader'>
|
14
|
-
<arg type='@'
|
14
|
+
<arg type='@' name='string' declared_type='NSString*'/>
|
15
15
|
<retval type='@' declared_type='NSSet*'/>
|
16
16
|
</function>
|
17
17
|
<function name='AFQueryStringFromParametersWithEncoding'>
|
18
|
-
<arg type='@'
|
19
|
-
<arg type='I'
|
18
|
+
<arg type='@' name='parameters' declared_type='NSDictionary*'/>
|
19
|
+
<arg type='I' name='encoding' declared_type='NSStringEncoding'/>
|
20
20
|
<retval type='@' declared_type='NSString*'/>
|
21
21
|
</function>
|
22
22
|
<class name='AFHTTPClient'>
|
23
23
|
<method selector='HTTPRequestOperationWithRequest:success:failure:'>
|
24
|
-
<arg type='@' declared_type='NSURLRequest*' index='0'
|
25
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='1'
|
24
|
+
<arg type='@' name='urlRequest' declared_type='NSURLRequest*' index='0'/>
|
25
|
+
<arg type='@?' name='success' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='1'>
|
26
26
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
27
27
|
<arg type='@' declared_type='id'/>
|
28
28
|
<retval type='v' declared_type='void'/>
|
29
29
|
</arg>
|
30
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='2'
|
30
|
+
<arg type='@?' name='failure' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='2'>
|
31
31
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
32
32
|
<arg type='@' declared_type='NSError*'/>
|
33
33
|
<retval type='v' declared_type='void'/>
|
@@ -38,30 +38,30 @@
|
|
38
38
|
<retval type='@' declared_type='NSURL*'/>
|
39
39
|
</method>
|
40
40
|
<method selector='cancelAllHTTPOperationsWithMethod:path:'>
|
41
|
-
<arg type='@' declared_type='NSString*' index='0'
|
42
|
-
<arg type='@' declared_type='NSString*' index='1'
|
41
|
+
<arg type='@' name='method' declared_type='NSString*' index='0'/>
|
42
|
+
<arg type='@' name='path' declared_type='NSString*' index='1'/>
|
43
43
|
<retval type='v' declared_type='void'/>
|
44
44
|
</method>
|
45
45
|
<method selector='clearAuthorizationHeader'>
|
46
46
|
<retval type='v' declared_type='void'/>
|
47
47
|
</method>
|
48
48
|
<method selector='clientWithBaseURL:' class_method='true'>
|
49
|
-
<arg type='@' declared_type='NSURL*' index='0'
|
49
|
+
<arg type='@' name='url' declared_type='NSURL*' index='0'/>
|
50
50
|
<retval type='@' declared_type='AFHTTPClient*'/>
|
51
51
|
</method>
|
52
52
|
<method selector='defaultValueForHeader:'>
|
53
|
-
<arg type='@' declared_type='NSString*' index='0'
|
53
|
+
<arg type='@' name='header' declared_type='NSString*' index='0'/>
|
54
54
|
<retval type='@' declared_type='NSString*'/>
|
55
55
|
</method>
|
56
56
|
<method selector='deletePath:parameters:success:failure:'>
|
57
|
-
<arg type='@' declared_type='NSString*' index='0'
|
58
|
-
<arg type='@' declared_type='NSDictionary*' index='1'
|
59
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'
|
57
|
+
<arg type='@' name='path' declared_type='NSString*' index='0'/>
|
58
|
+
<arg type='@' name='parameters' declared_type='NSDictionary*' index='1'/>
|
59
|
+
<arg type='@?' name='success' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'>
|
60
60
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
61
61
|
<arg type='@' declared_type='id'/>
|
62
62
|
<retval type='v' declared_type='void'/>
|
63
63
|
</arg>
|
64
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'
|
64
|
+
<arg type='@?' name='failure' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'>
|
65
65
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
66
66
|
<arg type='@' declared_type='NSError*'/>
|
67
67
|
<retval type='v' declared_type='void'/>
|
@@ -69,44 +69,44 @@
|
|
69
69
|
<retval type='v' declared_type='void'/>
|
70
70
|
</method>
|
71
71
|
<method selector='enqueueBatchOfHTTPRequestOperations:progressBlock:completionBlock:'>
|
72
|
-
<arg type='@' declared_type='NSArray*' index='0'
|
73
|
-
<arg type='@?' declared_type='void (^)(NSUInteger, NSUInteger)' function_pointer='true' index='1'
|
72
|
+
<arg type='@' name='operations' declared_type='NSArray*' index='0'/>
|
73
|
+
<arg type='@?' name='progressBlock' declared_type='void (^)(NSUInteger, NSUInteger)' function_pointer='true' index='1'>
|
74
74
|
<arg type='I' declared_type='NSUInteger'/>
|
75
75
|
<arg type='I' declared_type='NSUInteger'/>
|
76
76
|
<retval type='v' declared_type='void'/>
|
77
77
|
</arg>
|
78
|
-
<arg type='@?' declared_type='void (^)(NSArray *)' function_pointer='true' index='2'
|
78
|
+
<arg type='@?' name='completionBlock' declared_type='void (^)(NSArray *)' function_pointer='true' index='2'>
|
79
79
|
<arg type='@' declared_type='NSArray*'/>
|
80
80
|
<retval type='v' declared_type='void'/>
|
81
81
|
</arg>
|
82
82
|
<retval type='v' declared_type='void'/>
|
83
83
|
</method>
|
84
84
|
<method selector='enqueueBatchOfHTTPRequestOperationsWithRequests:progressBlock:completionBlock:'>
|
85
|
-
<arg type='@' declared_type='NSArray*' index='0'
|
86
|
-
<arg type='@?' declared_type='void (^)(NSUInteger, NSUInteger)' function_pointer='true' index='1'
|
85
|
+
<arg type='@' name='urlRequests' declared_type='NSArray*' index='0'/>
|
86
|
+
<arg type='@?' name='progressBlock' declared_type='void (^)(NSUInteger, NSUInteger)' function_pointer='true' index='1'>
|
87
87
|
<arg type='I' declared_type='NSUInteger'/>
|
88
88
|
<arg type='I' declared_type='NSUInteger'/>
|
89
89
|
<retval type='v' declared_type='void'/>
|
90
90
|
</arg>
|
91
|
-
<arg type='@?' declared_type='void (^)(NSArray *)' function_pointer='true' index='2'
|
91
|
+
<arg type='@?' name='completionBlock' declared_type='void (^)(NSArray *)' function_pointer='true' index='2'>
|
92
92
|
<arg type='@' declared_type='NSArray*'/>
|
93
93
|
<retval type='v' declared_type='void'/>
|
94
94
|
</arg>
|
95
95
|
<retval type='v' declared_type='void'/>
|
96
96
|
</method>
|
97
97
|
<method selector='enqueueHTTPRequestOperation:'>
|
98
|
-
<arg type='@' declared_type='AFHTTPRequestOperation*' index='0'
|
98
|
+
<arg type='@' name='operation' declared_type='AFHTTPRequestOperation*' index='0'/>
|
99
99
|
<retval type='v' declared_type='void'/>
|
100
100
|
</method>
|
101
101
|
<method selector='getPath:parameters:success:failure:'>
|
102
|
-
<arg type='@' declared_type='NSString*' index='0'
|
103
|
-
<arg type='@' declared_type='NSDictionary*' index='1'
|
104
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'
|
102
|
+
<arg type='@' name='path' declared_type='NSString*' index='0'/>
|
103
|
+
<arg type='@' name='parameters' declared_type='NSDictionary*' index='1'/>
|
104
|
+
<arg type='@?' name='success' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'>
|
105
105
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
106
106
|
<arg type='@' declared_type='id'/>
|
107
107
|
<retval type='v' declared_type='void'/>
|
108
108
|
</arg>
|
109
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'
|
109
|
+
<arg type='@?' name='failure' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'>
|
110
110
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
111
111
|
<arg type='@' declared_type='NSError*'/>
|
112
112
|
<retval type='v' declared_type='void'/>
|
@@ -114,14 +114,14 @@
|
|
114
114
|
<retval type='v' declared_type='void'/>
|
115
115
|
</method>
|
116
116
|
<method selector='initWithBaseURL:'>
|
117
|
-
<arg type='@' declared_type='NSURL*' index='0'
|
117
|
+
<arg type='@' name='url' declared_type='NSURL*' index='0'/>
|
118
118
|
<retval type='@' declared_type='id'/>
|
119
119
|
</method>
|
120
120
|
<method selector='multipartFormRequestWithMethod:path:parameters:constructingBodyWithBlock:'>
|
121
|
-
<arg type='@' declared_type='NSString*' index='0'
|
122
|
-
<arg type='@' declared_type='NSString*' index='1'
|
123
|
-
<arg type='@' declared_type='NSDictionary*' index='2'
|
124
|
-
<arg type='@?' declared_type='void (^)(id)' function_pointer='true' index='3'
|
121
|
+
<arg type='@' name='method' declared_type='NSString*' index='0'/>
|
122
|
+
<arg type='@' name='path' declared_type='NSString*' index='1'/>
|
123
|
+
<arg type='@' name='parameters' declared_type='NSDictionary*' index='2'/>
|
124
|
+
<arg type='@?' name='block' declared_type='void (^)(id)' function_pointer='true' index='3'>
|
125
125
|
<arg type='@' declared_type='id'/>
|
126
126
|
<retval type='v' declared_type='void'/>
|
127
127
|
</arg>
|
@@ -134,14 +134,14 @@
|
|
134
134
|
<retval type='i' declared_type='AFHTTPClientParameterEncoding'/>
|
135
135
|
</method>
|
136
136
|
<method selector='patchPath:parameters:success:failure:'>
|
137
|
-
<arg type='@' declared_type='NSString*' index='0'
|
138
|
-
<arg type='@' declared_type='NSDictionary*' index='1'
|
139
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'
|
137
|
+
<arg type='@' name='path' declared_type='NSString*' index='0'/>
|
138
|
+
<arg type='@' name='parameters' declared_type='NSDictionary*' index='1'/>
|
139
|
+
<arg type='@?' name='success' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'>
|
140
140
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
141
141
|
<arg type='@' declared_type='id'/>
|
142
142
|
<retval type='v' declared_type='void'/>
|
143
143
|
</arg>
|
144
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'
|
144
|
+
<arg type='@?' name='failure' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'>
|
145
145
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
146
146
|
<arg type='@' declared_type='NSError*'/>
|
147
147
|
<retval type='v' declared_type='void'/>
|
@@ -149,14 +149,14 @@
|
|
149
149
|
<retval type='v' declared_type='void'/>
|
150
150
|
</method>
|
151
151
|
<method selector='postPath:parameters:success:failure:'>
|
152
|
-
<arg type='@' declared_type='NSString*' index='0'
|
153
|
-
<arg type='@' declared_type='NSDictionary*' index='1'
|
154
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'
|
152
|
+
<arg type='@' name='path' declared_type='NSString*' index='0'/>
|
153
|
+
<arg type='@' name='parameters' declared_type='NSDictionary*' index='1'/>
|
154
|
+
<arg type='@?' name='success' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'>
|
155
155
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
156
156
|
<arg type='@' declared_type='id'/>
|
157
157
|
<retval type='v' declared_type='void'/>
|
158
158
|
</arg>
|
159
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'
|
159
|
+
<arg type='@?' name='failure' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'>
|
160
160
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
161
161
|
<arg type='@' declared_type='NSError*'/>
|
162
162
|
<retval type='v' declared_type='void'/>
|
@@ -164,14 +164,14 @@
|
|
164
164
|
<retval type='v' declared_type='void'/>
|
165
165
|
</method>
|
166
166
|
<method selector='putPath:parameters:success:failure:'>
|
167
|
-
<arg type='@' declared_type='NSString*' index='0'
|
168
|
-
<arg type='@' declared_type='NSDictionary*' index='1'
|
169
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'
|
167
|
+
<arg type='@' name='path' declared_type='NSString*' index='0'/>
|
168
|
+
<arg type='@' name='parameters' declared_type='NSDictionary*' index='1'/>
|
169
|
+
<arg type='@?' name='success' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='2'>
|
170
170
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
171
171
|
<arg type='@' declared_type='id'/>
|
172
172
|
<retval type='v' declared_type='void'/>
|
173
173
|
</arg>
|
174
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'
|
174
|
+
<arg type='@?' name='failure' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='3'>
|
175
175
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
176
176
|
<arg type='@' declared_type='NSError*'/>
|
177
177
|
<retval type='v' declared_type='void'/>
|
@@ -179,42 +179,42 @@
|
|
179
179
|
<retval type='v' declared_type='void'/>
|
180
180
|
</method>
|
181
181
|
<method selector='registerHTTPOperationClass:'>
|
182
|
-
<arg type='#' declared_type='Class' index='0'
|
182
|
+
<arg type='#' name='operationClass' declared_type='Class' index='0'/>
|
183
183
|
<retval type='B' declared_type='BOOL'/>
|
184
184
|
</method>
|
185
185
|
<method selector='requestWithMethod:path:parameters:'>
|
186
|
-
<arg type='@' declared_type='NSString*' index='0'
|
187
|
-
<arg type='@' declared_type='NSString*' index='1'
|
188
|
-
<arg type='@' declared_type='NSDictionary*' index='2'
|
186
|
+
<arg type='@' name='method' declared_type='NSString*' index='0'/>
|
187
|
+
<arg type='@' name='path' declared_type='NSString*' index='1'/>
|
188
|
+
<arg type='@' name='parameters' declared_type='NSDictionary*' index='2'/>
|
189
189
|
<retval type='@' declared_type='NSMutableURLRequest*'/>
|
190
190
|
</method>
|
191
191
|
<method selector='setAuthorizationHeaderWithToken:'>
|
192
|
-
<arg type='@' declared_type='NSString*' index='0'
|
192
|
+
<arg type='@' name='token' declared_type='NSString*' index='0'/>
|
193
193
|
<retval type='v' declared_type='void'/>
|
194
194
|
</method>
|
195
195
|
<method selector='setAuthorizationHeaderWithUsername:password:'>
|
196
|
-
<arg type='@' declared_type='NSString*' index='0'
|
197
|
-
<arg type='@' declared_type='NSString*' index='1'
|
196
|
+
<arg type='@' name='username' declared_type='NSString*' index='0'/>
|
197
|
+
<arg type='@' name='password' declared_type='NSString*' index='1'/>
|
198
198
|
<retval type='v' declared_type='void'/>
|
199
199
|
</method>
|
200
200
|
<method selector='setDefaultHeader:value:'>
|
201
|
-
<arg type='@' declared_type='NSString*' index='0'
|
202
|
-
<arg type='@' declared_type='NSString*' index='1'
|
201
|
+
<arg type='@' name='header' declared_type='NSString*' index='0'/>
|
202
|
+
<arg type='@' name='value' declared_type='NSString*' index='1'/>
|
203
203
|
<retval type='v' declared_type='void'/>
|
204
204
|
</method>
|
205
205
|
<method selector='setParameterEncoding:'>
|
206
|
-
<arg type='i' declared_type='AFHTTPClientParameterEncoding' index='0'
|
206
|
+
<arg type='i' name='parameterEncoding' declared_type='AFHTTPClientParameterEncoding' index='0'/>
|
207
207
|
<retval type='v' declared_type='void'/>
|
208
208
|
</method>
|
209
209
|
<method selector='setStringEncoding:'>
|
210
|
-
<arg type='I' declared_type='NSStringEncoding' index='0'
|
210
|
+
<arg type='I' name='stringEncoding' declared_type='NSStringEncoding' index='0'/>
|
211
211
|
<retval type='v' declared_type='void'/>
|
212
212
|
</method>
|
213
213
|
<method selector='stringEncoding'>
|
214
214
|
<retval type='I' declared_type='NSStringEncoding'/>
|
215
215
|
</method>
|
216
216
|
<method selector='unregisterHTTPOperationClass:'>
|
217
|
-
<arg type='#' declared_type='Class' index='0'
|
217
|
+
<arg type='#' name='operationClass' declared_type='Class' index='0'/>
|
218
218
|
<retval type='v' declared_type='void'/>
|
219
219
|
</method>
|
220
220
|
</class>
|
@@ -226,15 +226,15 @@
|
|
226
226
|
<retval type='@' declared_type='NSIndexSet*'/>
|
227
227
|
</method>
|
228
228
|
<method selector='addAcceptableContentTypes:' class_method='true'>
|
229
|
-
<arg type='@' declared_type='NSSet*' index='0'
|
229
|
+
<arg type='@' name='contentTypes' declared_type='NSSet*' index='0'/>
|
230
230
|
<retval type='v' declared_type='void'/>
|
231
231
|
</method>
|
232
232
|
<method selector='addAcceptableStatusCodes:' class_method='true'>
|
233
|
-
<arg type='@' declared_type='NSIndexSet*' index='0'
|
233
|
+
<arg type='@' name='statusCodes' declared_type='NSIndexSet*' index='0'/>
|
234
234
|
<retval type='v' declared_type='void'/>
|
235
235
|
</method>
|
236
236
|
<method selector='canProcessRequest:' class_method='true'>
|
237
|
-
<arg type='@' declared_type='NSURLRequest*' index='0'
|
237
|
+
<arg type='@' name='urlRequest' declared_type='NSURLRequest*' index='0'/>
|
238
238
|
<retval type='B' declared_type='BOOL'/>
|
239
239
|
</method>
|
240
240
|
<method selector='failureCallbackQueue'>
|
@@ -250,12 +250,12 @@
|
|
250
250
|
<retval type='@' declared_type='NSHTTPURLResponse*'/>
|
251
251
|
</method>
|
252
252
|
<method selector='setCompletionBlockWithSuccess:failure:'>
|
253
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='0'
|
253
|
+
<arg type='@?' name='success' declared_type='void (^)(AFHTTPRequestOperation *, id)' function_pointer='true' index='0'>
|
254
254
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
255
255
|
<arg type='@' declared_type='id'/>
|
256
256
|
<retval type='v' declared_type='void'/>
|
257
257
|
</arg>
|
258
|
-
<arg type='@?' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='1'
|
258
|
+
<arg type='@?' name='failure' declared_type='void (^)(AFHTTPRequestOperation *, NSError *)' function_pointer='true' index='1'>
|
259
259
|
<arg type='@' declared_type='AFHTTPRequestOperation*'/>
|
260
260
|
<arg type='@' declared_type='NSError*'/>
|
261
261
|
<retval type='v' declared_type='void'/>
|
@@ -263,11 +263,11 @@
|
|
263
263
|
<retval type='v' declared_type='void'/>
|
264
264
|
</method>
|
265
265
|
<method selector='setFailureCallbackQueue:'>
|
266
|
-
<arg type='@' declared_type='dispatch_queue_t' index='0'
|
266
|
+
<arg type='@' name='failureCallbackQueue' declared_type='dispatch_queue_t' index='0'/>
|
267
267
|
<retval type='v' declared_type='void'/>
|
268
268
|
</method>
|
269
269
|
<method selector='setSuccessCallbackQueue:'>
|
270
|
-
<arg type='@' declared_type='dispatch_queue_t' index='0'
|
270
|
+
<arg type='@' name='successCallbackQueue' declared_type='dispatch_queue_t' index='0'/>
|
271
271
|
<retval type='v' declared_type='void'/>
|
272
272
|
</method>
|
273
273
|
<method selector='successCallbackQueue'>
|
@@ -276,18 +276,18 @@
|
|
276
276
|
</class>
|
277
277
|
<class name='AFImageRequestOperation'>
|
278
278
|
<method selector='imageRequestOperationWithRequest:imageProcessingBlock:success:failure:' class_method='true'>
|
279
|
-
<arg type='@' declared_type='NSURLRequest*' index='0'
|
280
|
-
<arg type='@?' declared_type='UIImage *(^)(UIImage *)' function_pointer='true' index='1'
|
279
|
+
<arg type='@' name='urlRequest' declared_type='NSURLRequest*' index='0'/>
|
280
|
+
<arg type='@?' name='imageProcessingBlock' declared_type='UIImage *(^)(UIImage *)' function_pointer='true' index='1'>
|
281
281
|
<arg type='@' declared_type='UIImage*'/>
|
282
282
|
<retval type='@' declared_type='UIImage*'/>
|
283
283
|
</arg>
|
284
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, UIImage *)' function_pointer='true' index='2'
|
284
|
+
<arg type='@?' name='success' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, UIImage *)' function_pointer='true' index='2'>
|
285
285
|
<arg type='@' declared_type='NSURLRequest*'/>
|
286
286
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
287
287
|
<arg type='@' declared_type='UIImage*'/>
|
288
288
|
<retval type='v' declared_type='void'/>
|
289
289
|
</arg>
|
290
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *)' function_pointer='true' index='3'
|
290
|
+
<arg type='@?' name='failure' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *)' function_pointer='true' index='3'>
|
291
291
|
<arg type='@' declared_type='NSURLRequest*'/>
|
292
292
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
293
293
|
<arg type='@' declared_type='NSError*'/>
|
@@ -296,8 +296,8 @@
|
|
296
296
|
<retval type='@' declared_type='AFImageRequestOperation*'/>
|
297
297
|
</method>
|
298
298
|
<method selector='imageRequestOperationWithRequest:success:' class_method='true'>
|
299
|
-
<arg type='@' declared_type='NSURLRequest*' index='0'
|
300
|
-
<arg type='@?' declared_type='void (^)(UIImage *)' function_pointer='true' index='1'
|
299
|
+
<arg type='@' name='urlRequest' declared_type='NSURLRequest*' index='0'/>
|
300
|
+
<arg type='@?' name='success' declared_type='void (^)(UIImage *)' function_pointer='true' index='1'>
|
301
301
|
<arg type='@' declared_type='UIImage*'/>
|
302
302
|
<retval type='v' declared_type='void'/>
|
303
303
|
</arg>
|
@@ -310,7 +310,7 @@
|
|
310
310
|
<retval type='@' declared_type='UIImage*'/>
|
311
311
|
</method>
|
312
312
|
<method selector='setImageScale:'>
|
313
|
-
<arg type='f' declared_type='CGFloat' index='0'
|
313
|
+
<arg type='f' name='imageScale' declared_type='CGFloat' index='0'/>
|
314
314
|
<retval type='v' declared_type='void'/>
|
315
315
|
</method>
|
316
316
|
</class>
|
@@ -319,14 +319,14 @@
|
|
319
319
|
<retval type='I' declared_type='NSJSONReadingOptions'/>
|
320
320
|
</method>
|
321
321
|
<method selector='JSONRequestOperationWithRequest:success:failure:' class_method='true'>
|
322
|
-
<arg type='@' declared_type='NSURLRequest*' index='0'
|
323
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, id)' function_pointer='true' index='1'
|
322
|
+
<arg type='@' name='urlRequest' declared_type='NSURLRequest*' index='0'/>
|
323
|
+
<arg type='@?' name='success' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, id)' function_pointer='true' index='1'>
|
324
324
|
<arg type='@' declared_type='NSURLRequest*'/>
|
325
325
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
326
326
|
<arg type='@' declared_type='id'/>
|
327
327
|
<retval type='v' declared_type='void'/>
|
328
328
|
</arg>
|
329
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *, id)' function_pointer='true' index='2'
|
329
|
+
<arg type='@?' name='failure' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *, id)' function_pointer='true' index='2'>
|
330
330
|
<arg type='@' declared_type='NSURLRequest*'/>
|
331
331
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
332
332
|
<arg type='@' declared_type='NSError*'/>
|
@@ -339,7 +339,7 @@
|
|
339
339
|
<retval type='@' declared_type='id'/>
|
340
340
|
</method>
|
341
341
|
<method selector='setJSONReadingOptions:'>
|
342
|
-
<arg type='I' declared_type='NSJSONReadingOptions' index='0'
|
342
|
+
<arg type='I' name='JSONReadingOptions' declared_type='NSJSONReadingOptions' index='0'/>
|
343
343
|
<retval type='v' declared_type='void'/>
|
344
344
|
</method>
|
345
345
|
</class>
|
@@ -357,7 +357,7 @@
|
|
357
357
|
<retval type='B' declared_type='BOOL'/>
|
358
358
|
</method>
|
359
359
|
<method selector='setEnabled:'>
|
360
|
-
<arg type='B' declared_type='BOOL' index='0'
|
360
|
+
<arg type='B' name='enabled' declared_type='BOOL' index='0'/>
|
361
361
|
<retval type='v' declared_type='void'/>
|
362
362
|
</method>
|
363
363
|
<method selector='sharedManager' class_method='true'>
|
@@ -369,14 +369,14 @@
|
|
369
369
|
<retval type='I' declared_type='NSPropertyListReadOptions'/>
|
370
370
|
</method>
|
371
371
|
<method selector='propertyListRequestOperationWithRequest:success:failure:' class_method='true'>
|
372
|
-
<arg type='@' declared_type='NSURLRequest*' index='0'
|
373
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, id)' function_pointer='true' index='1'
|
372
|
+
<arg type='@' name='urlRequest' declared_type='NSURLRequest*' index='0'/>
|
373
|
+
<arg type='@?' name='success' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, id)' function_pointer='true' index='1'>
|
374
374
|
<arg type='@' declared_type='NSURLRequest*'/>
|
375
375
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
376
376
|
<arg type='@' declared_type='id'/>
|
377
377
|
<retval type='v' declared_type='void'/>
|
378
378
|
</arg>
|
379
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *, id)' function_pointer='true' index='2'
|
379
|
+
<arg type='@?' name='failure' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *, id)' function_pointer='true' index='2'>
|
380
380
|
<arg type='@' declared_type='NSURLRequest*'/>
|
381
381
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
382
382
|
<arg type='@' declared_type='NSError*'/>
|
@@ -389,7 +389,7 @@
|
|
389
389
|
<retval type='@' declared_type='id'/>
|
390
390
|
</method>
|
391
391
|
<method selector='setPropertyListReadOptions:'>
|
392
|
-
<arg type='I' declared_type='NSPropertyListReadOptions' index='0'
|
392
|
+
<arg type='I' name='propertyListReadOptions' declared_type='NSPropertyListReadOptions' index='0'/>
|
393
393
|
<retval type='v' declared_type='void'/>
|
394
394
|
</method>
|
395
395
|
</class>
|
@@ -398,7 +398,7 @@
|
|
398
398
|
<retval type='@' declared_type='NSError*'/>
|
399
399
|
</method>
|
400
400
|
<method selector='initWithRequest:'>
|
401
|
-
<arg type='@' declared_type='NSURLRequest*' index='0'
|
401
|
+
<arg type='@' name='urlRequest' declared_type='NSURLRequest*' index='0'/>
|
402
402
|
<retval type='@' declared_type='id'/>
|
403
403
|
</method>
|
404
404
|
<method selector='inputStream'>
|
@@ -432,7 +432,7 @@
|
|
432
432
|
<retval type='@' declared_type='NSSet*'/>
|
433
433
|
</method>
|
434
434
|
<method selector='setAuthenticationAgainstProtectionSpaceBlock:'>
|
435
|
-
<arg type='@?' declared_type='BOOL (^)(NSURLConnection *, NSURLProtectionSpace *)' function_pointer='true' index='0'
|
435
|
+
<arg type='@?' name='block' declared_type='BOOL (^)(NSURLConnection *, NSURLProtectionSpace *)' function_pointer='true' index='0'>
|
436
436
|
<arg type='@' declared_type='NSURLConnection*'/>
|
437
437
|
<arg type='@' declared_type='NSURLProtectionSpace*'/>
|
438
438
|
<retval type='B' declared_type='BOOL'/>
|
@@ -440,7 +440,7 @@
|
|
440
440
|
<retval type='v' declared_type='void'/>
|
441
441
|
</method>
|
442
442
|
<method selector='setAuthenticationChallengeBlock:'>
|
443
|
-
<arg type='@?' declared_type='void (^)(NSURLConnection *, NSURLAuthenticationChallenge *)' function_pointer='true' index='0'
|
443
|
+
<arg type='@?' name='block' declared_type='void (^)(NSURLConnection *, NSURLAuthenticationChallenge *)' function_pointer='true' index='0'>
|
444
444
|
<arg type='@' declared_type='NSURLConnection*'/>
|
445
445
|
<arg type='@' declared_type='NSURLAuthenticationChallenge*'/>
|
446
446
|
<retval type='v' declared_type='void'/>
|
@@ -448,7 +448,7 @@
|
|
448
448
|
<retval type='v' declared_type='void'/>
|
449
449
|
</method>
|
450
450
|
<method selector='setCacheResponseBlock:'>
|
451
|
-
<arg type='@?' declared_type='NSCachedURLResponse *(^)(NSURLConnection *, NSCachedURLResponse *)' function_pointer='true' index='0'
|
451
|
+
<arg type='@?' name='block' declared_type='NSCachedURLResponse *(^)(NSURLConnection *, NSCachedURLResponse *)' function_pointer='true' index='0'>
|
452
452
|
<arg type='@' declared_type='NSURLConnection*'/>
|
453
453
|
<arg type='@' declared_type='NSCachedURLResponse*'/>
|
454
454
|
<retval type='@' declared_type='NSCachedURLResponse*'/>
|
@@ -456,7 +456,7 @@
|
|
456
456
|
<retval type='v' declared_type='void'/>
|
457
457
|
</method>
|
458
458
|
<method selector='setDownloadProgressBlock:'>
|
459
|
-
<arg type='@?' declared_type='void (^)(NSUInteger, long long, long long)' function_pointer='true' index='0'
|
459
|
+
<arg type='@?' name='block' declared_type='void (^)(NSUInteger, long long, long long)' function_pointer='true' index='0'>
|
460
460
|
<arg type='I' declared_type='NSUInteger'/>
|
461
461
|
<arg type='q' declared_type='long long'/>
|
462
462
|
<arg type='q' declared_type='long long'/>
|
@@ -465,15 +465,15 @@
|
|
465
465
|
<retval type='v' declared_type='void'/>
|
466
466
|
</method>
|
467
467
|
<method selector='setInputStream:'>
|
468
|
-
<arg type='@' declared_type='NSInputStream*' index='0'
|
468
|
+
<arg type='@' name='inputStream' declared_type='NSInputStream*' index='0'/>
|
469
469
|
<retval type='v' declared_type='void'/>
|
470
470
|
</method>
|
471
471
|
<method selector='setOutputStream:'>
|
472
|
-
<arg type='@' declared_type='NSOutputStream*' index='0'
|
472
|
+
<arg type='@' name='outputStream' declared_type='NSOutputStream*' index='0'/>
|
473
473
|
<retval type='v' declared_type='void'/>
|
474
474
|
</method>
|
475
475
|
<method selector='setRedirectResponseBlock:'>
|
476
|
-
<arg type='@?' declared_type='NSURLRequest *(^)(NSURLConnection *, NSURLRequest *, NSURLResponse *)' function_pointer='true' index='0'
|
476
|
+
<arg type='@?' name='block' declared_type='NSURLRequest *(^)(NSURLConnection *, NSURLRequest *, NSURLResponse *)' function_pointer='true' index='0'>
|
477
477
|
<arg type='@' declared_type='NSURLConnection*'/>
|
478
478
|
<arg type='@' declared_type='NSURLRequest*'/>
|
479
479
|
<arg type='@' declared_type='NSURLResponse*'/>
|
@@ -482,17 +482,17 @@
|
|
482
482
|
<retval type='v' declared_type='void'/>
|
483
483
|
</method>
|
484
484
|
<method selector='setRunLoopModes:'>
|
485
|
-
<arg type='@' declared_type='NSSet*' index='0'
|
485
|
+
<arg type='@' name='runLoopModes' declared_type='NSSet*' index='0'/>
|
486
486
|
<retval type='v' declared_type='void'/>
|
487
487
|
</method>
|
488
488
|
<method selector='setShouldExecuteAsBackgroundTaskWithExpirationHandler:'>
|
489
|
-
<arg type='@?' declared_type='void (^)(void)' function_pointer='true' index='0'
|
489
|
+
<arg type='@?' name='handler' declared_type='void (^)(void)' function_pointer='true' index='0'>
|
490
490
|
<retval type='v' declared_type='void'/>
|
491
491
|
</arg>
|
492
492
|
<retval type='v' declared_type='void'/>
|
493
493
|
</method>
|
494
494
|
<method selector='setUploadProgressBlock:'>
|
495
|
-
<arg type='@?' declared_type='void (^)(NSUInteger, long long, long long)' function_pointer='true' index='0'
|
495
|
+
<arg type='@?' name='block' declared_type='void (^)(NSUInteger, long long, long long)' function_pointer='true' index='0'>
|
496
496
|
<arg type='I' declared_type='NSUInteger'/>
|
497
497
|
<arg type='q' declared_type='long long'/>
|
498
498
|
<arg type='q' declared_type='long long'/>
|
@@ -503,14 +503,14 @@
|
|
503
503
|
</class>
|
504
504
|
<class name='AFXMLRequestOperation'>
|
505
505
|
<method selector='XMLParserRequestOperationWithRequest:success:failure:' class_method='true'>
|
506
|
-
<arg type='@' declared_type='NSURLRequest*' index='0'
|
507
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSXMLParser *)' function_pointer='true' index='1'
|
506
|
+
<arg type='@' name='urlRequest' declared_type='NSURLRequest*' index='0'/>
|
507
|
+
<arg type='@?' name='success' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSXMLParser *)' function_pointer='true' index='1'>
|
508
508
|
<arg type='@' declared_type='NSURLRequest*'/>
|
509
509
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
510
510
|
<arg type='@' declared_type='NSXMLParser*'/>
|
511
511
|
<retval type='v' declared_type='void'/>
|
512
512
|
</arg>
|
513
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *, NSXMLParser *)' function_pointer='true' index='2'
|
513
|
+
<arg type='@?' name='failure' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *, NSXMLParser *)' function_pointer='true' index='2'>
|
514
514
|
<arg type='@' declared_type='NSURLRequest*'/>
|
515
515
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
516
516
|
<arg type='@' declared_type='NSError*'/>
|
@@ -525,31 +525,31 @@
|
|
525
525
|
</class>
|
526
526
|
<class name='NSObject'>
|
527
527
|
<method selector='appendPartWithFileData:name:fileName:mimeType:'>
|
528
|
-
<arg type='@' declared_type='NSData*' index='0'
|
529
|
-
<arg type='@' declared_type='NSString*' index='1'
|
530
|
-
<arg type='@' declared_type='NSString*' index='2'
|
531
|
-
<arg type='@' declared_type='NSString*' index='3'
|
528
|
+
<arg type='@' name='data' declared_type='NSData*' index='0'/>
|
529
|
+
<arg type='@' name='name' declared_type='NSString*' index='1'/>
|
530
|
+
<arg type='@' name='fileName' declared_type='NSString*' index='2'/>
|
531
|
+
<arg type='@' name='mimeType' declared_type='NSString*' index='3'/>
|
532
532
|
<retval type='v' declared_type='void'/>
|
533
533
|
</method>
|
534
534
|
<method selector='appendPartWithFileURL:name:error:'>
|
535
|
-
<arg type='@' declared_type='NSURL*' index='0'
|
536
|
-
<arg type='@' declared_type='NSString*' index='1'
|
537
|
-
<arg type='^@' declared_type='NSError**' index='2'
|
535
|
+
<arg type='@' name='fileURL' declared_type='NSURL*' index='0'/>
|
536
|
+
<arg type='@' name='name' declared_type='NSString*' index='1'/>
|
537
|
+
<arg type='^@' name='error' declared_type='NSError**' index='2'/>
|
538
538
|
<retval type='B' declared_type='BOOL'/>
|
539
539
|
</method>
|
540
540
|
<method selector='appendPartWithFormData:name:'>
|
541
|
-
<arg type='@' declared_type='NSData*' index='0'
|
542
|
-
<arg type='@' declared_type='NSString*' index='1'
|
541
|
+
<arg type='@' name='data' declared_type='NSData*' index='0'/>
|
542
|
+
<arg type='@' name='name' declared_type='NSString*' index='1'/>
|
543
543
|
<retval type='v' declared_type='void'/>
|
544
544
|
</method>
|
545
545
|
<method selector='appendPartWithHeaders:body:'>
|
546
|
-
<arg type='@' declared_type='NSDictionary*' index='0'
|
547
|
-
<arg type='@' declared_type='NSData*' index='1'
|
546
|
+
<arg type='@' name='headers' declared_type='NSDictionary*' index='0'/>
|
547
|
+
<arg type='@' name='body' declared_type='NSData*' index='1'/>
|
548
548
|
<retval type='v' declared_type='void'/>
|
549
549
|
</method>
|
550
550
|
<method selector='throttleBandwidthWithPacketSize:delay:'>
|
551
|
-
<arg type='I' declared_type='NSUInteger' index='0'
|
552
|
-
<arg type='d' declared_type='NSTimeInterval' index='1'
|
551
|
+
<arg type='I' name='numberOfBytes' declared_type='NSUInteger' index='0'/>
|
552
|
+
<arg type='d' name='delay' declared_type='NSTimeInterval' index='1'/>
|
553
553
|
<retval type='v' declared_type='void'/>
|
554
554
|
</method>
|
555
555
|
</class>
|
@@ -558,24 +558,24 @@
|
|
558
558
|
<retval type='v' declared_type='void'/>
|
559
559
|
</method>
|
560
560
|
<method selector='setImageWithURL:'>
|
561
|
-
<arg type='@' declared_type='NSURL*' index='0'
|
561
|
+
<arg type='@' name='url' declared_type='NSURL*' index='0'/>
|
562
562
|
<retval type='v' declared_type='void'/>
|
563
563
|
</method>
|
564
564
|
<method selector='setImageWithURL:placeholderImage:'>
|
565
|
-
<arg type='@' declared_type='NSURL*' index='0'
|
566
|
-
<arg type='@' declared_type='UIImage*' index='1'
|
565
|
+
<arg type='@' name='url' declared_type='NSURL*' index='0'/>
|
566
|
+
<arg type='@' name='placeholderImage' declared_type='UIImage*' index='1'/>
|
567
567
|
<retval type='v' declared_type='void'/>
|
568
568
|
</method>
|
569
569
|
<method selector='setImageWithURLRequest:placeholderImage:success:failure:'>
|
570
|
-
<arg type='@' declared_type='NSURLRequest*' index='0'
|
571
|
-
<arg type='@' declared_type='UIImage*' index='1'
|
572
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, UIImage *)' function_pointer='true' index='2'
|
570
|
+
<arg type='@' name='urlRequest' declared_type='NSURLRequest*' index='0'/>
|
571
|
+
<arg type='@' name='placeholderImage' declared_type='UIImage*' index='1'/>
|
572
|
+
<arg type='@?' name='success' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, UIImage *)' function_pointer='true' index='2'>
|
573
573
|
<arg type='@' declared_type='NSURLRequest*'/>
|
574
574
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
575
575
|
<arg type='@' declared_type='UIImage*'/>
|
576
576
|
<retval type='v' declared_type='void'/>
|
577
577
|
</arg>
|
578
|
-
<arg type='@?' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *)' function_pointer='true' index='3'
|
578
|
+
<arg type='@?' name='failure' declared_type='void (^)(NSURLRequest *, NSHTTPURLResponse *, NSError *)' function_pointer='true' index='3'>
|
579
579
|
<arg type='@' declared_type='NSURLRequest*'/>
|
580
580
|
<arg type='@' declared_type='NSHTTPURLResponse*'/>
|
581
581
|
<arg type='@' declared_type='NSError*'/>
|
@@ -586,31 +586,31 @@
|
|
586
586
|
</class>
|
587
587
|
<informal_protocol name='AFMultipartFormData'>
|
588
588
|
<method type='v24@0:4@8@12@16@20' selector='appendPartWithFileData:name:fileName:mimeType:'>
|
589
|
-
<arg type='@' declared_type='NSData*' index='0'
|
590
|
-
<arg type='@' declared_type='NSString*' index='1'
|
591
|
-
<arg type='@' declared_type='NSString*' index='2'
|
592
|
-
<arg type='@' declared_type='NSString*' index='3'
|
589
|
+
<arg type='@' name='data' declared_type='NSData*' index='0'/>
|
590
|
+
<arg type='@' name='name' declared_type='NSString*' index='1'/>
|
591
|
+
<arg type='@' name='fileName' declared_type='NSString*' index='2'/>
|
592
|
+
<arg type='@' name='mimeType' declared_type='NSString*' index='3'/>
|
593
593
|
<retval type='v' declared_type='void'/>
|
594
594
|
</method>
|
595
595
|
<method type='B20@0:4@8@12^@16' selector='appendPartWithFileURL:name:error:'>
|
596
|
-
<arg type='@' declared_type='NSURL*' index='0'
|
597
|
-
<arg type='@' declared_type='NSString*' index='1'
|
598
|
-
<arg type='^@' declared_type='NSError**' index='2'
|
596
|
+
<arg type='@' name='fileURL' declared_type='NSURL*' index='0'/>
|
597
|
+
<arg type='@' name='name' declared_type='NSString*' index='1'/>
|
598
|
+
<arg type='^@' name='error' declared_type='NSError**' index='2'/>
|
599
599
|
<retval type='B' declared_type='BOOL'/>
|
600
600
|
</method>
|
601
601
|
<method type='v16@0:4@8@12' selector='appendPartWithFormData:name:'>
|
602
|
-
<arg type='@' declared_type='NSData*' index='0'
|
603
|
-
<arg type='@' declared_type='NSString*' index='1'
|
602
|
+
<arg type='@' name='data' declared_type='NSData*' index='0'/>
|
603
|
+
<arg type='@' name='name' declared_type='NSString*' index='1'/>
|
604
604
|
<retval type='v' declared_type='void'/>
|
605
605
|
</method>
|
606
606
|
<method type='v16@0:4@8@12' selector='appendPartWithHeaders:body:'>
|
607
|
-
<arg type='@' declared_type='NSDictionary*' index='0'
|
608
|
-
<arg type='@' declared_type='NSData*' index='1'
|
607
|
+
<arg type='@' name='headers' declared_type='NSDictionary*' index='0'/>
|
608
|
+
<arg type='@' name='body' declared_type='NSData*' index='1'/>
|
609
609
|
<retval type='v' declared_type='void'/>
|
610
610
|
</method>
|
611
611
|
<method type='v20@0:4I8d12' selector='throttleBandwidthWithPacketSize:delay:'>
|
612
|
-
<arg type='I' declared_type='NSUInteger' index='0'
|
613
|
-
<arg type='d' declared_type='NSTimeInterval' index='1'
|
612
|
+
<arg type='I' name='numberOfBytes' declared_type='NSUInteger' index='0'/>
|
613
|
+
<arg type='d' name='delay' declared_type='NSTimeInterval' index='1'/>
|
614
614
|
<retval type='v' declared_type='void'/>
|
615
615
|
</method>
|
616
616
|
</informal_protocol>
|
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.
|
4
|
+
version: '0.1'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: motion-cocoapods
|
@@ -64,11 +64,13 @@ files:
|
|
64
64
|
- lib/afmotion/image.rb
|
65
65
|
- lib/afmotion/operation.rb
|
66
66
|
- lib/afmotion/patch/NSString_NSUrl.rb
|
67
|
+
- lib/afmotion/patch/NSURLRequest_params.rb
|
67
68
|
- lib/afmotion/version.rb
|
68
69
|
- pkg/afmotion-0.0.2.gem
|
69
70
|
- pkg/afmotion-0.0.3.gem
|
70
71
|
- spec/http_client_spec.rb
|
71
72
|
- spec/http_spec.rb
|
73
|
+
- spec/ns_url_request_spec.rb
|
72
74
|
- spec/operation_spec.rb
|
73
75
|
- vendor/Podfile.lock
|
74
76
|
- vendor/Pods/AFNetworking/AFNetworking.podspec
|
@@ -134,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
136
|
version: '0'
|
135
137
|
segments:
|
136
138
|
- 0
|
137
|
-
hash:
|
139
|
+
hash: 3941346759028080584
|
138
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
141
|
none: false
|
140
142
|
requirements:
|
@@ -143,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
145
|
version: '0'
|
144
146
|
segments:
|
145
147
|
- 0
|
146
|
-
hash:
|
148
|
+
hash: 3941346759028080584
|
147
149
|
requirements: []
|
148
150
|
rubyforge_project:
|
149
151
|
rubygems_version: 1.8.23
|
@@ -153,4 +155,5 @@ summary: A RubyMotion Wrapper for AFNetworking
|
|
153
155
|
test_files:
|
154
156
|
- spec/http_client_spec.rb
|
155
157
|
- spec/http_spec.rb
|
158
|
+
- spec/ns_url_request_spec.rb
|
156
159
|
- spec/operation_spec.rb
|