Skip to content

Conversation

habemus-papadum
Copy link
Contributor

Without this arity check, display errors can result (for instance, many of the objects defined in the ruby-git gem define a .path method requiring exactly one argument.)

Note: It is questionable whether the the entire idea of supporting .path is wise... this PR attempts a minimal fix, but I would also suggest the maintainers consider simply removing the logic all together.

@kojix2
Copy link
Member

kojix2 commented Aug 4, 2019

Thank you @habemus-papadum

Yes, that's right.
I think this code is mainly used to display image files.
However, it is not recommended to display images as IO objects. This logic will be removed in the future.

See #113 #202

@kojix2 kojix2 merged commit 70ca17b into SciRuby:master Aug 4, 2019
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request May 4, 2021
0.5.0 (2021-03-25)

Bug Fixes:

  * Fix Jupyter console crashes issue
    SciRuby/iruby#210 (@kojix2)
  * Fix syntax highlighting issue on Jpyter Lab
    SciRuby/iruby#224 (@kojix2)
  * Fix interoperability issue with ruby-git
    SciRuby/iruby#139 (@habemus-papadum)
  * Fix the issue of `$stderr.write` that cannot handle multiple arguments
    SciRuby/iruby#206 (@kojix2)
  * Remove a buggy `inspect_request` implementation
    SciRuby/iruby#119 (@LunarLanding)
  * Fix uninitialized constant `Fiddle` caused in initialization phase
    SciRuby/iruby#264 (@MatthewSteen, @kjoix2)
  * Fix the issue on displaying a table
    SciRuby/iruby#281 (@ankane)

Enhancements:

  * Add `IRuby.clear_output` method
    SciRuby/iruby#220 (@kojix2)
  * Make backtrace on exception simplify and more appropriate for code in a
    cell SciRuby/iruby#249 (@zheng-yongping)
  * Make syntax error message more appropriate
    SciRuby/iruby#251 (@zheng-yongping)
  * Remove top-level `In` and `Out` constants
    SciRuby/iruby#229 (@kojix2)
  * Use text/plain for the default format of `Numo::NArray` objects
    SciRuby/iruby#255 (@kojix2)
  * Use ffi-rzmq as the default ZeroMQ adapter
    SciRuby/iruby#256 (@kojix2)
  * Drop rbczmq support SciRuby/iruby#260
    (@rstammer)
  * Add ruby-vips image support SciRuby/iruby#279
    (@ankane)
  * Replace mimemagic with mime-types
    SciRuby/iruby#291 (@mrkn)
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