diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b12e00..c5aea08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## [0.2.0] — UNRELEASED +## [0.2.0] — 2024-10-17 ### Changed diff --git a/README.md b/README.md index efb6ef4..3971c31 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,9 @@ person.name # => "John Smith" This module adds three methods to decorate an object. Decorator class is being inferred automatically. When no decorator is found, -* `#decorate` returns `nil`, -* `#decorate!` raises `Magic::Lookup::Error`, -* `#decorated` returns the original object. +- `#decorate` returns `nil`, +- `#decorate!` raises `Magic::Lookup::Error`, +- `#decorated` returns the original object. One can test for the object is actually decorated with `#decorated?`. @@ -60,9 +60,11 @@ One can test for the object is actually decorated with `#decorated?`. .decorated? # => true ``` -#### Magic +## Magic -`Decoratable` is mixed into `Object` by default. That means that effectively any object is `Decoratable`. +### Decoratable scope + +`Magic::Decoratable` is mixed into `Object` by default. It means that effectively any object is _magically decoratable_. ### Decoration expansion diff --git a/lib/magic/decorator/version.rb b/lib/magic/decorator/version.rb index 44acafe..fd1132e 100644 --- a/lib/magic/decorator/version.rb +++ b/lib/magic/decorator/version.rb @@ -2,6 +2,6 @@ module Magic module Decorator - VERSION = '0.2.0.alpha' + VERSION = '0.2.0' end end