Optimism v3.0.0 Released

Optimism is a ruby configuration library, with v3.0.0, it’s much simple,
now. It’s only have two syntax.

Ruby-syntax

Rc = Optimism do |c|
c.host = “localhost”
c.port = 8080
c.mail.stmp.address = “stmp.gmail.com

my.development do |c|  # namespace
    c.adapter = "postgresql"
    c.database = "hello_development"
    c.username = "foo"
end

c.time = proc{ |offset| Time.now } # computed attribute

end

String-syntax

Rc = Optimism <<-EOF
host = “localhost”
port = 8080
mail.stmp.address = “stmp.gmail.com

my.development:
    adapter = "postgresql"
    database = "hello_development"
    username = "foo"

time = proc{ |offset| Time.now }

EOF

project homepage: GitHub - gutenye/optimism: [Ruby] A configuration library for Ruby. a simple, feature rich, elegant way in pure Ruby. Hash compatibility.


Linux, Vim, Ruby, Lisp, Go, and English.
Github: gutenye (Guten Ye) · GitHub
website: GutenYe.com
twitter: @gutenye
Optimism https://github.com/GutenYe/optimism: a Ruby configuration
library.
ZCM https://github.com/zcm/zcm: a ZSH Configuration Manager.