Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 267 lines (163 sloc) 9.436 kb
572c3d5 @tenderlove * BufferedLogger is deprecated. Use ActiveSupport::Logger, or the lo…
tenderlove authored
1 ## Rails 4.0.0 (unreleased) ##
2
642e1af @steveklabnik Fixed timezone mapping of Solomon Islands.
steveklabnik authored
3 * Fixed timezone mapping of the Solomon Islands. *Steve Klabnik*
4
b955939 @gazay Make caller attribute in deprecation methods optional
gazay authored
5 * Make callstack attribute optional in
6 ActiveSupport::Deprecation::Reporting methods `warn` and `deprecation_warning`
7
8 *Alexey Gaziev*
9
f38e752 @dgraham Implement replace method so key? works correctly.
dgraham authored
10 * Implement HashWithIndifferentAccess#replace so key? works correctly. *David Graham*
11
851f8c1 atomicc.rb: Don't assume we may chown/chmod a file.
Daniele Sluijters authored
12 * Handle the possible Permission Denied errors atomic.rb might trigger due to its chown and chmod calls. *Daniele Sluijters*
13
a4b1196 @Mik-die add more testcases and doc about Hash#extract!
Mik-die authored
14 * Hash#extract! returns only those keys that present in the receiver.
5d27338 @Mik-die make Hash#extract! more symmetric with Hash#slice
Mik-die authored
15
16 {:a => 1, :b => 2}.extract!(:a, :x) # => {:a => 1}
17
18 *Mikhail Dieterle*
19
a4b1196 @Mik-die add more testcases and doc about Hash#extract!
Mik-die authored
20 * Hash#extract! returns the same subclass, that the receiver is. I.e.
5d27338 @Mik-die make Hash#extract! more symmetric with Hash#slice
Mik-die authored
21 HashWithIndifferentAccess#extract! returns HashWithIndifferentAccess instance.
22
23 *Mikhail Dieterle*
24
325748d @rafaelfranca New CHANGELOG entries always in the top
rafaelfranca authored
25 * Optimize ActiveSupport::Cache::Entry to reduce memory and processing overhead. *Brian Durand*
26
86ebe0b @jeremy Tests tag the Rails log with the current test class and test case
jeremy authored
27 * Tests tag the Rails log with the current test class and test case:
28
29 [SessionsControllerTest] [test_0002_sign in] Processing by SessionsController#create as HTML
30 [SessionsControllerTest] [test_0002_sign in] ...
31
32 *Jeremy Kemper*
33
d36f57f @jeremy Add logger.push_tags and .pop_tags to complement logger.tagged
jeremy authored
34 * Add logger.push_tags and .pop_tags to complement logger.tagged:
35
36 class Job
37 def before
38 Rails.logger.push_tags :jobs, self.class.name
39 end
40
41 def after
42 Rails.logger.pop_tags 2
43 end
44 end
45
46 *Jeremy Kemper*
47
1eef814 @carlosantoniodasilva Add changelog entry and docs about class delegation using the symbol …
carlosantoniodasilva authored
48 * Allow delegation to the class using the `:class` keyword, replacing
49 `self.class` usage:
50
51 class User
52 def self.hello
53 "world"
54 end
55
56 delegate :hello, to: :class
57 end
58
59 *Marc-Andre Lafortune*
60
61 * `Date.beginning_of_week` thread local and `beginning_of_week` application
62 config option added (default is Monday).
63
64 *Innokenty Mikhailov*
da26dfb @gregolsen Date.beginning_of_week thread local and beginning_of_week application…
gregolsen authored
65
1efe30e @larrylv set up config_accessor with a default value by block
larrylv authored
66 * An optional block can be passed to `config_accessor` to set its default value
67
68 class User
69 include ActiveSupport::Configurable
70 config_accessor :hair_colors do
71 [:brown, :black, :blonde, :red]
72 end
73 end
74
75 User.hair_colors # => [:brown, :black, :blonde, :red]
76
77 *Larry Lv*
78
ed2fea9 @steveklabnik Deprecate ActiveSupport::Benchmarkable#silence.
steveklabnik authored
79 * ActiveSupport::Benchmarkable#silence has been deprecated due to its lack of
1eef814 @carlosantoniodasilva Add changelog entry and docs about class delegation using the symbol …
carlosantoniodasilva authored
80 thread safety. It will be removed without replacement in Rails 4.1.
81
82 *Steve Klabnik*
83
84 * An optional block can be passed to `Hash#deep_merge`. The block will be invoked
85 for each duplicated key and used to resolve the conflict.
ed2fea9 @steveklabnik Deprecate ActiveSupport::Benchmarkable#silence.
steveklabnik authored
86
1eef814 @carlosantoniodasilva Add changelog entry and docs about class delegation using the symbol …
carlosantoniodasilva authored
87 *Pranas Kiziela*
54575d8 @pranas Allow passing block to deep_merge and deep_merge!
pranas authored
88
71993c6 @LTe Change ActiveSupport::Deprecation to class.
LTe authored
89 * ActiveSupport::Deprecation is now a class. It is possible to create an instance
90 of deprecator. Backwards compatibility has been preserved.
91
92 You can choose which instance of the deprecator will be used.
93
8692db5 @rafaelfranca Copy-edit deprecation relared documentation [ci skip]
rafaelfranca authored
94 deprecate :method_name, :deprecator => deprecator_instance
71993c6 @LTe Change ActiveSupport::Deprecation to class.
LTe authored
95
96 You can use ActiveSupport::Deprecation in your gem.
97
8692db5 @rafaelfranca Copy-edit deprecation relared documentation [ci skip]
rafaelfranca authored
98 require 'active_support/deprecation'
99 require 'active_support/core_ext/module/deprecation'
71993c6 @LTe Change ActiveSupport::Deprecation to class.
LTe authored
100
8692db5 @rafaelfranca Copy-edit deprecation relared documentation [ci skip]
rafaelfranca authored
101 class MyGem
102 def self.deprecator
103 ActiveSupport::Deprecation.new('2.0', 'MyGem')
104 end
71993c6 @LTe Change ActiveSupport::Deprecation to class.
LTe authored
105
8692db5 @rafaelfranca Copy-edit deprecation relared documentation [ci skip]
rafaelfranca authored
106 def old_method
107 end
71993c6 @LTe Change ActiveSupport::Deprecation to class.
LTe authored
108
8692db5 @rafaelfranca Copy-edit deprecation relared documentation [ci skip]
rafaelfranca authored
109 def new_method
110 end
71993c6 @LTe Change ActiveSupport::Deprecation to class.
LTe authored
111
8692db5 @rafaelfranca Copy-edit deprecation relared documentation [ci skip]
rafaelfranca authored
112 deprecate :old_method => :new_method, :deprecator => deprecator
113 end
71993c6 @LTe Change ActiveSupport::Deprecation to class.
LTe authored
114
8692db5 @rafaelfranca Copy-edit deprecation relared documentation [ci skip]
rafaelfranca authored
115 MyGem.new.old_method
116 # => DEPRECATION WARNING: old_method is deprecated and will be removed from MyGem 2.0 (use new_method instead). (called from <main> at file.rb:18)
71993c6 @LTe Change ActiveSupport::Deprecation to class.
LTe authored
117
118 *Piotr Niełacny & Robert Pankowecki*
119
6b2a24c @kalys &#39 dates back to SGML when &#x27 was introduced in HTML 4.0
kalys authored
120 * `ERB::Util.html_escape` encodes single quote as `#39`. Decimal form has better support in old browsers. *Kalys Osmonov*
121
8952339 @carlosantoniodasilva Add Changelog entry for #7560: deprecate #filter in AS::Callbacks [ci…
carlosantoniodasilva authored
122 * `ActiveSupport::Callbacks`: deprecate monkey patch of object callbacks.
123 Using the #filter method like this:
124
125 before_filter MyFilter.new
126
127 class MyFilter
128 def filter(controller)
129 end
130 end
131
132 Is now deprecated with recommendation to use the corresponding filter type
133 (`#before`, `#after` or `#around`):
134
135 before_filter MyFilter.new
136
137 class MyFilter
138 def before(controller)
139 end
140 end
141
142 *Bogdan Gusiev*
143
edab820 @leocassarani Extend HashWithIndifferentAccess#update to take an optional block
leocassarani authored
144 * An optional block can be passed to `HashWithIndifferentAccess#update` and `#merge`.
145 The block will be invoked for each duplicated key, and used to resolve the conflict,
146 thus replicating the behaviour of the corresponding methods on the `Hash` class.
147
148 *Leo Cassarani*
149
8c6fcbc @rafaelfranca Add CHANGELOG entry for #3578 [ci skip]
rafaelfranca authored
150 * Remove `j` alias for `ERB::Util#json_escape`.
151 The `j` alias is already used for `ActionView::Helpers::JavaScriptHelper#escape_javascript`
152 and both modules are included in the view context that would confuse the developers.
153
154 *Akira Matsuda*
155
8266330 @guilleiguaran Replace deprecated `memcache-client` gem with `dalli` in ActiveSuppor…
guilleiguaran authored
156 * Replace deprecated `memcache-client` gem with `dalli` in ActiveSupport::Cache::MemCacheStore
157
158 *Guillermo Iguaran*
159
a9dccda @carlosantoniodasilva Fallback to :en locale instead of handling a constant with defaults
carlosantoniodasilva authored
160 * Add default values to all `ActiveSupport::NumberHelper` methods, to avoid
161 errors with empty locales or missing values.
162
163 *Carlos Antonio da Silva*
164
dcc68fa @carlosantoniodasilva Fix Active Support changelog formatting [ci skip]
carlosantoniodasilva authored
165 * `ActiveSupport::JSON::Variable` is deprecated. Define your own `#as_json` and
166 `#encode_json` methods for custom JSON string literals.
b6e00c6 @carlosantoniodasilva Bring back changelog entries for Active Support
carlosantoniodasilva authored
167
168 *Erich Menge*
169
170 * Add String#indent. *fxn & Ace Suares*
171
172 * Inflections can now be defined per locale. `singularize` and `pluralize`
173 accept locale as an extra argument.
174
175 *David Celis*
176
177 * `Object#try` will now return nil instead of raise a NoMethodError if the
178 receiving object does not implement the method, but you can still get the
179 old behavior by using the new `Object#try!`.
180
181 *DHH*
182
0228a73 @amerine Add html_escape note to CHANGELOG
amerine authored
183 * `ERB::Util.html_escape` now escapes single quotes. *Santiago Pastorino*
99ea1a8 @dhh will now return nil instead of raise a NoMethodError if the receivin…
dhh authored
184
215d41d @carlosantoniodasilva Update 4.0 Release Notes with changelogs [ci skip]
carlosantoniodasilva authored
185 * `Time#change` now works with time values with offsets other than UTC or the local time zone. *Andrew White*
98b46bf @pixeltrix Make Time#change work with offsets other than UTC or local
pixeltrix authored
186
215d41d @carlosantoniodasilva Update 4.0 Release Notes with changelogs [ci skip]
carlosantoniodasilva authored
187 * `ActiveSupport::Callbacks`: deprecate usage of filter object with `#before` and `#after` methods as `around` callback. *Bogdan Gusiev*
88230b7 @bogdan AS::Callbacks: deprecate monkey patch code
bogdan authored
188
215d41d @carlosantoniodasilva Update 4.0 Release Notes with changelogs [ci skip]
carlosantoniodasilva authored
189 * Add `Time#prev_quarter` and `Time#next_quarter` short-hands for `months_ago(3)` and `months_since(3)`. *SungHee Kang*
2773257 Add prev_quarter and next_quarter method in Time/Date/DateTime
paranoiase Kang authored
190
d3a99c3 @fxn removes the obsolete require_association method from dependencies
fxn authored
191 * Remove obsolete and unused `require_association` method from dependencies. *fxn*
192
5e1d40f add instance_accessor option to ActiveSupport::Configurable#config_ac…
Francesco Rodriguez authored
193 * Add `:instance_accessor` option for `config_accessor`.
194
195 class User
196 include ActiveSupport::Configurable
197 config_accessor :allowed_access, instance_accessor: false
198 end
199
200 User.new.allowed_access = true # => NoMethodError
201 User.new.allowed_access # => NoMethodError
202
203 *Francesco Rodriguez*
204
1f5dddc Remove deprecated ActiveSupport::JSON::Variable.
Erich Menge authored
205 * ActionView::Helpers::NumberHelper methods have been moved to ActiveSupport::NumberHelper and are now available via
206 Numeric#to_s. Numeric#to_s now accepts the formatting options :phone, :currency, :percentage, :delimited,
155cd5e @amutz Moving NumberHelpers from ActionView to ActiveSupport
amutz authored
207 :rounded, :human, and :human_size. *Andrew Mutz*
208
2b5b60f @markmcspadden Add Hash#deep_transform_keys and Hash#deep_transform_keys! Also conve…
markmcspadden authored
209 * Add `Hash#transform_keys`, `Hash#transform_keys!`, `Hash#deep_transform_keys`, and `Hash#deep_transform_keys!`. *Mark McSpadden*
6ff8873 @markmcspadden Add Hash#transform_keys and Hash#transform_keys! and refactor *_keys …
markmcspadden authored
210
a4bb195 @lucashungaro Adding deep versions of stringify_keys and symbolize_keys (plain and …
lucashungaro authored
211 * Changed xml type `datetime` to `dateTime` (with upper case letter `T`). *Angelo Capilleri*
5646d65 @acapilleri changed xml type datetime to dateTime, fixes #6328
acapilleri authored
212
e4569b5 @avakhov Add instance_accessor option to class_attribute
avakhov authored
213 * Add `:instance_accessor` option for `class_attribute`. *Alexey Vakhov*
214
329a5a4 @pixeltrix Add CHANGELOG entry for constantize - closes #6165.
pixeltrix authored
215 * `constantize` now looks in the ancestor chain. *Marc-Andre Lafortune & Andrew White*
216
a4bb195 @lucashungaro Adding deep versions of stringify_keys and symbolize_keys (plain and …
lucashungaro authored
217 * Adds `Hash#deep_stringify_keys` and `Hash#deep_stringify_keys!` to convert all keys from a +Hash+ instance into strings *Lucas Húngaro*
218
219 * Adds `Hash#deep_symbolize_keys` and `Hash#deep_symbolize_keys!` to convert all keys from a +Hash+ instance into symbols *Lucas Húngaro*
220
e5b91f2 @fxn copy-edits a recent CHANGELOG entry [ci skip]
fxn authored
221 * `Object#try` can't call private methods. *Vasiliy Ermolovich*
b8f394f @nashby Object#try can't call private methods
nashby authored
222
c1ce414 AS::Callbacks#run_callbacks remove key argument
Francesco Rodriguez authored
223 * `AS::Callbacks#run_callbacks` remove `key` argument. *Francesco Rodriguez*
224
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
225 * `deep_dup` works more expectedly now and duplicates also values in +Hash+ instances and elements in +Array+ instances. *Alexey Gaziev*
0403928 @drogus Updated CHANGELOG entry for `deep_dup`
drogus authored
226
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
227 * Inflector no longer applies ice -> ouse to words like slice, police, ets *Wes Morgan*
c9cbc17 @josevalim Update activesupport/CHANGELOG.md
josevalim authored
228
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
229 * Add `ActiveSupport::Deprecations.behavior = :silence` to completely ignore Rails runtime deprecations *twinturbo*
9608395 Document #behavior= and update CHANGELOG
twinturbo authored
230
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
231 * Make Module#delegate stop using `send` - can no longer delegate to private methods. *dasch*
1d48e50 @dasch Add changelog entry
dasch authored
232
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
233 * AS::Callbacks: deprecate `:rescuable` option. *Bogdan Gusiev*
10bac29 @bogdan AS::Callbacks: deprecate rescuable option
bogdan authored
234
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
235 * Adds Integer#ordinal to get the ordinal suffix string of an integer. *Tim Gildea*
a470d79 @vijaydev Document Integer#ordinal available in PR #2072.
vijaydev authored
236
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
237 * AS::Callbacks: `:per_key` option is no longer supported
4f53091 @bogdan AS::Callbacks: rip out per_key option.
bogdan authored
238
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
239 * `AS::Callbacks#define_callbacks`: add `:skip_after_callbacks_if_terminated` option.
7661955 @bogdan AS::Callbacks: :skip_after_callbacks_if_terminated option
bogdan authored
240
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
241 * Add html_escape_once to ERB::Util, and delegate escape_once tag helper to it. *Carlos Antonio da Silva*
608eddc @carlosantoniodasilva Move escape_once logic to ERB::Util, where it belongs to
carlosantoniodasilva authored
242
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
243 * Remove ActiveSupport::TestCase#pending method, use `skip` instead. *Carlos Antonio da Silva*
c8504b1 @carlosantoniodasilva Remove ActiveSupport::TestCase#pending, use `skip` instead
carlosantoniodasilva authored
244
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
245 * Deprecates the compatibility method Module#local_constant_names,
246 use Module#local_constants instead (which returns symbols). *fxn*
04df7bb @fxn deprecates Module#local_constant_names
fxn authored
247
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
248 * Deletes the compatibility method Module#method_names,
249 use Module#methods from now on (which returns symbols). *fxn*
748725e @fxn removes the compatibility method Module#method_names
fxn authored
250
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
251 * Deletes the compatibility method Module#instance_method_names,
252 use Module#instance_methods from now on (which returns symbols). *fxn*
40bda76 @fxn removes the compatibility method Module#instance_method_names
fxn authored
253
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
254 * BufferedLogger is deprecated. Use ActiveSupport::Logger, or the logger
255 from Ruby stdlib.
572c3d5 @tenderlove * BufferedLogger is deprecated. Use ActiveSupport::Logger, or the lo…
tenderlove authored
256
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
257 * Unicode database updated to 6.1.0.
27bf1b1 @norman Added note about new Unicode version.
norman authored
258
946875d @mjtko Consistent CHANGELOG entry indentation.
mjtko authored
259 * Adds `encode_big_decimal_as_string` option to force JSON serialization of BigDecimals as numeric instead
260 of wrapping them in strings for safety.
18aa1ae @davout BigDecimal string wrapping in JSON serialization can now be opted-out…
davout authored
261
1f5dddc Remove deprecated ActiveSupport::JSON::Variable.
Erich Menge authored
262 * Remove deprecated ActiveSupport::JSON::Variable. *Erich Menge*
263
3785272 @bdurand Optimize log subscribers to check if the log level is sufficient befo…
bdurand authored
264 * Optimize log subscribers to check log level before doing any processing. *Brian Durand*
265
810a50d @fxn CHANGELOGs are now per branch
fxn authored
266 Please check [3-2-stable](https://github.com/rails/rails/blob/3-2-stable/activesupport/CHANGELOG.md) for previous changes.
Something went wrong with that request. Please try again.