tag:help.rubygems.org,2010-01-19:/discussions/problems/498-gem-yank-not-workingRubyGems.org: Discussion 2015-08-17T19:46:21Ztag:help.rubygems.org,2010-01-19:Comment/55535982011-02-24T15:28:32Z2011-02-24T15:28:32Zgem yank not working<div><p>Your gem has a "platform" option, so you need to yank with
<code>-p x86-mswin32-60</code>.</p>
<p>Why we don't allow you to overwrite gems:</p>
<ul>
<li>Mirrors that comb the site (with gem mirror) would be out of
sync.</li>
<li>Clients can't verify the contents of gems (via MD5 or something
similar) so they could download different versions, expecting the
same code.</li>
<li>You're not going to run out of gem versions, just push a new
one.</li>
</ul></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/55535982011-02-24T15:31:00Z2011-02-24T15:31:01Zgem yank not working<div><p>That didn't work either:</p>
<p>C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem yank
vtkCharts -v 0.1.0 -p x86-mswin32-60<br>
ERROR: While executing gem ...
(OptionParser::InvalidOption)<br></p>
<pre>
<code>invalid option: -p</code>
</pre>
<p>C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem -v<br>
1.3.7</p></div>Dan Macumbertag:help.rubygems.org,2010-01-19:Comment/55535982011-02-24T15:36:43Z2011-02-24T15:36:43Zgem yank not working<div><p>What version of the <code>gemcutter</code> gem do you have?
<code>gem list gemcutter</code>. <code>gem yank</code> is not a
part of RubyGems proper yet.</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/55535982011-02-24T15:37:49Z2011-02-24T15:37:50Zgem yank not working<div><p>C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem update
gemcutter<br>
Updating installed gems<br>
Nothing to update</p>
<p>C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem list
gemcutter</p>
<p><strong><em>LOCAL GEMS</em></strong></p>
<p>gemcutter (0.6.1)</p></div>Dan Macumbertag:help.rubygems.org,2010-01-19:Comment/55535982011-02-24T15:41:25Z2011-02-24T15:41:25Zgem yank not working<div><p>Maybe I haven't released the code with that flag...I need to
look into it more.</p>
<p>In any case, I just hopped into our db and yanked it, so you're
all set.</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/55535982011-02-24T15:50:24Z2011-02-24T15:50:26Zgem yank not working<div><p>Thanks a lot,I see that the version has been yanked but push is
still not working:</p>
<p>C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem push
vtkCharts-0.1.0-x86-mswin32-60.gem<br>
Pushing gem to RubyGems.org...<br>
Repushing of gem versions is not allowed.<br>
Please use <code>gem yank</code> to remove bad gem releases.</p></div>Dan Macumbertag:help.rubygems.org,2010-01-19:Comment/55535982011-02-24T15:52:37Z2011-02-24T15:52:37Zgem yank not working<div><p>You can't re-release the same version, even if yanked.</p></div>Luis Lavena