A simple way to maintain configurations in a Ruby project using YAML file
Add this line to your application's Gemfile:
gem 'api-config'
And then execute:
$ bundle
Or install it yourself as:
$ gem install api-config
APIConfig.foo
APIConfig.bar.goo
An issue with the ostruct
version shipped with Ruby 3.0.x does not allow
Api::Config
to work properly.
If you are using Ruby 3.0.x, please add to your Gemfile
gem 'ostruct', '> 0.3.1'
- Fork it ( https://github.com/[my-github-username]/api-config/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request