D
Dmitry V. Sabanin
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.
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.