RubyFlow The Ruby and Rails community linklog

Tired of writing configurations for your gem?

tl;dr Go to github.com/beatrichartz/configurations and get MyGem.configure do ... end configuration functionality (plus bonus).

In nearly every gem written there is some lines doing configuration. Although there seems to be a broad consensus on the MyGem.configure do ... end idiom, everybody has their own version of doing it, or is at least is copy-pasting the same code into the gem.

Configurations is a lightweight gem aiming at fixing that.

It lets you implement everything from an arbitrarily configurable object down to a type restricted configuration, so you can focus on writing exciting code without getting stuck implementing a configuration.

Works on nearly every Ruby version, has no dependencies, and is 11 KB to download (oh the bloat!)

Configurations - A delicious hash wrapped in a basic object, and nothing more. Try it today!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in