Skip to content

Commit

Permalink
Fix Gnuplot issues in Ruby 2.7
Browse files Browse the repository at this point in the history
Fix #321
Supported by @znz
Thanks!!
  • Loading branch information
kojix2 authored Jul 5, 2022
1 parent 1748062 commit 41beabd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/iruby/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def execute_request(msg)
end

events.trigger(:post_execute)
events.trigger(:post_run_cell, result) unless silent
# **{} is for Ruby2.7. Gnuplot#to_hash returns an Array.
events.trigger(:post_run_cell, result, **{}) unless silent

@session.send(:reply, :execute_reply, content)
end
Expand Down

0 comments on commit 41beabd

Please sign in to comment.