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

tests fail with ruby version 2.7 NoMethodError: undefined method `[]=' for nil:NilClass #62

Closed
pravi opened this issue Feb 5, 2020 · 2 comments · Fixed by #64
Closed

Comments

@pravi
Copy link
Contributor

pravi commented Feb 5, 2020

Tests are failing with ruby 2.7

44) RecursiveOpenStruct recursive behavior recursing over arrays modifying an array and recursing over it after appending a hash to an array can have new values be set
      Failure/Error: modifiable[new_ostruct_member!($1.to_sym)] = args[0]
      
      NoMethodError:
        undefined method `[]=' for nil:NilClass
      # ./lib/recursive_open_struct.rb:82:in `method_missing'
      # ./spec/recursive_open_struct/recursion_spec.rb:272:in `block (6 levels) in <top (required)>'

Finished in 0.03504 seconds (files took 0.21339 seconds to load)
114 examples, 44 failures
@benlangfeld
Copy link
Contributor

Need to use modifiable? instead.

@aetherknight
Copy link
Owner

I just released v1.1.1, which incorporates #64 and then adds some backwards compatibility support to continue supporting JRuby's current stable version.

Policy is one of supporting still-supported versions of Ruby. 2.3.x is no longer supported, but JRuby 9.1.x.x tracks 2.3.x feature set, so Rubies back to 2.0.0 are still incidentally supported.

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 a pull request may close this issue.

3 participants