On Sat, 17 Dec 2005 06:34:50 -0000, kwatch <kwa / kuwata-lab.com> wrote:
> How to tell rubygems to update gems package version?
>
I just had a look through your Gem, and it looks to me like you've been
hit with an incompatibility between YAML and Ruby 1.8.3. It was discussed
a bit here recently but I can't find the thread :(
If that does sound like you (on Ruby 1.8.3) then you could try the
following workaround (I have it in my Rakefile):
# Quick fix for Ruby 1.8.3 / YAML bug
if (RUBY_VERSION == '1.8.3')
def spec.to_yaml
out = super
out = '--- ' + out unless out =~ /^---/
out
end
end
Hope that helps,
Ross
--
Ross Bamford - rosco / roscopeco.remove.co.uk