Problem with repos

Greetings,

I have three development repos in my Linux OS, all of them are using
different ruby versions. What's the correct stance to manage the different
ruby and libraries?

Thanks.
Piper

I would recommend asdf. Other possible solutions are rvm and rbenv (the last one is from what I know mostly focused on macOS). Myself I use none of them, I only use Ruby 3.0 provided by the distribution.

···

On 11/18/21 07:46, Piper H wrote:

Greetings,

I have three development repos in my Linux OS, all of them are using different ruby versions. What's the correct stance to manage the different ruby and libraries?

Thanks.
Piper

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

Thank you. I was checking the doc of rbenv:

If I have met the problem I will let you know.

Regards

···

On Thu, Nov 18, 2021 at 2:53 PM hmdne <hmdne@airmail.cc> wrote:

I would recommend asdf. Other possible solutions are rvm and rbenv (the
last one is from what I know mostly focused on macOS). Myself I use none
of them, I only use Ruby 3.0 provided by the distribution.

On 11/18/21 07:46, Piper H wrote:
> Greetings,
>
> I have three development repos in my Linux OS, all of them are using
> different ruby versions. What's the correct stance to manage the
> different ruby and libraries?
>
> Thanks.
> Piper
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <ruby-talk list: member options login page>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

I've used both rbenv and rvm, which are the two popular version managers.
Personally, I prefer RVM and I use it pretty much everywhere I use ruby.

The nice thing about rvm is, you create two files in a given directory,
.ruby-version
.ruby-gemset

and then you integrate a script into your main bash / zsh / shell profile.
With those two pieces in place, RVM will adjust seamlessly between
dependency setups as you change directories. Works awesome.

Library management is definitely one of Ruby's strengths so if it becomes
difficult for you let us know !!

···

On Thu, Nov 18, 2021 at 1:42 AM Piper H <potthua@gmail.com> wrote:

Thank you. I was checking the doc of rbenv:
GitHub - rbenv/rbenv: Manage your app's Ruby environment

If I have met the problem I will let you know.

Regards

On Thu, Nov 18, 2021 at 2:53 PM hmdne <hmdne@airmail.cc> wrote:

I would recommend asdf. Other possible solutions are rvm and rbenv (the
last one is from what I know mostly focused on macOS). Myself I use none
of them, I only use Ruby 3.0 provided by the distribution.

On 11/18/21 07:46, Piper H wrote:
> Greetings,
>
> I have three development repos in my Linux OS, all of them are using
> different ruby versions. What's the correct stance to manage the
> different ruby and libraries?
>
> Thanks.
> Piper
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <ruby-talk list: member options login page>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

--
A musician must make music, an artist must paint, a poet must write, if he
is to be ultimately at peace with himself.
- Abraham Maslow

I found rbenv works perfectly for me. It also changes the gem tool to the
corresponding version as new installed ruby.

Thanks.

···

On Thu, Nov 18, 2021 at 6:23 PM Sean Felipe Wolfe <ether.joe@gmail.com> wrote:

I've used both rbenv and rvm, which are the two popular version managers.
Personally, I prefer RVM and I use it pretty much everywhere I use ruby.

The nice thing about rvm is, you create two files in a given directory,
.ruby-version
.ruby-gemset

and then you integrate a script into your main bash / zsh / shell profile.
With those two pieces in place, RVM will adjust seamlessly between
dependency setups as you change directories. Works awesome.

Library management is definitely one of Ruby's strengths so if it becomes
difficult for you let us know !!

On Thu, Nov 18, 2021 at 1:42 AM Piper H <potthua@gmail.com> wrote:

Thank you. I was checking the doc of rbenv:
GitHub - rbenv/rbenv: Manage your app's Ruby environment

If I have met the problem I will let you know.

Regards

On Thu, Nov 18, 2021 at 2:53 PM hmdne <hmdne@airmail.cc> wrote:

I would recommend asdf. Other possible solutions are rvm and rbenv (the
last one is from what I know mostly focused on macOS). Myself I use none
of them, I only use Ruby 3.0 provided by the distribution.

On 11/18/21 07:46, Piper H wrote:
> Greetings,
>
> I have three development repos in my Linux OS, all of them are using
> different ruby versions. What's the correct stance to manage the
> different ruby and libraries?
>
> Thanks.
> Piper
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <ruby-talk list: member options login page>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
<ruby-talk list: member options login page>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

--
A musician must make music, an artist must paint, a poet must write, if he
is to be ultimately at peace with himself.
- Abraham Maslow

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>