Permalink
Browse files

first pass through CHANGELOGS to extract 4_1_release_notes. [ci skip]

Extract **notable changes**, **deprecations** and **removals** from
each CHANGELOG.

I tried to reference the commits and pull requests for new features
and deprecations.

In the process I also made some minor changes to the CHANGELOGS.

The 4_1_release_notes guide is declared WIP.
  • Loading branch information...
1 parent 8c944de commit 7c6d99e81e05be57b884cbfed4e12986669bd5b4 @senny senny committed Nov 28, 2013
Showing with 273 additions and 21 deletions.
  1. +1 −5 actionpack/CHANGELOG.md
  2. +2 −2 activemodel/CHANGELOG.md
  3. +2 −3 activerecord/CHANGELOG.md
  4. +11 −9 activesupport/CHANGELOG.md
  5. +257 −2 guides/source/4_1_release_notes.md
@@ -130,10 +130,6 @@
*Vasiliy Ermolovich*
-* Separate Action View completely from Action Pack.
-
- *Łukasz Strzałkowski*
-
* Development mode exceptions are rendered in text format in case of XHR request.
*Kir Shatrov*
@@ -234,7 +230,7 @@
*Yves Senn*, *Andrew White*
-* ActionView extracted from ActionPack.
+* Action View extracted from Action Pack.
*Piotr Sarnacki*, *Łukasz Strzałkowski*
@@ -7,7 +7,7 @@
*William Myers*
-* Added new API methods `reset_changes` and `changed_applied` to `ActiveModel::Dirty`
+* Added new API methods `reset_changes` and `changes_applied` to `ActiveModel::Dirty`
that control changes state. Previsously you needed to update internal
instance variables, but now API methods are available.
@@ -23,7 +23,7 @@
for non-numerical ones.
Fixes range validations like `:a..:f` that used to pass with values like `:be`.
- Fixes #10593
+ Fixes #10593.
*Charles Bergeron*
@@ -23,7 +23,6 @@
*Brian Thomas Storti*
-
* Fix validation on uniqueness of empty association.
*Evgeny Li*
@@ -850,7 +849,7 @@
class Author < ActiveRecord::Base
has_many :posts
- has_many :taggings, :through => :posts
+ has_many :taggings, through: :posts
end
class Post < ActiveRecord::Base
@@ -865,7 +864,7 @@
class Author < ActiveRecord::Base
has_many :posts
- has_many :taggings, :through => :posts, :source => :tagging
+ has_many :taggings, through: :posts, source: :tagging
end
class Post < ActiveRecord::Base
@@ -1,15 +1,15 @@
-* Deprecated Numeric#{ago,until,since,from_now}, the user is expected to explicitly
- convert the value into an AS::Duration, i.e. 5.ago => 5.seconds.ago
+* Deprecated `Numeric#{ago,until,since,from_now}`, the user is expected to explicitly
+ convert the value into an AS::Duration, i.e. `5.ago` => `5.seconds.ago`
This will help to catch subtle bugs like:
- def recent?(days = 3)
- self.created_at >= days.ago
- end
+ def recent?(days = 3)
+ self.created_at >= days.ago
+ end
The above code would check if the model is created within the last 3 **seconds**.
- In the future, Numeric#{ago,until,since,from_now} should be removed completely,
+ In the future, `Numeric#{ago,until,since,from_now}` should be removed completely,
or throw some sort of errors to indicate there are no implicit conversion from
Numeric to AS::Duration.
@@ -177,7 +177,8 @@
*Simon Coffey*
-* Add String#remove(pattern) as a short-hand for the common pattern of String#gsub(pattern, '')
+* Add `String#remove(pattern)` as a short-hand for the common pattern of
+ `String#gsub(pattern, '')`.
*DHH*
@@ -280,11 +281,12 @@
*Carlos Antonio da Silva*
-* Remove deprecated `BufferedLogger`.
+* Remove deprecated `BufferedLogger`, use `ActiveSupport::Logger` instead.
*Yves Senn*
-* Remove deprecated `assert_present` and `assert_blank` methods.
+* Remove deprecated `assert_present` and `assert_blank` methods, use `assert
+ object.blank?` and `assert object.present?` instead.
*Yves Senn*
Oops, something went wrong.

0 comments on commit 7c6d99e

Please sign in to comment.