Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Update to support CocoaPod and travis CI with new location and version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny Wang committed Nov 17, 2015
1 parent b66523c commit 9b6b972
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SWHttpTrafficRecorder [![Build Status](https://travis-ci.org/JinlianWang/SWHttpTrafficRecorder.svg?branch=master)](https://travis-ci.org/JinlianWang/SWHttpTrafficRecorder)
# SWHttpTrafficRecorder [![Build Status](https://travis-ci.org/capitalone/SWHttpTrafficRecorder.svg?branch=master)](https://travis-ci.org/capitalone/SWHttpTrafficRecorder)

SWHttpTrafficRecorder provides an easy way to record all the HTTP(s) traffic in the device’s file system while the user is using your app at the same time. It can be used for different purposes, like testing, replaying the workflow or logging an app's network activity for debugging purposes. See [OHHTTPStubs](https://github.com/AliSoftware/OHHTTPStubs), [Nocilla](https://github.com/luisobo/Nocilla) or [Mocktail](https://github.com/puls/objc-mocktail) for examples of how the recorded files can be used. This project has been developed solely for testing purposes. We highly recommend that this project is not used in production environment. However, if you choose to use it in production environment, there are security considerations that must be taken into account.

Expand Down
2 changes: 1 addition & 1 deletion SWHttpTrafficRecorder.m
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ -(NSString *)getFileName:(NSURLRequest *)request response:(NSHTTPURLResponse *)r
fileName = @"Mocktail";
}

fileName = [NSString stringWithFormat:@"%@_%ld_%d", fileName, [SWHttpTrafficRecorder sharedRecorder].runTimeStamp, [[SWHttpTrafficRecorder sharedRecorder] increaseFileNo]];
fileName = [NSString stringWithFormat:@"%@_%lu_%d", fileName, (unsigned long)[SWHttpTrafficRecorder sharedRecorder].runTimeStamp, [[SWHttpTrafficRecorder sharedRecorder] increaseFileNo]];

fileName = [fileName stringByAppendingPathExtension:[self getFileExtension:request response:response]];

Expand Down
7 changes: 4 additions & 3 deletions SWHttpTrafficRecorder.podspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Pod::Spec.new do |s|
s.name = "SWHttpTrafficRecorder"
s.version = "0.5"
s.version = "1.0"
s.summary = "A simple tool allowing to record your HTTP traffic for later use."
s.description = <<-DESC
SWHttpTrafficRecorder provides an easy way to record all the HTTP(s) traffic while the user is using your app at the same time.
DESC
s.homepage = "http://www.capitalone.io/"
s.homepage = "https://github.com/capitalone/SWHttpTrafficRecorder"
s.license = { :type => 'Apache Licnese 2.0', :file => 'LICENSE' }
s.author = { 'Sunny Wang' => '[email protected]' }
s.source = { :git => "https://github.com/JinlianWang/SWHttpTrafficRecorder.git", :tag => 'v0.5' }
s.source = { :git => "https://github.com/capitalone/SWHttpTrafficRecorder.git", :tag => 'v1.0' }
s.platform = :ios
s.source_files = '*.{h,m}'
s.ios.deployment_target = '7.0'
s.requires_arc = true
end

0 comments on commit 9b6b972

Please sign in to comment.