Skip to content

Commit 7b6b3f3

Browse files
committed
Update Example Projects.
1 parent 6c95578 commit 7b6b3f3

27 files changed

Lines changed: 258 additions & 258 deletions

‎Examples/ObjC/MainViewController.m‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "MainViewController.h"
1010
#import <OHHTTPStubs/HTTPStubs.h>
11-
#import <OHHTTPStubs/OHPathHelpers.h>
11+
#import <OHHTTPStubs/HTTPStubsPathHelpers.h>
1212

1313

1414
@interface MainViewController ()
@@ -31,7 +31,7 @@ - (void)viewDidLoad
3131

3232
[self installTextStub:self.installTextStubSwitch];
3333
[self installImageStub:self.installImageStubSwitch];
34-
[HTTPStubs onStubActivation:^(NSURLRequest * _Nonnull request, id<OHHTTPStubsDescriptor> _Nonnull stub, OHHTTPStubsResponse * _Nonnull responseStub) {
34+
[HTTPStubs onStubActivation:^(NSURLRequest * _Nonnull request, id<HTTPStubsDescriptor> _Nonnull stub, HTTPStubsResponse * _Nonnull responseStub) {
3535
NSLog(@"[OHHTTPStubs] Request to %@ has been stubbed with %@", request.URL, stub.name);
3636
}];
3737
}
@@ -88,16 +88,16 @@ - (IBAction)downloadText:(UIButton*)sender
8888

8989
- (IBAction)installTextStub:(UISwitch *)sender
9090
{
91-
static id<OHHTTPStubsDescriptor> textStub = nil; // Note: no need to retain this value, it is retained by the OHHTTPStubs itself already
91+
static id<HTTPStubsDescriptor> textStub = nil; // Note: no need to retain this value, it is retained by the OHHTTPStubs itself already
9292
if (sender.on)
9393
{
9494
// Install
9595
textStub = [HTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) {
9696
// This stub will only configure stub requests for "*.txt" files
9797
return [request.URL.pathExtension isEqualToString:@"txt"];
98-
} withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) {
98+
} withStubResponse:^HTTPStubsResponse *(NSURLRequest *request) {
9999
// Stub txt files with this
100-
return [[OHHTTPStubsResponse responseWithFileAtPath:OHPathForFile(@"stub.txt", self.class)
100+
return [[HTTPStubsResponse responseWithFileAtPath:OHPathForFile(@"stub.txt", self.class)
101101
statusCode:200
102102
headers:@{@"Content-Type":@"text/plain"}]
103103
requestTime:[self shouldUseDelay] ? 2.f: 0.f
@@ -137,16 +137,16 @@ - (IBAction)downloadImage:(UIButton*)sender
137137

138138
- (IBAction)installImageStub:(UISwitch *)sender
139139
{
140-
static id<OHHTTPStubsDescriptor> imageStub = nil; // Note: no need to retain this value, it is retained by the OHHTTPStubs itself already :)
140+
static id<HTTPStubsDescriptor> imageStub = nil; // Note: no need to retain this value, it is retained by the OHHTTPStubs itself already :)
141141
if (sender.on)
142142
{
143143
// Install
144144
imageStub = [HTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) {
145145
// This stub will only configure stub requests for "*.png" files
146146
return [request.URL.pathExtension isEqualToString:@"png"];
147-
} withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) {
147+
} withStubResponse:^HTTPStubsResponse *(NSURLRequest *request) {
148148
// Stub jpg files with this
149-
return [[OHHTTPStubsResponse responseWithFileAtPath:OHPathForFile(@"stub.jpg", self.class)
149+
return [[HTTPStubsResponse responseWithFileAtPath:OHPathForFile(@"stub.jpg", self.class)
150150
statusCode:200
151151
headers:@{@"Content-Type":@"image/jpeg"}]
152152
requestTime:[self shouldUseDelay] ? 2.f: 0.f

‎Examples/ObjC/Podfile.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ EXTERNAL SOURCES:
2121
:path: "../.."
2222

2323
SPEC CHECKSUMS:
24-
OHHTTPStubs: d3e16dbeba2278a9ee4221348f8d5a1ed2eb34b4
24+
OHHTTPStubs: 7768732fc1bd4dda5844633292ac3ac2bf5382f7
2525

2626
PODFILE CHECKSUM: 9a67077a86911aa4a252748903da3d5ea5d5d922
2727

‎Examples/ObjC/Pods/Headers/Private/OHHTTPStubs/HTTPStubsMethodSwizzling.h‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Examples/ObjC/Pods/Headers/Private/OHHTTPStubs/HTTPStubsPathHelpers.h‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Examples/ObjC/Pods/Headers/Private/OHHTTPStubs/HTTPStubsResponse+JSON.h‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Examples/ObjC/Pods/Headers/Private/OHHTTPStubs/HTTPStubsResponse.h‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Examples/ObjC/Pods/Headers/Private/OHHTTPStubs/OHHTTPStubsMethodSwizzling.h‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎Examples/ObjC/Pods/Headers/Private/OHHTTPStubs/OHHTTPStubsResponse+JSON.h‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎Examples/ObjC/Pods/Headers/Private/OHHTTPStubs/OHHTTPStubsResponse.h‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎Examples/ObjC/Pods/Headers/Private/OHHTTPStubs/OHPathHelpers.h‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)