I was going through some of my personal projects, some were on Ruby 3.0.0, some were on Ruby 3.0.1. When ever I pushed code for my startup (I hope it won’t become a fucked up), it said ‘common upgrade to Ruby 3.0.2’. Yes it should be done, there are some security fixes that you should not ignore, so do upgrade.

I fired up my terminal and typed asdf install ruby 3.0.2, for some suprising reason it said 3.0.2 does not exists, that is the formulas are not updated may be. I even thought of removing asdf and move to trusted RVM, but then digging documentation, I gave this command

$ ASDF_RUBY_BUILD_VERSION=master arch -x86_64  asdf install ruby 3.0.2

I think this ASDF_RUBY_BUILD_VERSION=master tells that to pull from master branch of asdf ruby, so its kinda latest, and arch -x86_64 tells that we must compile it like X86 architecture and not for Mac M1.

With this it installed 3.0.2 like charm and I ported my project from 3.0.1 to 3.0.2 and pushed it.