confstruct icon indicating copy to clipboard operation
confstruct copied to clipboard

Yet another hash/struct-like configuration object for Ruby

Results 12 confstruct issues
Sort by recently updated
recently updated
newest added

Is there a reason "display" would be a reserved word for a key? Traced my weird bug down to that. ``` hash = {:display=> "display", :foo => 'foo'} conf =...

**BACKGROUND:** I would like to use configs with question marks (e.g. `enabled?`) for booleans. **REPRO STEPS:** Define a config object with a config that has a question mark: `config =...

With Hashie 3.4.2, this code used to work ``` ruby require 'timeout' require 'confstruct' Confstruct::Configuration.new(timeout: 1) ``` Using 3.4.3, this fails with: ``` ArgumentError: The property timeout clashes with an...

Travis shows all passing in master... but if I run tests myself, I get failures. Very odd and confusing. Any ideas? Actually, Travis last ran tests 9 months ago --...

lookup! fails if you give a symbol key. This is unexpected as [] accepts symbols.

Consider this example: ``` conf = Confstruct::Configuration.new do format "XML" end ``` If initialised like this, conf will return empty hash. If confstruct is initialised via hash, the key is...

I'm able to do ``` ruby config = Confstruct::Configuration.new do github do url 'http://www.github.com/mbklein/confstruct' branch 'master' end end ``` but not ``` ruby config = Confstruct::Configuration.new({:'github.url' => 'http://www.github.com/mbklein/confstruct', :'github.branch' =>...

This one is weird edge case of some kind, but i'm not sure what kind. Here's the reproduction: ``` conf = Confstruct::Configuration.new conf.configure( :top=>{:middle=>{"one"=>"two"}} ) conf.top.middle # => {"one"=>"two"} conf.top.middle.class...

It seems that `repository` is ignored by default. ``` ruby config = Confstruct::Configuration.new { repository 'hello' } # => {} ```

It's not good practice to put `tasks` in the `lib` directory. Anything in the toplevel of the `lib` directory indicates an ownership, meaning you should have registered the name as...