gem yank not working
Hello, I want to update the package I put up for https://rubygems.org/gems/vtkCharts/versions/0.1.0-x86-mswin32-60
However, gem push tells me:
C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem push
vtkCharts-0.1.0-x86-mswin32-60.gem
Pushing gem to RubyGems.org...
Repushing of gem versions is not allowed.
Please use gem yank to remove bad gem releases.
When I try to gem yank, I get:
C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem yank
vtkCharts -v 0.1.0
Yanking gem from RubyGems.org...
The version 0.1.0 does not exist.
The version listed for this package on rubygems is 0.1.0, what am I doing wrong? Also, why isn't there a gem push --force-overwrite option?
Thanks a lot,
Dan
Support Staff 2 Posted by Nick Quaranto on 24 Feb, 2011 03:28 PM
Your gem has a "platform" option, so you need to yank with
-p x86-mswin32-60.Why we don't allow you to overwrite gems:
3 Posted by Dan Macumber on 24 Feb, 2011 03:31 PM
That didn't work either:
C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem yank vtkCharts -v 0.1.0 -p x86-mswin32-60
ERROR: While executing gem ... (OptionParser::InvalidOption)
C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem -v
1.3.7
Support Staff 4 Posted by Nick Quaranto on 24 Feb, 2011 03:36 PM
What version of the
gemcuttergem do you have?gem list gemcutter.gem yankis not a part of RubyGems proper yet.5 Posted by Dan Macumber on 24 Feb, 2011 03:37 PM
C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem update gemcutter
Updating installed gems
Nothing to update
C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem list gemcutter
LOCAL GEMS
gemcutter (0.6.1)
Support Staff 6 Posted by Nick Quaranto on 24 Feb, 2011 03:41 PM
Maybe I haven't released the code with that flag...I need to look into it more.
In any case, I just hopped into our db and yanked it, so you're all set.
7 Posted by Dan Macumber on 24 Feb, 2011 03:50 PM
Thanks a lot,I see that the version has been yanked but push is still not working:
C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem push vtkCharts-0.1.0-x86-mswin32-60.gem
Pushing gem to RubyGems.org...
Repushing of gem versions is not allowed.
Please use
gem yankto remove bad gem releases.Support Staff 8 Posted by Luis Lavena on 24 Feb, 2011 03:52 PM
You can't re-release the same version, even if yanked.