Learn Ruby the Hard Way - Read for Free [https://learnrubythehardway.org/]
Get default specification directory path
PS C:\Program Files\Vagrant\embedded\mingw64\bin> .\irb
irb(main):001> Gem.default_specifications_dir
=> "C:/Program Files/Vagrant/embedded/mingw64/lib/ruby/gems/3.3.0/specifications/default"
irb(main):002>