rest_kat 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/rest_kat.gemspec +1 -1
- data/src/MSRestSerializable.m +5 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/rest_kat.gemspec
CHANGED
data/src/MSRestSerializable.m
CHANGED
@@ -101,7 +101,7 @@
|
|
101
101
|
RKObjectRouter * router = [self router];
|
102
102
|
|
103
103
|
NSString * collectionResource = [self resourcePath];
|
104
|
-
NSString * objectResource = [NSString stringWithFormat:@"
|
104
|
+
NSString * objectResource = [NSString stringWithFormat:@"%@/:id", collectionResource];
|
105
105
|
|
106
106
|
if([self isSingleton])
|
107
107
|
{
|
@@ -155,12 +155,12 @@
|
|
155
155
|
{
|
156
156
|
if ([self isNew])
|
157
157
|
{
|
158
|
-
NSAssert(self.canCreate, @"Object must allow create to be created");
|
158
|
+
NSAssert(self.class.canCreate, @"Object must allow create to be created");
|
159
159
|
NSLog(@"Creating new object\n%@", self);
|
160
160
|
// Save a new object
|
161
161
|
[[RKObjectManager sharedManager] postObject:self mapResponseWith:[self _mapper] delegate:delegate];
|
162
162
|
}else{
|
163
|
-
NSAssert(self.canUpdate, @"Object must allow update to be updated");
|
163
|
+
NSAssert(self.class.canUpdate, @"Object must allow update to be updated");
|
164
164
|
NSLog(@"Updating object\n%@", self);
|
165
165
|
// Update the object as it allready has an id
|
166
166
|
[[RKObjectManager sharedManager] putObject:self mapResponseWith:[self _mapper] delegate:delegate];
|
@@ -169,8 +169,8 @@
|
|
169
169
|
|
170
170
|
- (void)deleteWithDelegate:(id<RKObjectLoaderDelegate>)delegate
|
171
171
|
{
|
172
|
-
NSAssert(self.canDelete, @"Object must allow delete to be deleted");
|
173
|
-
[[RKObjectManager sharedManager] deleteObject:self
|
172
|
+
NSAssert(self.class.canDelete, @"Object must allow delete to be deleted");
|
173
|
+
[[RKObjectManager sharedManager] deleteObject:self mapResponseWith:[self _mapper] delegate:delegate];
|
174
174
|
}
|
175
175
|
|
176
176
|
// Find an instance by id
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rest_kat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Brad Phelan
|
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
110
|
requirements:
|
111
111
|
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
hash: -
|
113
|
+
hash: -812837393126239167
|
114
114
|
segments:
|
115
115
|
- 0
|
116
116
|
version: "0"
|