afmotion 0.9.0 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/AFMotion.gemspec +2 -1
- data/Gemfile.lock +22 -20
- data/README.md +72 -63
- data/Rakefile +1 -5
- data/lib/afmotion/client_shared.rb +90 -0
- data/lib/afmotion/http.rb +31 -71
- data/lib/afmotion/http_client.rb +96 -169
- data/lib/afmotion/http_result.rb +12 -3
- data/lib/afmotion/operation.rb +55 -69
- data/lib/afmotion/{image.rb → patch/UIImageView_url.rb} +0 -0
- data/lib/afmotion/serializer.rb +41 -0
- data/lib/afmotion/session_client.rb +128 -0
- data/lib/afmotion/version.rb +1 -1
- data/lib/afmotion.rb +7 -1
- data/spec/http_client_spec.rb +41 -41
- data/spec/http_spec.rb +0 -11
- data/spec/session_client_spec.rb +217 -0
- data/vendor/Podfile.lock +23 -4
- metadata +29 -15
- data/lib/afmotion/patch/NSURLRequest_params.rb +0 -49
- data/spec/ns_url_request_spec.rb +0 -41
- data/spec/operation_spec.rb +0 -41
data/spec/operation_spec.rb
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
describe "AFMotion::Operation" do
|
2
|
-
before do
|
3
|
-
@request = NSURLRequest.requestWithURL(NSURL.URLWithString("http://google.com"))
|
4
|
-
end
|
5
|
-
|
6
|
-
describe "::HTTP" do
|
7
|
-
describe ".for_request" do
|
8
|
-
it "should be a AFHTTPRequestOperation" do
|
9
|
-
operation = AFMotion::Operation::HTTP.for_request(@request)
|
10
|
-
operation.is_a?(AFHTTPRequestOperation).should == true
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
describe "::JSON" do
|
16
|
-
describe ".for_request" do
|
17
|
-
it "should be a AFJSONRequestOperation" do
|
18
|
-
operation = AFMotion::Operation::JSON.for_request(@request)
|
19
|
-
operation.is_a?(AFJSONRequestOperation).should == true
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
describe "::XML" do
|
25
|
-
describe ".for_request" do
|
26
|
-
it "should be a AFXMLRequestOperation" do
|
27
|
-
operation = AFMotion::Operation::XML.for_request(@request)
|
28
|
-
operation.is_a?(AFXMLRequestOperation).should == true
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
describe "::PLIST" do
|
34
|
-
describe ".for_request" do
|
35
|
-
it "should be a AFPropertyListRequestOperation" do
|
36
|
-
operation = AFMotion::Operation::PLIST.for_request(@request)
|
37
|
-
operation.is_a?(AFPropertyListRequestOperation).should == true
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|