Bugfixes
- Configuration: same key can appear more than once.
__FILE__
works in Optimism.require(file)
Improvements
- Add yaml, json support. (@GutenYe)
- You can write extensions to parser. (@GutenYe)
- Remove
hike
dependency for less dependency. (@Gutenye)
Changes
- Change path.
_
is current path,_r
is root path. - Rename
Optimism::MissingFile
toEMissingFile
- Remove
Optimism.get .convert .[]
Optimsim#_get _child _replace _walk!
- Add
Optimism.require!
,Optimism#_has_key2?
Optimism#initialize
- Add (hash/optimism, o) argument.
- Rename
:only_symbol_key
option to:symbolize_key
- Add
:parser
option :namespace
option without move the node.
Optimism.require
- Support yaml file (.yml)
- Rename
:mixin
option to:merge
- Remove
:ignore_syntax_error
,:raise_missing_file
option
Optimism#_walk
return nil instead of raising errorOptimism#_store2
remove:namespace
option