rubygems/rubygems — Issue #238: Can't install our gem
Author: aledalgrande
Created: 2011-12-15 17:39:04+00:00
State: open

Hi, I have a problem with a gem we created that I can't seem to solve. We have two versions of this gem: it was initially created for JRuby and now, adding some conditionals in the gemspec, we have a MRI Ruby one.

But when I try to download this from our server, it just fails. I have it working if I download the file manually and then gem install it.

```
$ bundle
Fetching source index for http://rubygems.org/
Fetching source index for http://xxx.xxx/gemserver/

/Users/ale/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/specification.rb:647:in `load': undefined class/module YAML::Yecht:: (ArgumentError)
from /Users/ale/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/specification.rb:647:in `_load'
from /Users/ale/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:134:in `load'
from /Users/ale/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:134:in `fetch_spec'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/remote_specification.rb:47:in `_remote_specification'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/remote_specification.rb:53:in `method_missing'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/spec_set.rb:129:in `tsort_each_child'
from /Users/ale/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/tsort.rb:204:in `each_strongly_connected_component_from'
from /Users/ale/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/tsort.rb:183:in `each_strongly_connected_component'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/spec_set.rb:125:in `tsort_each_node'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/spec_set.rb:125:in `each'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/spec_set.rb:125:in `tsort_each_node'
from /Users/ale/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/tsort.rb:181:in `each_strongly_connected_component'
from /Users/ale/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/tsort.rb:149:in `tsort_each'
from /Users/ale/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/tsort.rb:136:in `tsort'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/spec_set.rb:108:in `sorted'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/installer.rb:49:in `run'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/installer.rb:8:in `install'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/cli.rb:219:in `install'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `send'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.21/bin/bundle:13
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/bin/bundle:19:in `load'
from /Users/ale/.rvm/gems/ruby-1.8.7-p352/bin/bundle:19
```

Also, using the _gem_ command, it gives a really strange output. I checked the file was on the server and it is. The index is regenerated with every release.

```
$ gem install my-gem
ERROR: Could not find a valid gem 'my-gem' (>= 0) in any repository
```

Is this related to Rubygems?
Thanks.