Skip to content

Commit

Permalink
Fix for old versions of Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed Feb 16, 2022
1 parent f382770 commit 795bb09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/iruby/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def run
:force,
:ipython_dir
) do
def initialize(*args, **kw)
def initialize(*args)
super
self.name ||= DEFAULT_KERNEL_NAME
self.force = false
Expand Down
3 changes: 1 addition & 2 deletions test/iruby/application/register_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ def setup
@kernel_json = File.join(tmpdir, "kernels", DEFAULT_KERNEL_NAME, "kernel.json")
with_env(
"JUPYTER_DATA_DIR" => tmpdir,
"IPYTHONDIR" => nil,
"HOME" => nil
"IPYTHONDIR" => nil
) do
yield
end
Expand Down
3 changes: 1 addition & 2 deletions test/iruby/application/unregister_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ def setup
@kernel_json = File.join(tmpdir, "kernels", DEFAULT_KERNEL_NAME, "kernel.json")
with_env(
"JUPYTER_DATA_DIR" => tmpdir,
"IPYTHONDIR" => nil,
"HOME" => nil
"IPYTHONDIR" => nil
) do
yield
end
Expand Down

0 comments on commit 795bb09

Please sign in to comment.