[Rubygems-developers] [BUG?] 'No metadata found' using gems 0.8.4

Jim Weirich jim at weirichhouse.org
Tue Jan 4 23:01:41 EST 2005

On Tuesday 04 January 2005 05:45 pm, Assaph Mehr wrote:
> Hi,
> Due to unfortunate setup at work (authenticating proxy), I have to
> manually download .gem files and install locally. Using RubyGems
> 0.8.4, I am no longer able to do that for new gems:
> c:\Tools\Ruby\gems>gem i rubyslippers-0.93.gem
> Attempting local installation of 'rubyslippers-0.93.gem'
> ERROR:  Error installing gem rubyslippers-0.93.gem[.gem]: No metadata
> found!

How ... interesting :)

I just ran the above command on my Debian box and it had no problems.  Is the 
downloaded file corrupted?  Run the following script on the rubyslippers gem 
and see what you get.

  #!/usr/bin/env ruby

  require 'md5'

  ARGV.each do |file_name|
    data = open(file_name, 'rb') { |f| f.read }
    md5 = MD5.new(data)
    printf "%s %s\n", md5.hexdigest, file_name

I get ...

e317f49d28b04ddfc68e4a2480b9ea37 rubyslippers-0.93.gem

-- Jim Weirich    jim at weirichhouse.org     http://onestepback.org
"Beware of bugs in the above code; I have only proved it correct, 
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

More information about the Rubygems-developers mailing list