PurePromise - Promises/A+ with a twist

Hello,

I’ve recently written a promises library in ruby. It implements the
Promises/A+ spec almost exactly, with one difference - A promise
callback must return a promise.

This gives them some nice properties, particularly thenables can be
wrapped in promises. With the current Promises/A+ spec, trying to use an
object that happens to implement a then method as a value for a promise
will essentially break a promise chain, causing potentially hard to
debug problems.

It draws partially from Promise.rb
(GitHub - lgierth/promise.rb: Promises/A+ for Ruby), being agnostic about which
reactor library you use.

Here is the github link: GitHub - cameron-martin/pure_promise: Promises/A+ with a twist.

I’d love feedback :slight_smile: