tag:help.rubygems.org,2010-01-19:/discussions/problems/474-gem-uninstall-rspec-doesnt-remove-binrspec-binrspecbat-on-windowsRubyGems.org: Discussion 2011-05-23T21:35:00Ztag:help.rubygems.org,2010-01-19:Comment/50317662011-01-30T19:25:38Z2011-01-30T19:25:38Z"gem uninstall rspec" doesn't remove bin/rspec + bin/rspec.bat on Windows<div><p>"rspec" binary is inside rspec-core gem, not rspec:
C:\Users\Luis>ruby -v<br>
ruby 1.8.7 (2010-12-23 patchlevel 330) [i386-mingw32]</p>
<p>C:\Users\Luis>gem list</p>
<p><strong><em>LOCAL GEMS</em></strong></p>
<p>C:\Users\Luis>gem install rspec<br>
Fetching: rspec-core-2.4.0.gem (100%)<br></p>
<hr>
<p>Thank you for installing rspec-core-2.4.0</p>
<p>Please be sure to look at the upgrade instructions to see what
might have changed since the last release:</p>
<p><a href=
"http://github.com/rspec/rspec-core/blob/master/Upgrade.markdown">http://github.com/rspec/rspec-core/blob/master/Upgrade.markdown</a></p>
<hr>
<p>Fetching: diff-lcs-1.1.2.gem (100%)<br>
Fetching: rspec-expectations-2.4.0.gem (100%)<br>
Fetching: rspec-mocks-2.4.0.gem (100%)<br>
Fetching: rspec-2.4.0.gem (100%)<br>
Successfully installed rspec-core-2.4.0<br>
Successfully installed diff-lcs-1.1.2<br>
Successfully installed rspec-expectations-2.4.0<br>
Successfully installed rspec-mocks-2.4.0<br>
Successfully installed rspec-2.4.0<br>
5 gems installed</p>
<p>C:\Users\Luis>rspec --version<br>
2.4.0</p>
<p>C:\Users\Luis>where rspec<br>
C:\Users\Luis.gem\ruby\x86-mingw32\1.8\bin\rspec<br>
C:\Users\Luis.gem\ruby\x86-mingw32\1.8\bin\rspec.bat</p>
<p>C:\Users\Luis>gem uninstall rspec<br>
Successfully uninstalled rspec-2.4.0</p>
<p>C:\Users\Luis>where rspec<br>
C:\Users\Luis.gem\ruby\x86-mingw32\1.8\bin\rspec<br>
C:\Users\Luis.gem\ruby\x86-mingw32\1.8\bin\rspec.bat</p>
<p>C:\Users\Luis>gem uninstall rspec-core<br>
Remove executables:<br></p>
<pre>
<code> autospec, rspec</code>
</pre>
<p>in addition to the gem? [Yn]<br>
Removing autospec<br>
Removing rspec<br>
Successfully uninstalled rspec-core-2.4.0</p>
<p>Also, help.rubygems.org is aimed at support of rubygems.org,
not<br>
reporting bugs of RubyGems itself.</p>
<p>For that, you have RubyGems tracker:</p>
<p><a href=
"http://rubyforge.org/projects/rubygems">http://rubyforge.org/projects/rubygems</a></p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/50317662011-01-30T19:27:52Z2011-01-30T19:27:52Z"gem uninstall rspec" doesn't remove bin/rspec + bin/rspec.bat on Windows<div><p>Thanks for the link to the bug tracker - I couldn't figure out
what the URL was from the repo README. It only mentions help.</p>
<p>I guess this is a big in railsinstaller instead?</p></div>drnicwilliamstag:help.rubygems.org,2010-01-19:Comment/50317662011-01-30T19:32:23Z2011-01-30T19:32:23Z"gem uninstall rspec" doesn't remove bin/rspec + bin/rspec.bat on Windows<div><p>There is a bug report for that :-P</p>
<p><a href=
"http://rubyforge.org/tracker/index.php?func=detail&aid=28825&group_id=126&atid=575">
http://rubyforge.org/tracker/index.php?func=detail&amp;aid=28825&am...</a></p>
<p>The error you're seeing depend on where the gem was installed,
if was<br>
installed in user install directory or inside the Ruby version,
once<br>
you remove the gem will have this side effect of leaving the
binaries.</p>
<p>But as I showed to you, the binaries are inside rspec-core gem,
not<br>
rspec, so removing rspec will not remove the binaries.</p>
<p>Dunno if RVM was not interfering in your OSX testing, but if you
show<br>
me the exact "gem env" information for both systems I can
better<br>
reproduce the issue (if there is any).</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/50317662011-01-30T19:43:54Z2011-01-30T19:43:54Z"gem uninstall rspec" doesn't remove bin/rspec + bin/rspec.bat on Windows<div><p>Ahh, is that what you showed me. Sorry, I didn't see that in
your demo. I<br>
just thought you were showing me that it worked on your
machine.</p>
<p>Sorry, I didn't know the rspec bin wasn't in the rspec gem. Doh.
Sorry.</p>
<p>Nic</p>
<p>On Sun, Jan 30, 2011 at 11:32 AM, Luis Lavena <<br>
<a href=
"mailto:tender+d1c7db508a8d6106f8a7c3a655444a01c754941bf@tenderapp.com">
tender+d1c7db508a8d6106f8a7c3a655444a01c754941bf@tenderapp.com</a><<a href="mailto:tender%2Bd1c7db508a8d6106f8a7c3a655444a01c754941bf@tenderapp.com">tender%2Bd1c7db508a8d6106f8a7c3a655444a01c754941bf@tenderapp.com</a>><br></p>
<blockquote>
<p>wrote:</p>
</blockquote></div>drnicwilliamstag:help.rubygems.org,2010-01-19:Comment/50317662011-05-23T21:34:57Z2011-05-23T21:34:57Z"gem uninstall rspec" doesn't remove bin/rspec + bin/rspec.bat on Windows<div><p>Hello, this issue seems to be clarified, closing this out.</p></div>Luis Lavena