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 CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
data/rest_kat.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rest_kat}
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Brad Phelan}]
@@ -101,7 +101,7 @@
101
101
  RKObjectRouter * router = [self router];
102
102
 
103
103
  NSString * collectionResource = [self resourcePath];
104
- NSString * objectResource = [NSString stringWithFormat:@"%@/(id)", collectionResource];
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 withDelegate:delegate];
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.8
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: -2260295425497078183
113
+ hash: -812837393126239167
114
114
  segments:
115
115
  - 0
116
116
  version: "0"