Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 2.7 #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albanpeignier
Copy link

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.

@khash
Copy link
Member

khash commented Jul 11, 2020

Thanks. What's the impact of this on Ruby < 2.7? (I don't have the full setup to test)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants