Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit ecd41cf32c9242db71cdf7a335154a5fe307181c 2 parents 34f921e + af04d84
@adamsanderson authored
View
4 CHANGELOG.markdown
@@ -1,5 +1,9 @@
OpenGem
========
+1.5
+---
+* Respect the VISIAL environment variable above EDITOR.
+
...
---
* Updating to use GemCutter to host gems now...
View
2  VERSION.yml
@@ -1,4 +1,4 @@
---
-:minor: 4
+:minor: 5
:patch: 0
:major: 1
View
4 lib/rubygems/commands/open_command.rb
@@ -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.
Something went wrong with that request. Please try again.