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

Linux command: lastlog

lastlog command reports the most recent login of all users or of a given user. NAME lastlog - reports the most recent login of all users or of a given user SYNOPSIS lastlog [options] DESCRIPTION lastlog formats and prints the contents of the last login log /var/log/lastlog file. The login-name, port, and last login time will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in /etc/passwd. OPTIONS The options which apply to the lastlog command are: -b, --before DAYS Print only lastlog records older than DAYS. -h, --help Display help message and exit. -R, --root CHROOT_DIR Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. -t, --time DAYS Print the lastlog records more recent than DAYS. -u, --user LOGIN|RANGE Print the ...

Powershell: Get-ChildItem

List, search/find files and directories with Get-ChildItem cmdlet.

Microsoft Windows Server 2012 R2 Standard Evaluation Product Key

Microsoft Windows Server 2012 R2 Standard Evaluation D2N9P-3P6X9-2R39C-7RTCD-MDVJX DBGBW-NPF86-BJVTX-K3WKJ-MTB6V