Commit f42501c8732442191322de3676fae4cd9fcbbaaf

display nice msg if no rubygem found

Commit diff

Commands/Go to rubygem.tmCommand

 
1010require 'rubygems'
1111
1212target_gem = ENV['TM_CURRENT_WORD']
13gem_path = Gem.source_index.find_name(target_gem).last.full_gem_path
14%x{open -a TextMate #{gem_path}}
15</string>
13if gem_spec = Gem.source_index.find_name(target_gem).last
14 gem_path = gem_spec.full_gem_path
15 %x{open -a TextMate #{gem_path}}
16else
17 puts "No RubyGem with name '#{target_gem}'"
18end</string>
1619 <key>fallbackInput</key>
1720 <string>word</string>
1821 <key>input</key>
toggle raw diff