Commit Graph

14 Commits

Author SHA1 Message Date
Max Howell
3e26b05fe5 Remove AAA-CocoaPods-Hack
Cyclic dependencies are bad MMMKAY?
2017-04-24 11:47:17 -04:00
Zach Langley
bbe0422358 Document all public methods
(At least according to the docs/undocmented.json file created by jazzy.)

Also attemps to unify the documentation style, fixes typos found in
documentation, and adds some functional tests for PMKJoint.
2016-10-28 01:11:24 -07:00
Max Howell
67bc256992 PromiseKit 4 / Swift 3 / Xcode 8
http://promisekit.org/news/2016/09/PromiseKit-4.0-Released/
2016-09-07 15:45:21 -07:00
Max Howell
7496459128 Tag 3.4.0 2016-07-26 23:03:02 -07:00
Max Howell
4b3eb0daff Mark loose C functions as extern “C” so C++ works
Fixes #330
2016-07-22 22:55:02 -07:00
DominikDeak
7a121defc4 Header fix for issue #377. 2016-03-17 11:24:50 +11:00
Max Howell
af107056ac Disambiguify category promise() functions
Having to specialize your thens makes using PromiseKit much less pleasant.
However naming our functions more verbosely, for example:

    CLLocationManager.promiseLocations()

    // versus

    CLLocationManager.promiseLocation()

Read confusingly. This new idea allows promises to be non-ambiguous yet
specialization is easy. For example:

    NSURLSession.GET(url).then { data in }  // no compiler ambiguity!

    // or:

    NSURLSession.GET(url).asImage().then { image in }
2015-08-12 21:56:42 -07:00
Max Howell
54551b9bdc Remove deprecated PMKPromise 2015-08-12 21:21:23 -07:00
Max Howell
93947300a4 ObjC PMKJoin has same behavior as Swift join 2015-08-12 21:21:22 -07:00
Max Howell
ec3ce6a3cd Remove ObjC PMKSetUnhandledErrorHandler
If you need this, you must write some Swift. The ObjC simply doesn’t work with the Swift 2 beta due to the implicit ErrorType -> NSError conversions and this seems a good enough opportunity to cut this code. Since the function is one-time use per app it seems the inconvenience for an ObjC developer is acceptable.
2015-08-12 21:20:54 -07:00
Max Howell
294aa9e3ff Assume application/javascript is JSON
Closes #235
2015-08-09 14:50:36 -05:00
Max Howell
8226dd694f Further documentation for when and join
Refs #138
2015-06-07 23:24:02 -07:00
Max Howell
4479d376b0 Move NSError category import to our objc umbrella 2015-05-15 15:17:56 -05:00
Max Howell
e96adc5fed PromiseKit 2.0
Fixes #165
Fixes #56
Closes #18
Fixes #13
2015-05-14 00:42:58 -05:00