README.md in sandthorn-1.0.0 vs README.md in sandthorn-1.1.0
- old
+ new
@@ -1,9 +1,9 @@
[![Build Status](https://travis-ci.org/Sandthorn/sandthorn.svg?branch=master)](https://travis-ci.org/Sandthorn/sandthorn)
-[![Coverage Status](https://coveralls.io/repos/Sandthorn/sandthorn/badge.png?branch=master)](https://coveralls.io/r/Sandthorn/sandthorn?branch=master)
-[![Code Climate](https://codeclimate.com/github/Sandthorn/sandthorn.png)](https://codeclimate.com/github/Sandthorn/sandthorn)
-[![Gem Version](https://badge.fury.io/rb/sandthorn.png)](http://badge.fury.io/rb/sandthorn)
+[![Coverage Status](https://coveralls.io/repos/Sandthorn/sandthorn/badge.svg?branch=master)](https://coveralls.io/r/Sandthorn/sandthorn?branch=master)
+[![Code Climate](https://codeclimate.com/github/Sandthorn/sandthorn.svg)](https://codeclimate.com/github/Sandthorn/sandthorn)
+[![Gem Version](https://badge.fury.io/rb/sandthorn.svg)](http://badge.fury.io/rb/sandthorn)
# Sandthorn Event Sourcing
A ruby library for saving an object's state as a series of events.
## What is Event Sourcing?
@@ -122,11 +122,11 @@
```ruby
class Board
include Sandthorn::AggregateRoot
# creates a private class method `board_created`
- contructor_events :board_created
+ constructor_events :board_created
def self.create name
board_created(name) do
@name = name
@@ -135,10 +135,10 @@
end
```
### `Sandthorn::AggregateRoot::stateless_events`
-Calling `stateless_events` creates public class methods. The first argument is an `aggregate_id` and the second argument is optional but has to be a hash and is stored in the attribute_deltas of the event.
+Calling `stateless_events` creates public class methods. The first argument is an `aggregate_id` and the second argument is optional but has to be a hash and is stored in the event_data of the event.
When creating a stateless event, the corresponding aggregate is never loaded and the event is saved without calling the save method.
```ruby
class Board