Skip to content

Commit 41beabd

Browse files
authored
Fix Gnuplot issues in Ruby 2.7
Fix #321 Supported by @znz Thanks!!
1 parent 1748062 commit 41beabd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/iruby/kernel.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ def execute_request(msg)
218218
end
219219

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

223224
@session.send(:reply, :execute_reply, content)
224225
end

0 commit comments

Comments
 (0)