Skip to content

Commit 4627231

Browse files
author
Josh Holtz
committedOct 14, 2015
Version 1.0.1
1 parent 9976df2 commit 4627231

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎JSONAPI.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "JSONAPI"
3-
s.version = "1.0.0"
3+
s.version = "1.0.1"
44
s.summary = "A library for loading data from a JSON API datasource."
55
s.description = <<-DESC
66
A library for loading data from a JSON API datasource. Parses JSON API data into models with support for auto-linking of resources and custom model classes.

‎README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ A library for loading data from a [JSON API](http://jsonapi.org) datasource. Par
99

1010
Version | Changes
1111
--- | ---
12+
**1.0.1** | Now safely checks for `NSNull` in the parsed JSON. Thanks to [christianklotz](https://github.com/christianklotz) for that fix!
1213
**1.0.0** | We did it team! We are at the `JSON API 1.0 final` spec. Resources now use `JSONAPIResourceDescriptor` for more explicit definitions. **HUGE** thanks to [jkarmstr](https://github.com/jkarmstr) for doing all the dirty work. Also thanks to [edopelawi ](https://github.com/edopelawi ), [BenjaminDigeon](https://github.com/BenjaminDigeon), and [christianklotz](https://github.com/christianklotz) for some bug fixes!
1314
**1.0.0-rc1** | Rewrote core of `JSONAPI` and `JSONAPIResource` and all unit tests to be up to spec with JSON API spec 1.0.0-rc3. Removed `JSONAPIResourceLinker`. Added `JSONAPIErrorResource`
1415
**0.2.0** | Added `NSCopying` and `NSCoded` to `JSONAPIResource`; Added `JSONAPIResourceFormatter` to format values before getting mapped - [more info](#formatter)
@@ -64,17 +65,17 @@ static JSONAPIResourceDescriptor *__descriptor = nil;
6465
static dispatch_once_t onceToken;
6566
dispatch_once(&onceToken, ^{
6667
__descriptor = [[JSONAPIResourceDescriptor alloc] initWithClass:[self class] forLinkedType:@"articles"];
67-
68+
6869
[__descriptor setIdProperty:@"ID"];
6970

7071
[__descriptor addProperty:@"title"];
7172
[__descriptor addProperty:@"date"
7273
withDescription:[[JSONAPIPropertyDescriptor alloc] initWithJsonName:@"date" withFormat:[NSDateFormatter RFC3339DateFormatter]]];
73-
74+
7475
[__descriptor hasOne:[PeopleResource class] withName:@"author"];
7576
[__descriptor hasMany:[CommentResource class] withName:@"comments"];
7677
});
77-
78+
7879
return __descriptor;
7980
}
8081

0 commit comments

Comments
 (0)