Latest0.4.1
Homepagehttps://github.com/cmckni3/RestKit-PromiseKit
LicenseMIT
Platformsios 6.0, osx 10.7, requires ARC
DependenciesPromiseKit/Promise, RestKit
Authors

Version
License
Platform

Wrapper for the RKObjectManager class to return a PromiseKit promise.

Promises clean up the structure of code and provide better data flow
and error handling especially when using asynchronous methods.

Requirements

Supported Platforms

  • iOS 6.0+
  • OS X 10.7+

Installation

Install via CocoaPods

  • Add the library to Podfile

    platform :ios, '6.0'
    
    pod 'RestKit-PromiseKit'
  • Install pod
    pod install

Manual

  • Drop RKObjectManager+PromiseKit.h, RKObjectManager+PromiseKit.m
    and RestKit-PromiseKit.h into an Xcode project with RestKit
    and set the appropriate targets.

Usage

Import the category

  • Manual install

    #import "RestKit-PromiseKit.h"
  • CocoaPods install
    #import <RestKit-PromiseKit/RestKit-PromiseKit.h>

Call a typical HTTP method on an instance of RKObjectManager and use the resulting promise.

  [[RKObjectManager sharedManager] getObjectsAtPath:@"/articles" parameters:nil];

License

RestKit-PromiseKit is licensed under the MIT license. Please see the license for more information.

TODO

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Latest podspec

{
    "name": "RestKit-PromiseKit",
    "version": "0.4.1",
    "summary": "RestKit category for PromiseKit",
    "description": "                               Wrapper for the RKObjectManager class ton                               return a PromiseKit promise.nn                               Promises clean up the structure of code andn                               provide better data flow and error handlingn                               especially when using asynchronous methods.n",
    "homepage": "https://github.com/cmckni3/RestKit-PromiseKit",
    "license": {
        "type": "MIT",
        "file": "MIT-LICENSE"
    },
    "authors": {
        "Chris McKnight": "[email protected]"
    },
    "social_media_url": "https://twitter.com/cmckni3",
    "platforms": {
        "ios": "6.0",
        "osx": "10.7"
    },
    "prefix_header_contents": "#import n#define _AFNETWORKING_PIN_SSL_CERTIFICATES_n#if __IPHONE_OS_VERSION_MIN_REQUIREDn  #import n  #import n  #import n#elsen  #import n  #import n  #import n#endifn",
    "source": {
        "git": "https://github.com/cmckni3/RestKit-PromiseKit.git",
        "tag": "0.4.1"
    },
    "source_files": "RestKit-PromiseKit",
    "requires_arc": true,
    "dependencies": {
        "PromiseKit/Promise": [
            "~> 1.5"
        ],
        "RestKit": [
            "~> 0.20"
        ]
    }
}

Pin It on Pinterest

Share This