Skip to content

Commit

Permalink
Fixed an issue where both success and failure callback were called on…
Browse files Browse the repository at this point in the history
… new activity upload failure
  • Loading branch information
sebastienwindal committed Jul 17, 2014
1 parent aa409a2 commit c81e996
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Classes/FRDStravaClient+Upload.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ -(void) uploadActivity:(NSURL *)fileURL
code:1
userInfo:@{NSLocalizedDescriptionKey: status.error}];
failure(error);
} else {
success(status);
}
}
success(status);
}
failure:^(AFHTTPRequestOperation *operation, NSError *error) {
failure(error);
Expand Down
4 changes: 2 additions & 2 deletions FRDStravaClient.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |s|


s.name = "FRDStravaClient"
s.version = "1.0.1"
s.version = "1.0.2"
s.summary = "A iOS Strava API client."
s.description = <<-DESC
A iOS client for the Strava API written in obj-C,
Expand All @@ -21,7 +21,7 @@ Pod::Spec.new do |s|
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = "Sebastien Windal"
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/sebastienwindal/FRDStravaClient.git", :tag => "1.0.1" }
s.source = { :git => "https://github.com/sebastienwindal/FRDStravaClient.git", :tag => "1.0.2" }
s.source_files = "Classes", "Classes/**/*.{h,m}"
s.requires_arc = true
s.dependency "AFNetworking", "~> 2.0"
Expand Down
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ and then implement the OAUTH workflow described below.
Using cocoapods:
`pod "FRDStravaClient", "~> 1.0.1"`
`pod "FRDStravaClient", "~> 1.0.2"`
And `#import FRDStravaClientImports.h` in your source files.
Expand All @@ -64,7 +64,7 @@ You need all the stuff in the `Classes/` folder, `AFNetworking` version x.x and
The library header files have appledoc comments with appropriate links to the API section, you can check them in the
code or in the
[FRDStravaClient Cocoadocs page](http://cocoadocs.org/docsets/FRDStravaClient/1.0.1/).
[FRDStravaClient Cocoadocs page](http://cocoadocs.org/docsets/FRDStravaClient/1.0.2/).
### OAUTH Flow
Expand Down

0 comments on commit c81e996

Please sign in to comment.