Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Syck 0.51 and RubyGems 0.8.8 problem

0 views
Skip to first unread message

Dmitry V. Sabanin

unread,
Mar 25, 2005, 6:25:38 AM3/25/05
to
I've updated Syck to 0.51 after getting segfaults with old YAML parser
with Rails. It worked fine and I like it. But after this, I can't use
rubygems anymore. This is what I get when I'm trying to install it:

Successfully built RubyGem
Name: sources
Version: 0.0.1
File: sources-0.0.1.gem
hook /home/software/ruby/rubygems/post-install.rb failed:
undefined method `full_name' for nil:NilClass
Try 'ruby setup.rb --help' for detailed usage.

After spending two hours in RubyGems internals I wrote following code
that shows my problem:
spec.class == Gem::Specification
# Trying to dump Gem::Specification instance to YAML
src = YAML::dump(spec)
res = YAML::load(src)
res.class == Object
# This is why everything goes insane:
spec.class != res.class

It seems to me that Syck 0.51 couldn't properly instantiate class from
the dump, and Gems had no idea that this could happen.

Any ideas how to fix that? This problem is really made me stuck.

--
sdmitry -=- Dmitry V. Sabanin
http://muravey.net


why the lucky stiff

unread,
Mar 25, 2005, 11:05:59 AM3/25/05
to
Dmitry V. Sabanin wrote:

>It seems to me that Syck 0.51 couldn't properly instantiate class from
>the dump, and Gems had no idea that this could happen.
>
>

The Syck 0.51 loader is unfinished. It is only barely usable. The core
is much stabler, but due to API changes, the Ruby extension has required
a partial rewrite. I'm very close to another release. I'll let you
know when I have a release candidate in CVS.

_why


0 new messages