README.md in rydux-0.9.0 vs README.md in rydux-0.9.1

- old
+ new

@@ -1,5 +1,7 @@ +[![Gem Version](https://badge.fury.io/rb/rydux.svg)](https://badge.fury.io/rb/rydux) + # Rydux A ruby gem that brings the functionality of Redux to your backend. ## Installation @@ -61,11 +63,11 @@ end # Every instance that subscribes to the store will # get this state_changed method called whenever the state # in the store changes. Do whatever you want with your state here. - def state_changed(state) + def state_changed(state, last_dispatch_type) # ... end end ``` 5. To update the store with new data, you can `dispatch` actions, like so: @@ -98,10 +100,10 @@ def initialize Store.subscribe(self) @users_name = Store.state.user.name end - def state_changed(state) + def state_changed(state, last_dispatch_type) @users_name = state.user.name end def greet_user puts "Hello, #{@users_name}"