From 13d57b4bf430c79436a3062c034068d1e3d739a2 Mon Sep 17 00:00:00 2001 From: Lucas Ortis Date: Sun, 18 Oct 2015 16:57:02 +0200 Subject: [PATCH] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7524dad..0be3d9e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ CommandBus is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby -pod "CommandBus", '~> 0.0.2' +pod "CommandBus", '~> 0.0.3' ``` # Usage @@ -30,7 +30,9 @@ pod "CommandBus", '~> 0.0.2' ```json { - "{ModuleName}.{CommandName}": "{ModuleName}.{CommandHandlerName}" + "{CommandNameA}": "{CommandHandlerNameA}", + "{CommandNameB}": "{CommandHandlerNameB}", + "{CommandNameC}": "{CommandHandlerNameC}" } ``` @@ -45,7 +47,7 @@ class ViewController: UIViewController { NSNotificationCenter.defaultCenter().addObserver(self, selector: "onCommandHandled:", name:"COMMAND_DONE", object: nil) /*** Create the CommandBus ***/ - let commandBus: CommandBus = try! CommandBus(configurationFileName: "configuration") + let commandBus: CommandBus = CommandBus(configurationFileName: "configuration")! /*** Create your own CommandHandler ***/ let customCommand: CustomCommand = CustomCommand()