README.md in motion-objection-0.6.3 vs README.md in motion-objection-0.6.4
- old
+ new
@@ -1,11 +1,11 @@
motion-objection
================
Wrapping the dependency injection library [Objection](https://github.com/atomicobject/objection) in RubyMotion.
-[![Build Status](https://travis-ci.org/atomicobject/motion-objection.png)](https://travis-ci.org/atomicobject/motion-objection)
+<!-- [![Build Status](https://travis-ci.org/atomicobject/motion-objection.png)](https://travis-ci.org/atomicobject/motion-objection) -->
[![Gem Version](https://badge.fury.io/rb/motion-objection.png)](http://badge.fury.io/rb/motion-objection)
[![Code Climate](https://codeclimate.com/github/atomicobject/motion-objection.png)](https://codeclimate.com/github/atomicobject/motion-objection)
## Install
```bash
@@ -13,16 +13,16 @@
```
## Basic Example
```ruby
class Car
- include Objection
+ include Objection::Compose
compose_with :engine, :brakes, factory: JSObjectFactory
end
class Engine
- include Objection
+ include Objection::Compose
singleton
compose_with 'engine/crank_shaft', 'engine/rod'
def shift(wat)
puts "SHIFT!"
@@ -43,11 +43,11 @@
## Initializers
```ruby
class ViewController < NSObject
- include Objection
+ include Objection::Compose
initializer "initWithNibName:bundle:", "Home"
attr_reader :name
def initWithNibName(name, bundle: bundle)
@@ -60,7 +60,7 @@
```
## Default Injector
```ruby
-Objection.default_injector = Objection.injector
+Objection.default_injector = Objection.injector AppModule.new, SecondaryModule.new
```