Permalink
Browse files

Merge branch 'master' of git://github.com/cwninja/open_gem

  • Loading branch information...
2 parents 34f921e + af04d84 commit ecd41cf32c9242db71cdf7a335154a5fe307181c @adamsanderson committed Apr 23, 2010
Showing with 7 additions and 3 deletions.
  1. +4 −0 CHANGELOG.markdown
  2. +1 −1 VERSION.yml
  3. +2 −2 lib/rubygems/commands/open_command.rb
View
@@ -1,5 +1,9 @@
OpenGem
========
+1.5
+---
+* Respect the VISIAL environment variable above EDITOR.
+
...
---
* Updating to use GemCutter to host gems now...
View
@@ -1,4 +1,4 @@
---
-:minor: 4
+:minor: 5
:patch: 0
:major: 1
@@ -33,9 +33,9 @@ def get_path(name)
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

0 comments on commit ecd41cf

Please sign in to comment.