Skip to content

Commit

Permalink
Released v0.1.0
Browse files Browse the repository at this point in the history
## Added

- `Magic::Presenter::Base` — a basic presenter class.
- `Magic::Presentable` to be included in presentable classes.
  - `#decorate`,
  - `#decorate!`,
  - `#decorated`,
  - `#decorated?`.
  • Loading branch information
Alexander-Senko committed Oct 19, 2024
1 parent 8a9cdb9 commit d335361
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## [0.1.0]UNRELEASED
## [0.1.0]2024-10-19

### Added

- `Magic::Presenter::Base` — a basic presenter class.
- `Magic::Presentable` to be included in presentable classes.
- `#decorate`,
- `#decorate!`,
- `#decorated`,
- `#decorated?`.
- `#decorate`,
- `#decorate!`,
- `#decorated`,
- `#decorated?`.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@
https://img.shields.io/codeclimate/coverage/Alexander-Senko/magic-presenter
)

## Installation
A bit of history: this gem was inspired by digging deeper into [Draper](https://github.com/drapergem/draper) with an eye on a refactoring.

Based on [Magic Decorator](https://github.com/Alexander-Senko/magic-decorator), it implements a presenter logic.

TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
## Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
$ bundle add magic-presenter

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
$ gem install magic-presenter

## Usage

Expand Down

0 comments on commit d335361

Please sign in to comment.