Skip to content

Commit

Permalink
Podspec 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ipodishima committed Feb 29, 2016
1 parent 9093f61 commit 50acf9b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
## 0.0.2 - Released Feb 29, 2015
- Fixed an import with missing .h on main header
- Do not ask the store to delete an object if `nil`

## 0.0.1 - Released Feb 26, 2015
Initial release
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ WAMemoryStore *memoryStore = [[WAMemoryStore alloc] init];
WAMapper *mapper = [WAMapper newMapperWithStore:memoryStore];
WAReverseMapper *reverseMapper = [WAReverseMapper new];
// Add a default date formatter on mapper
id(^toDateMappingBlock)(id ) = ^id(id value) {
if ([value isKindOfClass:[NSString class]]) {
return [dateFormatter dateFromString:value];
}
return value;
};
[mapper addDefaultMappingBlock:toDateMappingBlock
forDestinationClass:[NSDate class]];
// Create the mapping description for `Enterprise`
WAEntityMapping *enterpriseMapping = [WAEntityMapping mappingForEntityName:@"Enterprise"];
enterpriseMapping.identificationAttribute = @"itemID";
Expand Down Expand Up @@ -206,7 +218,7 @@ Please note that the `requestKeyPath` fits with how your object would be wrapped
This allows you to post an object like this
```
```objc
Enterprise *enterprise = [Enterprise new];
enterprise.name = @"Test";
Expand Down Expand Up @@ -303,7 +315,7 @@ It's an other protocol (again): `WANRErrorProtocol`
### Create your own class
The routing manager comes with a default error class which does nothing except being allocated.

```
```objc
@interface MyAPIError : NSObject <WANRErrorProtocol>
@end

Expand Down
9 changes: 4 additions & 5 deletions WANetworkRouting.podspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
Pod::Spec.new do |s|
s.name = "WANetworkRouting"
s.version = "0.0.1"
s.version = "0.0.2"
s.summary = "A routing library to fetch objects from an API and map them to your app"
s.homepage = "https://github.com/Wasappli/WANetworkRouting"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Marian Paul" => "[email protected]" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/Wasappli/WANetworkRouting.git", :tag => "0.0.1" }
s.source = { :git => "https://github.com/Wasappli/WANetworkRouting.git", :tag => "0.0.2" }
s.source_files = "Files/*.{h,m}"
s.requires_arc = true
s.dependency "AFNetworking"
s.dependency "WAMapping"

s.dependency 'AFNetworking', '~> 3.0'
s.dependency 'WAMapping', '~> 0.0.3'
end

0 comments on commit 50acf9b

Please sign in to comment.