[Rubygems-developers] [PATCH] fix --alien

Chad Fowler chad at chadfowler.com
Sat Apr 3 21:38:51 EST 2004


On 3/4/2004, at 2:30 PM, Mauricio Fernández wrote:

>
> This must have been broken at the time gems were moved to their own 
> subdir.
>
> diff -r -u rubygems/lib/rubygems/validator.rb 
> rubygems.new/lib/rubygems/validator.rb
> --- rubygems/lib/rubygems/validator.rb  2004-04-01 02:13:20.000000000 
> +0200
> +++ rubygems.new/lib/rubygems/validator.rb      2004-04-03 
> 21:24:48.000000000 +0200
> @@ -81,7 +81,7 @@
>          errors[gem_name] ||= []
>          gem_path = File.join(Gem.dir, "cache", gem_spec.full_name) + 
> ".gem"
>          spec_path = File.join(Gem.dir, "specifications", 
> gem_spec.full_name) + ".gemspec"
> -        gem_directory = File.join(Gem.dir, gem_spec.full_name)
> +        gem_directory = File.join(Gem.dir, "gems", gem_spec.full_name)
>
>          installed_files = find_files_for_gem(gem_directory)
>          puts gem_directory
>

Thanks.  I've written this alien thing to be completely un-testable.  
It's been high on the refactor list since it was created. :)




More information about the Rubygems-developers mailing list