Skip to main content

Ruby: Notes

Ruby logo

Ruby - A programmer's best friend.

Ruby is simple in appearance, but is very complex inside, just like our human body. — Yukihiro “Matz” Matsumoto

Download and extract: https://rubyinstaller.org/downloads/

Add to PATH environment variable.

ruby --version
gem --version
irb : Interactive Ruby Shell

Install Ruby on Windows 10/11 using winget

PS F:\Projects\github\lthwruby> winget search ruby
Name                                   Id                                   Version      Match     Source
----------------------------------------------------------------------------------------------------------
Ruby Formatter                         9NN0RJL0D2NK                         Unknown                msstore
Ruby On Rails-simpleNeasyApp by WAGmob 9WZDNCRDN7Q9                         Unknown                msstore
InstantRuby                            9WZDNCRDC1W3                         Unknown                msstore
RubyGo                                 9P55T10JZJBC                         Unknown                msstore
Sonic Pi                               SonicPi.SonicPi                      3.3.1        Tag: ruby winget
Ruby 3.1 with MSYS2                    RubyInstallerTeam.RubyWithDevKit.3.1 3.1.2-1      Tag: ruby winget
Ruby 3.0 with MSYS2                    RubyInstallerTeam.RubyWithDevKit.3.0 3.0.4-1      Tag: ruby winget
Ruby 2.7 with MSYS2                    RubyInstallerTeam.RubyWithDevKit.2.7 2.7.6-1      Tag: ruby winget
Ruby 2.6 with MSYS2                    RubyInstallerTeam.RubyWithDevKit.2.6 2.6.10-1     Tag: ruby winget
Ruby 3.1                               RubyInstallerTeam.Ruby.3.1           3.1.2-1      Tag: ruby winget
Ruby 3.0                               RubyInstallerTeam.Ruby.3.0           3.0.4-1      Tag: ruby winget
Ruby 2.7                               RubyInstallerTeam.Ruby.2.7           2.7.6-1      Tag: ruby winget
Ruby 2.6                               RubyInstallerTeam.Ruby.2.6           2.6.10-1     Tag: ruby winget
MAMP & MAMP PRO                        MAMP.MAMP                            4.2.0        Tag: ruby winget
Laragon                                LeNgocKhoa.Laragon                   5.0.0.210523 Tag: ruby winget
RubyMine (EAP)                         JetBrains.RubyMine.EarlyAccess       223.4884.72  Tag: ruby winget
RubyMine                               JetBrains.RubyMine                   2022.2.3     Tag: ruby winget
EditPlus                               ES-Computing.EditPlus                5.6          Tag: ruby winget
PS F:\Projects\github\lthwruby> winget install RubyInstallerTeam.Ruby.3.1
Found Ruby 3.1 [RubyInstallerTeam.Ruby.3.1] Version 3.1.2-1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.2-1/rubyinstaller-3.1.2-1-x64.exe
  ██████████████████████████████  13.9 MB / 13.9 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS F:\Projects\github\lthwruby>

PS F:\Projects\github\lthwruby> ruby --version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
PS F:\Projects\github\lthwruby> gem --version
3.3.7

PS F:\Projects\github\lthwruby> gem which bundler
C:/Ruby31-x64/lib/ruby/3.1.0/bundler.rb
PS F:\Projects\github\lthwruby>

Learn Ruby | Codecademy

Ruby Tutorial | Tutorialspoint

Practice

>>> THM | Red Stone One Carat

Popular posts from this blog

Windows 10: Install SuSE Linux Enterprise - SLES

With Microsoft-Windows-Subsystem-Linux feature enabled, we can install Linux distributions on Windows 10.

Microsoft AI Shell: Notes

AI Shell

[MicrosoftVisualStudio]: Microsoft Visual Studio shortcut keys

Source:  http://visualstudioshortcuts.com/2015/ Analyze Navigate Backward Shift+Alt+3 Navigate Forward Shift+Alt+4 Architecture New Code Map Ctrl+\, Ctrl+O New UMLor Layer Diagram Ctrl+\, Ctrl+N Architecture Context Menus Add Node Ins Both Dependencies B Incoming Dependencies I Outgoing Dependencies O New Comment Ctrl+Shift+K Ctrl+E, C Remove Del Rename F2 Build Build Solution Ctrl+Shift+B Cancel Ctrl+Break Compile Ctrl+F7 Run Code Analysison Solution Alt+F11 Class Diagram Collapse Num - Expand Num + Class View Context Menus Properties Alt+Enter Misc Commit All Edits Shift+Alt+U Move Left Edgetotheleft Ctrl+Shift+, Move Left Edgetotheright Ctrl+Shift+. Move Right Edgetotheleft Ctrl+Shift+Alt+, Move Right Edgetotheright Ctrl+Shift+Alt+. TSql Editor Clone Query Ctrl+Alt+N TSql Editor Database Combo Shift+Alt+PgDn View File In Script Panel Shift+Alt+PgDn Debug Apply Code Changes Alt+F10 Attachto Process C...