From e661c024a0f491a0867585b9a7dca987abcb7c24 Mon Sep 17 00:00:00 2001 From: Ash Furrow Date: Sat, 14 Nov 2015 17:08:55 -0500 Subject: [PATCH] Updated CI. --- .travis.yml | 6 ++++++ Readme.md | 30 +++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5d2ed2c..c72d8fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,3 +11,9 @@ cache: cocoapods xcode_workspace: Demo/Demo.xcworkspace xcode_scheme: Demo +before_install: + - KEY_CHAIN=ios-build.keychain + - security create-keychain -p travis $KEY_CHAIN + - security default-keychain -s $KEY_CHAIN + - security unlock-keychain -p travis $KEY_CHAIN + - security set-keychain-settings -t 3600 -u $KEY_CHAIN diff --git a/Readme.md b/Readme.md index 8ebeaa7..dd37feb 100644 --- a/Readme.md +++ b/Readme.md @@ -3,5 +3,33 @@ NSObject+Rx =========== -What an exciting library that I've been meaning to totally write a readme for! See #1. +If you're using [RxSwift](https://github.com/ReactiveX/RxSwift), you've probably encountered the following code more than a few times. +```swift +class MyObject: Whatever { + let disposeBag = DisposeBag() + + ... +} +``` + +You're actually not the only one to have written this line many, many times. + +![Search screenshot showing many, many results.](assets/screenshot.png) + +Instead of adding a new property to every object using RxSwift, use this library to add it for you, to any subclass of `NSObject`. + +```swift +thing + .bindTo(otherThing) + .addDisposableTo(rx_disposeBag()) +``` + +Sweet. + +License +------- + +MIT obvs. + +![Tim Cook dancing to the sound of a permissive license.](http://i.imgur.com/mONiWzj.gif)