germonkey.blogg.se

Use ruby in visual studio code tutorial
Use ruby in visual studio code tutorial








use ruby in visual studio code tutorial

If you already have a favorite code editor (e.g., Vim, TextMate, Emacs, Notepad++, etc.) you can use it to work through this book. A code editor is used to create plain text documents with no styling or formatting. You'll be using a code editor to write code. You should see a print out of the version of RubyGems you are using.īefore you begin, make sure to verify that typing in ruby -v in your terminal returns version 1.9.3 or higher. RubyGems comes with Ruby 1.9.3 and higher, so once you have Ruby installed you can verify from terminal with gem -v. We also recommend installing DevKit from the same site. If you are on a Windows machine, we recommend using RubyInstaller to install Ruby. That leaves Mac users with one choice: install with Homebrew. Building from source is also not a good idea for beginners. Don't use rvm or rbenv if you aren't proficient from the command line and can't debug installation issues on your own. These are Ruby version managers that allow you to run different versions of ruby side by side, and allow you to switch between them freely. If you're technically inclined, you can try rvm or rbenv. If you refer to the official Ruby installation documentation, you'll see that there are 4 choices: Therefore, even though your system comes with Ruby, you still need to install Ruby again. Some system Ruby installations, especially on Mac, have limited permissions and will impede your ability to install gems, upgrade Ruby, and perform other development tasks. You should see a print out of the version of Ruby that is installed on your machine. Go to your command line or terminal application and enter ruby -v. If you are working on a Mac or Linux machine, you may have Ruby installed already. If you cannot, a more recent version will probably give you the least trouble. You may experience some issues with versions older than 2.5.0 or newer than 2.7.5, so install 2.7.5 if you can. We recommend Ruby 2.7.5 as the best choice. We recommend that you use Ruby version 2.5.x, 2.6.x, or 2.7.x. For the purposes of this book, you'll need to have Ruby and RubyGems installed on your machine.










Use ruby in visual studio code tutorial