Permalink
Browse files

fix open command typo

  • Loading branch information...
1 parent 1679f30 commit 66f7155f8084e0f47030fe452e9cc89e88663895 @quozd quozd committed Feb 4, 2014
Showing with 4 additions and 3 deletions.
  1. +4 −3 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

0 comments on commit 66f7155

Please sign in to comment.