From 5deec016fe97c238073ea22b7cca9c796c68a0a5 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 9 Nov 2013 16:44:32 -0200 Subject: [PATCH] Improve changelogs formatting [ci skip] --- actionview/CHANGELOG.md | 12 ++++++------ activerecord/CHANGELOG.md | 16 ++++++++-------- activesupport/CHANGELOG.md | 16 ++++++++-------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 7d2fedbf2a..9eb68db101 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -2,8 +2,8 @@ *Paul Seidemann* -* Ensure ActionView::Digestor.cache is correctly cleaned up when - combining recursive templates with ActionView::Resolver.caching = false +* Ensure `ActionView::Digestor.cache` is correctly cleaned up when + combining recursive templates with `ActionView::Resolver.caching = false`. *wyaeld* @@ -12,7 +12,7 @@ *Angel N. Sciortino* -* Fix some edge cases for AV `select` helper with `:selected` option +* Fix some edge cases for AV `select` helper with `:selected` option. *Bogdan Gusiev* @@ -26,14 +26,14 @@ *Bogdan Gusiev* -* Handle `:namespace` form option in collection labels +* Handle `:namespace` form option in collection labels. *Vasiliy Ermolovich* -* Fix `form_for` when both `namespace` and `as` options are present +* Fix `form_for` when both `namespace` and `as` options are present. `as` option no longer overwrites `namespace` option when generating - html id attribute of the form element + html id attribute of the form element. *Adam Niedzielski* diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 14089b5c1d..9f64941065 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -7,7 +7,7 @@ *Yves Senn* -* Fix uninitialized constant TransactionState error when Marshall.load is used on an Active Record result. +* Fix uninitialized constant `TransactionState` error when `Marshall.load` is used on an Active Record result. Fixes #12790 *Jason Ayre* @@ -16,7 +16,7 @@ *Jon Leighton* -* Added ActiveRecord::QueryMethods#rewhere which will overwrite an existing, named where condition. +* Added `ActiveRecord::QueryMethods#rewhere` which will overwrite an existing, named where condition. Examples: @@ -26,7 +26,7 @@ *DHH* -* Extend ActiveRecord::Base#cache_key to take an optional list of timestamp attributes of which the highest will be used. +* Extend `ActiveRecord::Base#cache_key` to take an optional list of timestamp attributes of which the highest will be used. Example: @@ -35,7 +35,7 @@ *DHH* -* Added ActiveRecord::Base#enum for declaring enum attributes where the values map to integers in the database, but can be queried by name. +* Added `ActiveRecord::Base#enum` for declaring enum attributes where the values map to integers in the database, but can be queried by name. Example: @@ -48,23 +48,23 @@ # conversation.update! status: 0 conversation.active! conversation.active? # => true - conversation.status # => :active + conversation.status # => "active" # conversation.update! status: 1 conversation.archived! conversation.archived? # => true - conversation.status # => :archived + conversation.status # => "archived" # conversation.update! status: 1 conversation.status = :archived *DHH* -* ActiveRecord::Base#attribute_for_inspect now truncates long arrays (more than 10 elements) +* `ActiveRecord::Base#attribute_for_inspect` now truncates long arrays (more than 10 elements). *Jan Bernacki* -* Allow for the name of the schema_migrations table to be configured. +* Allow for the name of the `schema_migrations` table to be configured. *Jerad Phelps* diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 0f9efc3085..ee05ea3255 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,22 +1,22 @@ -* Fix ActiveSupport `Time#to_json` and `DateTime#to_json` to return 3 decimal +* Fix Active Support `Time#to_json` and `DateTime#to_json` to return 3 decimal places worth of fractional seconds, similar to `TimeWithZone`. *Ryan Glover* * Removed circular reference protection in JSON encoder, deprecated - ActiveSupport::JSON::Encoding::CircularReferenceError. + `ActiveSupport::JSON::Encoding::CircularReferenceError`. *Godfrey Chan*, *Sergio Campamá* -* Add `capitalize` option to Inflector.humanize, so strings can be humanized without being capitalized: +* Add `capitalize` option to `Inflector.humanize`, so strings can be humanized without being capitalized: 'employee_salary'.humanize # => "Employee salary" 'employee_salary'.humanize(capitalize: false) # => "employee salary" *claudiob* -* Fixed Object#as_json and Struct#as_json not working properly with options. They now take - the same options as Hash#as_json: +* Fixed `Object#as_json` and `Struct#as_json` not working properly with options. They now take + the same options as `Hash#as_json`: struct = Struct.new(:foo, :bar).new struct.foo = "hello" @@ -25,15 +25,15 @@ *Sergio Campamá*, *Godfrey Chan* -* Added Numeric#in_milliseconds, like 1.hour.in_milliseconds, so we can feed them to JavaScript functions like getTime(). +* Added `Numeric#in_milliseconds`, like `1.hour.in_milliseconds`, so we can feed them to JavaScript functions like `getTime()`. *DHH* -* Calling ActiveSupport::JSON.decode with unsupported options now raises an error. +* Calling `ActiveSupport::JSON.decode` with unsupported options now raises an error. *Godfrey Chan* -* Support :unless_exist in FileStore +* Support `:unless_exist` in `FileStore`. *Michael Grosser*