Ruby Syntax Version

What is the naming syntax for the different versions of ruby, and why should I aim to run scripts? that is, using rbenv, I can install the following versions of Ruby 1.9.3:

1.9.3-dev 1.9.3-p0 1.9.3-p125 1.9.3-p194 1.9.3-p286 1.9.3-p327 1.9.3-p362 1.9.3-p374 1.9.3-p385 1.9.3-p392 1.9.3-p429 1.9.3-preview1 1.9.3-rc1 

So we have several different types:

  • Dev
  • R #
  • Preview #
  • gs #

I suppose I can assume that p# intended for build fixes for the specification, preview# is a preview of the specification of the version and predecessor of rc# , the candidate for the specification release. So that leaves dev . Is the dev tag something I should use for scripting, or is it a development branch? And should I try to install the latest version of p# ? What is the best practice here?

+4
source share
1 answer

Ruby uses semver to name versions.

Best practice is to keep the ruby ​​as accurate as possible using the latest p# construct.

Current Version - Ruby 2.0.0-p195

If you are stuck in version 1.9.3 for compatibility reasons, the latest patch is 1.9.3-p459 .

You can see these versions on the Ruby page.

+3
source

Source: https://habr.com/ru/post/1485121/


All Articles