Skip to content

Instantly share code, notes, and snippets.

@francois2metz
Created April 20, 2018 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francois2metz/b82a82cc200093c853d569fda52f8bef to your computer and use it in GitHub Desktop.
Save francois2metz/b82a82cc200093c853d569fda52f8bef to your computer and use it in GitHub Desktop.
Rails release post with changelog

Hi everyone,

I am happy to announce that Rails 5.1.6 has been released.

CHANGES since 5.1.5

Changes in Active Support

  • Return all mappings for a timezone identifier in country_zones

    Some timezones like Europe/London have multiple mappings in ActiveSupport::TimeZone::MAPPING so return all of them instead of the first one found by using Hash#value. e.g:

    # Before
    ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh"]
    
    # After
    ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh", "London"]
    

    Fixes #31668.

    Andrew White

Changes in Active Model

  • No changes.

Changes in Active Record

  • MySQL: Support mysql2 0.5.x.

    Aaron Stone

  • Apply time column precision on assignment.

    PR #20317 changed the behavior of datetime columns so that when they have a specified precision then on assignment the value is rounded to that precision. This behavior is now applied to time columns as well.

    Fixes #30301.

    Andrew White

  • Normalize time column values for SQLite database.

    For legacy reasons, time columns in SQLite are stored as full datetimes because until #24542 the quoting for time columns didn't remove the date component. To ensure that values are consistent we now normalize the date component to 2001-01-01 on reading and writing.

    Andrew White

  • Ensure that the date component is removed when quoting times.

    PR #24542 altered the quoting for time columns so that the date component was removed however it only removed it when it was 2001-01-01. Now the date component is removed irrespective of what the date is.

    Andrew White

  • Fix that after commit callbacks on update does not triggered when optimistic locking is enabled.

    Ryuta Kamizono

  • ActiveRecord::Persistence#touch does not work well when optimistic locking enabled and locking_column, without default value, is null in the database.

    bogdanvlviv

  • Fix destroying existing object does not work well when optimistic locking enabled and locking column is null in the database.

    bogdanvlviv

Changes in Action View

  • No changes.

Changes in Action Pack

  • Check exclude before flagging cookies as secure.

    Catherine Khuu

Changes in Active Job

  • No changes.

Changes in Action Mailer

  • No changes.

Changes in Action Cable

  • No changes.

Changes in Railties

  • Fix check for minimum Ruby version to correctly identify Ruby 2.2.10.

    shia

  • Fix minitest rails plugin.

    The custom reporters are added only if needed.

    This will fix conflicts with others plugins.

    Kevin Robatel

Full listing

To see the full list of changes, check out all the commits on GitHub.

SHA-256

If you'd like to verify that your gem is the same as the one I've uploaded, please use these SHA-256 hashes.

Here are the checksums for 5.1.6:

$ shasum -a 256 *-5.1.6.gem
ad6db1ace45c09d77c205ed170064352204d548677a36484fded87d096327e67  actioncable-5.1.6.gem
c9f9f626c1bc8a4e3c1eaa1746318393c7db374565df029bedc44839ef19dce1  actionmailer-5.1.6.gem
595adbd5e5a9790856f304701a55f427585d25393c2800872baa372ee2fab9e4  actionpack-5.1.6.gem
c8f47a5bd605218b7c6e9bd88c1d5e8184e4c303e2ef1549caea0fc7e0907058  actionview-5.1.6.gem
1c64042804195dc615505be0eff455a4e7e763ea01c6430abc14a089f542415e  activejob-5.1.6.gem
ea4942c977dd17e176a69f13d3b95f99c3f0835bc1f9e0a0ec4948be7e7829b6  activemodel-5.1.6.gem
0285cde7637e17abd7d960ed19b2a86c0f09eefd5d8adb8d156d73ea67928a3c  activerecord-5.1.6.gem
f4197980091860c056b107c59c1b4eedf4aaf9c339401b8b442422b1f1ef64e1  activesupport-5.1.6.gem
00587924fb2a1bbe71589239dbce862692d15ac6c46397453f2b720dadbc1437  rails-5.1.6.gem
dbad1e24aaec0d8eb0a03908f7900d1729112b3b0054d12dba250c2447cf4024  railties-5.1.6.gem

As always, huge thanks to the many contributors who helped with this release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment