lib/rubygems/commands/read_command.rb in open_gem-1.3.1 vs lib/rubygems/commands/read_command.rb in open_gem-1.4.0

- old
+ new

@@ -10,10 +10,11 @@ :latest=> false add_command_option "Application to read rdoc with" add_latest_version_option add_version_option + add_exact_match_option end def arguments # :nodoc: "GEMNAME gem to read" end @@ -51,10 +52,10 @@ def read_gem(path) command_parts = Shellwords.shellwords(rdoc_reader) command_parts << path success = system(*command_parts) if !success - raise Gem::CommandLineError, "Could not run '#{editor} #{path}', exit code: #{$?.exitstatus}" + raise Gem::CommandLineError, "Could not run '#{rdoc_reader} #{path}', exit code: #{$?.exitstatus}" end end end \ No newline at end of file