konfig
konfig copied to clipboard
Ruby 2.7
When using ruby 2.7 Konfig.load fails with:
Failure/Error: Konfig.load
Konfig::KeyError:
key not found: :new_ostruct_member
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:62:in `method_missing'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:98:in `block in __convert'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:96:in `each'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:96:in `__convert'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/option.rb:16:in `load'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig/yaml_provider.rb:37:in `load'
# ./vendor/bundle/ruby/2.7.0/gems/rb-konfig-0.1.5/lib/konfig.rb:12:in `load'
Avoid new_ostruct_member usage in Konfig::Option seems to be the solution as https://github.com/rubyconfig/config/pull/255/files did.
Thanks. What's the impact of this on Ruby < 2.7? (I don't have the full setup to test)