From Fedora Project Wiki
(Current status)
(Documentation)
 
Line 154: Line 154:
  
 
<!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
 
<!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
http://www.ruby-doc.org/
+
* [http://www.ruby-doc.org/ Help and documentation for the Ruby programming language]
 +
* [http://nithinbekal.com/posts/ruby-2-3-features/ What's new in Ruby 2.3?]
 +
* [http://www.ruby-lang.org/en/news/2015/12/25/ruby-2-3-0-released/ Ruby 2.3.0 Released]
  
 
== Release Notes ==
 
== Release Notes ==

Latest revision as of 15:57, 25 December 2015


Ruby 2.3

Summary

Ruby 2.3 is the latest stable version of Ruby. Many new features and improvements are included for the increasingly diverse and expanding demands for Ruby. With this major update from Ruby 2.2 in Fedora 22 to Ruby 2.3 in Fedora 24, alongside JRuby, Fedora becomes the superior Ruby development platform.

Owner

  • Name: Vít Ondruch
  • Email: vondruch@redhat.com
  • Release notes owner:

Current status

Detailed Description

Ruby 2.3 is upstream's new major release of Ruby. Many new features and improvements are included.

A Frozen String Literal Pragma is introduced. With Ruby 2.1, "str".freeze has been optimized to reduce object allocation. Ruby 2.3 introduces a new magic comment and command line option to freeze all string literals in the source files. Additionally for debugging, you can get where the object is created on "can't modify frozen String" error by --enable-frozen-string-literal-debug.

A safe navigation operator, which already exists in C#, Groovy, and Swift, is introduced to ease nil handling as obj&.foo. Array#dig and Hash#dig are also added.

The did_you_mean gem is bundled. The did_you_mean gem shows the candidates on the NameError and NoMethodError to ease debugging.

Safe levels $SAFE=2 and $SAFE=3 are obsolete.

Benefit to Fedora

With a latest release, Ruby language is supporting the newest language features, which enables even faster and easier development of Ruby applications.

Scope

  • Proposal owners:
    • Finish packaging of Ruby 2.3. Current changes available in private-ruby-2.3 branch of ruby package in dist-git.
    • Rebuilding of Ruby packages providing native extensions (i.e. packages which depends on libruby).
  • Other developers:
    • Rebuild of packages with binary extensions (i.e. packages which depends on libruby) will be handled automatically, but some packages might need fixes/updates to support Ruby 2.3 properly.
  • Release engineering:
    • Separate Koji tag for package rebuild will be needed.
  • Policies and guidelines: N/A (not needed for this Change)
  • Trademark approval: N/A (not needed for this Change)

Upgrade/compatibility impact

  • User specific Ruby binary extensions need to be rebuild.

How To Test

  • No special hardware is needed.
  • To test, install Ruby 2.3. The test builds are pusblished on Ruby-SIG ML
  • Try to locally rebuild your packages using Ruby 2.3.
  • Use the packages with your applications previously written in Ruby.
  • If something doesn't work as it should, let us know.

User Experience

The Ruby programmes/scripts should behave as they were used to.

Dependencies

$ dnf repoquery --disablerepo=* --enablerepo=rawhide --enablerepo=rawhide-source --arch=src --whatrequires 'ruby-devel' | sort | uniq | wc -l
156

Contingency Plan

  • Contingency mechanism: We would like to get a special buildroot tag to be able to rebuild necessary the packages with Ruby 2.3. If anything goes wrong, the tag could be easily dropped and previous version of Ruby 2.2 and its dependencies stays intact. The tag would be merged into F24 after everything is rebuild.
  • Contingency deadline: * Contingency deadline: TBD (probably F24 software string freeze)
  • Blocks release? No
  • Blocks product? No

Documentation

Release Notes

  • The Ruby 2.3 bumps soname, therefore Ruby packages, which use binary extensions, should be rebuilt. Nevertheless, since upstream paid great attention to source compatibility, no changes to your code are needed.

https://github.com/ruby/ruby/blob/trunk/NEWS