Friday, December 30, 2021

Ruby 2.4.0 is Released, Available PPA For Ubuntu and Linux Mint Derivatives

Ruby is a multiplatform, freely distributed, feature rich and open source command-line software that has been designed from the ground up to provide a powerful programming language for developers who want to build application in Ruby.

Features, lots of features

Key features include a simple syntax inspired by Ada and Eiffel, operating system independent threading, exception handling capabilities for handling errors, numerous operators, a pure and complete object oriented language, as well as support for adding methods to a class.

Additionally, Ruby features a single inheritance only, true closures, blocks in its syntax, a true mark-and-sweep garbage collector, support for writing C extensions, integers, support for loading extension libraries dynamically, and it doesn’t need variable declarations.

Ruby 2.4.0 is the first stable release of the Ruby 2.4 series. It introduces many new features, for example:

Introduce hash table improvement (by Vladimir Makarov)
Improve the internal structure of hash table (st_table) by introducing open addressing and an inclusion order array. This improvement has been discussed with many people, especially with Yura Sokolov.

Binding#irb: Start a REPL session similar to binding.pry
While you are debugging, you may often use p to see the value of variables. With pry you can use binding.pry in your application to launch a REPL and run any Ruby code. r56624 introduces binding.irb which behaves like that with irb.

Unify Fixnum and Bignum into Integer
Though ISO/IEC 30170:2012 doesn’t specify details of the Integer class, Ruby had two visible Integer classes: Fixnum and Bignum. Ruby 2.4 unifies them into Integer. All C extensions which touch the Fixnum or Bignum class need to be fixed.

Read more About Ruby 2.4.0 Released

How to Install Ruby 2.4.01 on Ubuntu Derivative System via PPA :

To Install/Update Ruby 2.4.0 on Ubuntu 16.10 Yakkety Yak, Ubuntu 16.04 Xenial Xerus, Ubuntu 15.10 wily werewolf, Ubuntu 15.04 vivid Vervet, ubuntu 14.10 Utopic Unicorn, Ubuntu 14.04 Trusty Tahr (LTS), Ubuntu 13.10/13.04/12.04, Linux Mint 18.1, Linux Mint 18 Sarah, Linux Mint 17.1 Rebecca, Linux Mint 17 Qiana, Linux Mint 13 Maya, Pinguy OS 14.04, Elementary OS 0.3 Freya, Elementary OS 0.2 Luna, Peppermint Five, Deepin 2014, LXLE 14.04, Linux Lite 2.0, Linux Lite 2.2 and other Ubuntu derivative systems, open a new Terminal window and bash (get it?) in the following commands:

Add Depedencies for Ubuntu :
sudo apt-get install software-properties-common

Adding  Repository and Install ruby package :
sudo add-apt-repository ppa:brightbox/ruby-ng-experimental 
sudo apt-get update
sudo apt-get install ruby2.4

How to Install Ruby 2.4.0 via Deb Package For Ubuntu 16.10 Yakkety Yak :

For Ubuntu 32 bit :

For Ubuntu 64 bit :

Install Package :
sudo dpkg -i ruby2.4_2.4.0-1bbox1~yakkety2_*.deb

After installation in finished, check ruby version on terminal :
ruby2.4 -v

The source is available now. Binary packages are in the process of being built, and will appear soon at their respective download locations.
Previous Post
Next Post