File tree 3 files changed +8
-6
lines changed 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -2534,11 +2534,11 @@ def idle_done
2534
2534
# Prints a warning and returns the mutable responses hash.
2535
2535
# <em>This is not thread-safe.</em>
2536
2536
#
2537
- # [+:frozen_dup+</em>]
2537
+ # [+:frozen_dup+ <em>(planned default for +v0.6+) </em>]
2538
2538
# Returns a frozen copy of the unhandled responses hash, with frozen
2539
2539
# array values.
2540
2540
#
2541
- # [+:raise+ <em>(planned future default)</em> ]
2541
+ # [+:raise+]
2542
2542
# Raise an +ArgumentError+ with the deprecation warning.
2543
2543
#
2544
2544
# For example:
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ def self.[](config)
237
237
# Prints a warning and returns the mutable responses hash.
238
238
# <em>This is not thread-safe.</em>
239
239
#
240
- # [+:frozen_dup+</em>]
240
+ # [+:frozen_dup+ <em>(planned default for +v0.6+) </em>]
241
241
# Returns a frozen copy of the unhandled responses hash, with frozen
242
242
# array values.
243
243
#
@@ -246,7 +246,7 @@ def self.[](config)
246
246
#
247
247
# <em>(+:frozen_dup+ config option was added in +v0.4.17+)</em>
248
248
#
249
- # [+:raise+ <em>(planned future default)</em> ]
249
+ # [+:raise+]
250
250
# Raise an ArgumentError with the deprecation warning.
251
251
#
252
252
# Note: #responses_without_args is an alias for #responses_without_block.
@@ -363,9 +363,10 @@ def defaults_hash
363
363
version_defaults [ :current ] = Config [ 0.4 ]
364
364
version_defaults [ :next ] = Config [ 0.5 ]
365
365
366
- version_defaults [ :future ] = Config [ 0.5 ] . dup . update (
367
- responses_without_block : :raise ,
366
+ version_defaults [ 0.6 ] = Config [ 0.5 ] . dup . update (
367
+ responses_without_block : :frozen_dup ,
368
368
) . freeze
369
+ version_defaults [ :future ] = Config [ 0.6 ]
369
370
370
371
version_defaults . freeze
371
372
end
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ class ConfigTest < Test::Unit::TestCase
191
191
assert_same Config . global , Config . new ( Config . global ) . parent
192
192
assert_same Config [ 0.4 ] , Config . new ( 0.4 ) . parent
193
193
assert_same Config [ 0.5 ] , Config . new ( :next ) . parent
194
+ assert_same Config [ 0.6 ] , Config . new ( :future ) . parent
194
195
assert_equal true , Config . new ( { debug : true } , debug : false ) . parent . debug?
195
196
assert_equal true , Config . new ( { debug : true } , debug : false ) . parent . frozen?
196
197
end
You can’t perform that action at this time.
0 commit comments