适用于标准 Unix/Linux 类型配置文件的 Ruby 配置文件解析器
ParseConfig provides simple parsing of standard configuration files in the
form of param = value. It also supports nested [group] sections.
$ gem install parseconfigGemfile
gem 'parseconfig'An example configuration file might look like:
# Example Config
param1 = value1
param2 = value2
[group1]
group1_param1 = group1_value1
group1_param2 = group1_value2
[group2]
group2_param1 = group2_value1
group2_param2 = group2_value2Access it with ParseConfig:
…This project includes a docker-compose configuration that sets up all required services, and dependencies for development and testing. This is the recommended path for local development, and is the only fully supported option.
The following creates all required docker containers, and launches a BASH shell within the parseconfig dev container for development.
$ make dev
|> parseconfig parseconfig-rb26 <| src #$ make testThe ParseConfig library is Open Source and distributed under the MIT license. Please see the LICENSE file included with this software.
暂无开放 Issues,或尚未同步最近议题。