README.md in chirrin-chirrion-0.2.0 vs README.md in chirrin-chirrion-0.3.0
- old
+ new
@@ -3,22 +3,22 @@
## Inspiration
The gem name was inspired in a funny Chapolim Colorado [episode](https://youtu.be/dzgrex7g_zY) called 'Chirrin Chirrion del Diablo'.
Where there is a magic object which the the key word 'chirrin' gives a new thing and 'chirrion' takes it away.
-## Intall
+## Install
gem install chirrin-chirrion
## How to use
### Configuration
```ruby
require 'chirrin-chirrion'
redis_connection = Redis.new
-redis_adapter = RedisAdapter.new(redis_connection)
+redis_adapter = ChirrinChirrion::DatabaseAdapters::RedisAdapter.new(redis_connection)
ChirrinChirrion.config(database_adapter: redis_adapter)
```
### Adding a toggle
```ruby
@@ -30,15 +30,15 @@
ChirrinChirrion.remove_toggle('new_user_register_validation')
```
### Making a toggle active
```ruby
-ChirrinChirrion.chirrin('new_user_register_validation')
+ChirrinChirrion.chirrin!('new_user_register_validation')
```
### Making a toggle inactive
```ruby
-ChirrinChirrion.chirrion('new_user_register_validation')
+ChirrinChirrion.chirrion!('new_user_register_validation')
```
### Using a toggle with if else
```ruby
if ChirrinChirrion.chirrin?('new_user_register_validation')