How to completely uninstall RSpec version 3+?

I am trying to teach myself RSpec and I am working on a lesson that
requires a version of RSpec that is less than 3. I currently have the
following versions for RSpec:

rspec (3.3.0, 2.99.0, 2.9.0)
rspec-core (3.3.2, 2.99.2, 2.9.0)
rspec-expectations (3.3.1, 2.99.2, 2.9.1)
rspec-mocks (3.3.2, 2.99.4, 2.9.0)
rspec-support (3.3.0)

I would like to uninstall all versions 3 or greater so I can work
through this project. I have been trying for most of today and I just
can’t seem to figure out how to uninstall just RSpec so I am left with
only less than version 3. Any help is so appreciated!

On Mon, Jul 27, 2015 at 11:09 AM, Sage J. [email protected]
wrote:

I would like to uninstall all versions 3 or greater so I can work
through this project. I have been trying for most of today and I just
can’t seem to figure out how to uninstall just RSpec so I am left with
only less than version 3. Any help is so appreciated!

?? Have you tried gem help? Because gem uninstall rspec seems
like a pretty obvious approach…


Hassan S. ------------------------ [email protected]

twitter: @hassan
Consulting Availability : Silicon Valley or remote

Never install a gem unless you are entirely certain that it will be
consistent with your environment. There are just so many resource that
support that effort. Nevertheless…

You need to look at command
gem uninstall respec

and then documentation to install the version you require.

will do – thanks!

On Mon, Jul 27, 2015 at 11:39 PM, Sage J. [email protected]
wrote:

I would like to uninstall all versions 3 or greater so I can work
through this project. I have been trying for most of today and I just

​Use the command rvm gemset create to create a fresh new gemset where
you
can install the version of your choice. To move to that gemset, just
type
rvm use 2.0.0@GemsetName where 2.0.0 is the binary ruby version and
GemsetName is your gemset.

This allows you to dynamically switch between gemsets and not worry
about
​uninstalling and installing individual gems and their dependencies

Thanks,
Ganesh

Hassan,

Well that was kind of fun, you and I posted at almost the same time with
the same information. I feel this humility that you and I should post
with
the same information…

Liz

On 27 July 2015 at 19:38, Hassan S. [email protected]
wrote:

On Mon, Jul 27, 2015 at 11:09 AM, Sage J. [email protected] wrote:

I would like to uninstall all versions 3 or greater so I can work
through this project. I have been trying for most of today and I just
can’t seem to figure out how to uninstall just RSpec so I am left with
only less than version 3. Any help is so appreciated!

?? Have you tried gem help? Because gem uninstall rspec seems
like a pretty obvious approach…

Would specifying the appropriate version in Gemfile and running bundle
install achieve the desired result?

Colin

Wow! Never heard about.