Ruby 18 has been the subject of several industry standards The language

Ruby 18 has been the subject of several industry

This preview shows page 5 - 7 out of 38 pages.

Ruby 1.8 has been the subject of several industry standards. The language specifications for Ruby were developed by the Open Standards Promotion Center of the Information-Technology Promotion Agency (a Japanese government agency) for submission to the Japanese Industrial Standards Committee (JISC) and then to the International Organization for Standardization (ISO). It was accepted as a Japanese Industrial Standard (JIS X 3017) in 2011 [25] and an international standard ( ISO/IEC 30170 ) in 2012. [26] [27] Around 2005, interest in the Ruby language surged in tandem with Ruby on Rails , a web framework written in Ruby. Rails is frequently credited with increasing awareness of Ruby. [28] Ruby 1.9 [ edit ] Ruby 1.9 was released on Christmas Day in 2007. Effective with Ruby 1.9.3, released October 31, 2011, [29] Ruby switched from being dual-licensed under the Ruby License and the GPL to being dual- licensed under the Ruby License and the two-clause BSD license. [30] Adoption of 1.9 was slowed by changes from 1.8 that required many popular third party gems to be rewritten. Ruby 1.9 introduces many significant changes over the 1.8 series. [31] Examples: block local variables (variables that are local to the block in which they are declared) an additional lambda syntax: f = -> (a,b) { puts a + b }
Image of page 5
an additional Hash literal syntax using colons for symbol keys: { symbol_key : "value" } == { :symbol_key => "value " } per-string character encodings are supported new socket API ( IPv6 support) require_relative import security Ruby 1.9 has been obsolete since February 23, 2015, [32] and it will no longer receive bug and security fixes. Users are advised to upgrade to a more recent version. Ruby 2.0 [ edit ] Ruby 2.0 added several new features, including: method keyword arguments, a new method, Module#prepend , for extending a class, a new literal for creating an array of symbols, new API for the lazy evaluation of Enumerables, and a new convention of using #to_h to convert objects to Hashes. [33] Ruby 2.0 is intended to be fully backward compatible with Ruby 1.9.3. As of the official 2.0.0 release on February 24, 2013, there were only five known (minor) incompatibilities. [34] It has been obsolete since February 22, 2016, [35] and it will no longer receive bug and security fixes. Users are advised to upgrade to a more recent version. Ruby 2.1 [ edit ] Ruby 2.1.0 was released on Christmas Day in 2013. [36] The release includes speed-ups, bugfixes, and library updates. Starting with 2.1.0, Ruby's versioning policy is more like semantic versioning . [37] Although similar, Ruby's versioning policy is not compatible with semantic versioning: Ruby Semantic versioning MAJOR : Increased when incompatible change which can’t be released in MINOR. Reserved for special events. MAJOR : Increased when you make incompatible API changes. MINOR : increased every Christmas, may be API incompatible.
Image of page 6
Image of page 7

You've reached the end of your free preview.

Want to read all 38 pages?

  • Fall '12
  • DuiWei
  • Ruby

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture