Skip to content

ifad/api-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Api::Config

A simple way to maintain configurations in a Ruby project using YAML file

Installation

Add this line to your application's Gemfile:

gem 'api-config'

And then execute:

$ bundle

Or install it yourself as:

$ gem install api-config

Usage

APIConfig.foo
APIConfig.bar.goo

Ruby 3.0.x

An issue with the ostruct version shipped with Ruby 3.0.x does not allow Api::Conifg to work propertly.

If you are using Ruby 3.0.x, please add to your Gemfile

gem 'ostruct', '> 0.3.1'

Contributing

  1. Fork it ( https://github.com/[my-github-username]/api-config/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request