Posted By: BJ Dierkes
Date: 2009-09-21 23:51
Summary: rb-parseconfig 0.5 Released
Project: rb-parseconfig

Release Name: 0.5

Notes:
Latest update adds a few new features, including the ability to do [grouping]. For example, reading a MySQL config file:

# -----------------------------------
#!/usr/bin/ruby

require('rubygems')
require('parseconfig')

c = ParseConfig.new('./my.cnf')
puts
puts "Available config groups: #{c.groups}"
puts
puts "config['client']['user'] => #{c.params['client']['user']}"
puts "config['client']['password'] => #{c.params['client']['password']}"
puts

# -----------------------------------

Available config groups: client

config['client']['user'] => johnny
config['client']['password'] => 3uS1F1eufy75


Changes:
Mon Aug 31, 2009 - v0.5
- Added sub-groups feature per RubyForge tracker [#27019]. Config files
can now have [subgroups] whose values are added to a nested Hash object.
- Added the write() function per RubyForge tracker [#27019]. Will print
to STDOUT by default, or to a file object if passed.
- Added the add(), and add_to_group() functions to support new features
per RubyForge tracker [#27019].
- Thank you to Titouan Christophe for the submissions listed above!
- ParseConfig.get_params() returns all params including groups.
ParseConfig.get_groups() returns available sub-groups.
- See the demo.rb and demo.conf files which have been updated to reflect
this update.
- The methods override_value() and nil_value() are now deprecated and will
be removed in future versions.

Latest News
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11
kramdown 1.0.2 released
    Thomas Leitner - 2013-05-09 06:58
mime-types 1.23 Released
    Austin Ziegler - 2013-04-21 01:41
diff-lcs 1.2.4 Released
    Austin Ziegler - 2013-04-21 00:08

 

Forums | Admin

Discussion Forums: rb-parseconfig-0.5-released

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post