Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit e7bbb98

Browse files
authored
Merge pull request #47 from wordpress-mobile/feature/revision-mapping
History / Revision: new revisions parameter mapping
2 parents 75261da + 357bad7 commit e7bbb98

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ PODS:
2727
- OHHTTPStubs/Swift (6.1.0):
2828
- OHHTTPStubs/Default
2929
- UIDeviceIdentifier (0.5.0)
30-
- WordPressKit (1.4.2):
30+
- WordPressKit (1.4.3-beta.1):
3131
- Alamofire (~> 4.7.3)
3232
- CocoaLumberjack (= 3.4.2)
3333
- NSObject-SafeExpectations (= 0.0.3)
@@ -70,7 +70,7 @@ SPEC CHECKSUMS:
7070
OCMock: ebe9ee1dca7fbed0ff9193ac0b3e2d8862ea56f6
7171
OHHTTPStubs: 1e21c7d2c084b8153fc53d48400d8919d2d432d0
7272
UIDeviceIdentifier: a959a6d4f51036b4180dd31fb26483a820f1cc46
73-
WordPressKit: 16b46a68b144a0dd83d6c96e0fc95c6baf14fda3
73+
WordPressKit: 07501ceb3e9cbebbbe64ad02dcaff44807406450
7474
WordPressShared: 7ef0253d54989b195e020a74100a8500be0a4315
7575
wpxmlrpc: bfc572f62ce7ee897f6f38b098d2ba08732ecef4
7676

WordPressKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressKit"
3-
s.version = "1.4.2"
3+
s.version = "1.4.3-beta.1"
44

55
s.summary = "WordPressKit offers a clean and simple WordPress.com and WordPress.org API."
66

WordPressKit/PostServiceRemoteREST.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ - (RemotePost *)remotePostFromJSONDictionary:(NSDictionary *)jsonPost {
381381
}
382382
post.tags = [self tagNamesFromJSONDictionary:jsonPost[@"tags"]];
383383

384+
post.revisions = [jsonPost arrayForKey:@"revisions"];
385+
384386
// Pick an image to use for display
385387
if (post.postThumbnailPath) {
386388
post.pathForDisplayImage = post.postThumbnailPath;

WordPressKit/RemotePost.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ extern NSString * const PostStatusDeleted;
3939
@property (nonatomic, strong) NSNumber *likeCount;
4040

4141
@property (nonatomic, strong) NSArray *categories;
42+
@property (nonatomic, strong) NSArray *revisions;
4243
@property (nonatomic, strong) NSArray *tags;
4344
@property (nonatomic, strong) NSString *pathForDisplayImage;
4445
@property (nonatomic, assign) BOOL isFeaturedImageChanged;

0 commit comments

Comments
 (0)