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
Thanks Ross, I adopt your workaround and confirmed that
my *.gem package is listed by ‘gem list --remote’.
You’re welcome, but we should really thank the person who posted it
before, when I was stuck on this same thing
(As I say, I can’t find it in the archive, but thanks again whoever it
was).
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.