diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | lib/rubygems/commands/contents_command.rb | 4 | ||||
-rw-r--r-- | lib/rubygems/defaults.rb | 7 | ||||
-rw-r--r-- | lib/rubygems/path_support.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_commands_contents_command.rb | 2 |
5 files changed, 20 insertions, 4 deletions
@@ -1,3 +1,12 @@ Fri Nov 30 08:34:03 2012 Eric Hodel <[email protected]> * lib/rdoc/generator/darkfish.rb: Silenced warning @@ -75,14 +75,14 @@ class Gem::Commands::ContentsCommand < Gem::Command if Gem.configuration.verbose then say "\nDirectories searched:" - spec_dirs.each { |dir| say dir } end terminate_interaction 1 if gem_names.length == 1 end if spec.default_gem? - files = spec.files.map do |file| case file when /\A#{spec.bindir}\// [Gem::ConfigMap[:bindir], $POSTMATCH] @@ -58,6 +58,13 @@ module Gem end ## # Default gem load path def self.default_path @@ -54,7 +54,7 @@ class Gem::PathSupport if gpaths.kind_of?(Array) gem_path = gpaths.dup else - gem_path = gpaths.split(File::PATH_SEPARATOR) end if File::ALT_SEPARATOR then @@ -146,7 +146,7 @@ lib/foo.rb #{Gem::ConfigMap[:archdir]}/default_gem.so EOF - assert_equal expected.lines.sort, @ui.output.lines.sort assert_equal "", @ui.error end |