Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix open command typo

  • Loading branch information...
commit 66f7155f8084e0f47030fe452e9cc89e88663895 1 parent 1679f30
@quozd quozd authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/rubygems/commands/open_command.rb
View
7 lib/rubygems/commands/open_command.rb
@@ -60,10 +60,11 @@ def open_gem name
open_editor(spec.full_gem_path)
end
- def open_editor *args
- Dir.chdir(args) do
+ def open_editor path
+ Dir.chdir(path) do
pid = fork do
- exec(*editor.split(/\s+/) + args)
+ args = *path
+ exec(*editor.split(/\s+/) + path)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.