You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Latest specs failing on released ostruct gem (on JRuby):
207)
OpenStruct#to_h with block converts [key, value] pairs returned by the block to a hash FAILED
Expected {:name=>"John Smith", :age=>70, :pension=>300} == {"name"=>"John SmithJohn Smith", "age"=>140, "pension"=>600}
to be truthy but was false
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:34:in `block in <main>'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyEnumerable.java:1862:in `all?'
org/jruby/RubyArray.java:1809:in `each'
org/jruby/RubyArray.java:1809:in `each'
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:4:in `<main>'
org/jruby/RubyKernel.java:1009:in `load'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyArray.java:1809:in `each'
208)
OpenStruct#to_h with block raises ArgumentError if block returns longer or shorter array FAILED
Expected ArgumentError ((?-mix:element has wrong array length))
but no exception was raised ({:name=>"John Smith", :age=>70, :pension=>300} was returned)
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:38:in `block in <main>'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyEnumerable.java:1862:in `all?'
org/jruby/RubyArray.java:1809:in `each'
org/jruby/RubyArray.java:1809:in `each'
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:4:in `<main>'
org/jruby/RubyKernel.java:1009:in `load'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyArray.java:1809:in `each'
209)
OpenStruct#to_h with block raises TypeError if block returns something other than Array FAILED
Expected TypeError ((?-mix:wrong element type String))
but no exception was raised ({:name=>"John Smith", :age=>70, :pension=>300} was returned)
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:48:in `block in <main>'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyEnumerable.java:1862:in `all?'
org/jruby/RubyArray.java:1809:in `each'
org/jruby/RubyArray.java:1809:in `each'
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:4:in `<main>'
org/jruby/RubyKernel.java:1009:in `load'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyArray.java:1809:in `each'
210)
OpenStruct#to_h with block coerces returned pair to Array with #to_ary FAILED
Expected {:name=>"John Smith", :age=>70, :pension=>300} == {:b=>"b"}
to be truthy but was false
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:57:in `block in <main>'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyEnumerable.java:1862:in `all?'
org/jruby/RubyArray.java:1809:in `each'
org/jruby/RubyArray.java:1809:in `each'
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:4:in `<main>'
org/jruby/RubyKernel.java:1009:in `load'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyArray.java:1809:in `each'
211)
OpenStruct#to_h with block does not coerce returned pair to Array with #to_a FAILED
Expected TypeError ((?-mix:wrong element type MockObject))
but no exception was raised ({:name=>"John Smith", :age=>70, :pension=>300} was returned)
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:64:in `block in <main>'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyEnumerable.java:1862:in `all?'
org/jruby/RubyArray.java:1809:in `each'
org/jruby/RubyArray.java:1809:in `each'
/home/travis/build/jruby/jruby/spec/ruby/library/openstruct/to_h_spec.rb:4:in `<main>'
org/jruby/RubyKernel.java:1009:in `load'
org/jruby/RubyBasicObject.java:2615:in `instance_eval'
org/jruby/RubyArray.java:1809:in `each'
Activity
headius commentedon Mar 6, 2020
Latest specs failing on released ostruct gem (on JRuby):
Restore ostruct and matrix from CRuby stdlib.
headius commentedon Apr 3, 2020
Ugh. That auto-close is too sensitive.
headius commentedon Sep 22, 2020
Pinging again... is there anything I can do to help get this gem released?
marcandre commentedon Sep 22, 2020
Sorry @headius, and thanks for the ping.
masteris not as I want it right now, I want to fix this week and will release thenheadius commentedon Sep 22, 2020
Let me know if I can help!
marcandre commentedon Sep 30, 2020
I release v0.3.0.
Let me know if you encounter any issue!
Source ostruct from the 0.3.0 gem
headius commentedon Oct 5, 2020
Thank you! I've flipped JRuby to using the gem in jruby/jruby#6426 and will merge once it's green. This is the last default gem from 2.6 we needed!