lib/rubygems/commands/open_command.rb in open_gem-1.4.0 vs lib/rubygems/commands/open_command.rb in open_gem-1.4.2

- old
+ new

@@ -31,12 +31,12 @@ spec.full_gem_path end end def open_gem(path) - editor = options[:command] || ENV['GEM_OPEN_EDITOR'] || ENV['EDITOR'] + editor = options[:command] || ENV['GEM_OPEN_EDITOR'] || ENV['VISUAL'] || ENV['EDITOR'] if !editor - say "Either set $EDITOR, or use -c <command_name>" + say "Either set $GEM_OPEN_EDITOR, $VISUAL, $EDITOR, or use -c <command_name>" else command_parts = Shellwords.shellwords(editor) command_parts << path success = system(*command_parts) if !success \ No newline at end of file