README.md in behavioral-0.0.1 vs README.md in behavioral-1.0.0
- old
+ new
@@ -1,10 +1,9 @@
# Behavioral
-[![Build Status](https://travis-ci.org/saturnflyer/behavioral.png?branch=master)](https://travis-ci.org/saturnflyer/behavioral)
+[![Build Status](https://github.com/saturnflyer/behavioral/actions/workflows/test.yml/badge.svg)](https://github.com/saturnflyer/behavioral/actions)
[![Code Climate](https://codeclimate.com/github/saturnflyer/behavioral.png)](https://codeclimate.com/github/saturnflyer/behavioral)
-[![Coverage Status](https://coveralls.io/repos/saturnflyer/behavioral/badge.png)](https://coveralls.io/r/saturnflyer/behavioral)
[![Gem Version](https://badge.fury.io/rb/behavioral.png)](http://badge.fury.io/rb/behavioral)
Add behavior to individual objects and remove it later _while preserving the existing behavior_.
This is _similar_ to [Casting](http://rubygems.org/gems/casting) in that it adds and removes behaviors and preserves `self` but it's different in that you can still use `super` inside your methods.
@@ -38,10 +37,10 @@
person.without_behaviors(Greeter)
person.hello #=> NoMethodError
```
-### This does not alter the anncestry
+### This does not alter the ancestry
When you add behaviors, the methods are copied to the `singleton_class` of your object. Later, if you ask the object if it is of that type, the answer will be false.
```ruby
person = Person.new('Jim').with_behaviors(Greeter)