File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed
Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -512,12 +512,6 @@ def defaults_hash
512512 parser_max_deprecated_uidplus_data_size : 0 ,
513513 }
514514
515- version_defaults [ 0.7 r] = {
516- }
517-
518- version_defaults [ 0.8 r] = {
519- }
520-
521515 AttrVersionDefaults . compile_version_defaults!
522516
523517 if ( $VERBOSE || $DEBUG) && self [ :current ] . to_h != self [ :default ] . to_h
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ module AttrVersionDefaults
1919 NEXT_VERSION = CURRENT_VERSION + 0.1 r
2020
2121 # The config version used for <tt>Config[:future]</tt>.
22- FUTURE_VERSION = CURRENT_VERSION + 0.2 r
22+ FUTURE_VERSION = 1.0 r
2323
24- VERSIONS = ( ( 0.0 r..0.8 r ) % 0.1 r) . to_a . freeze
24+ VERSIONS = ( ( 0.0 r..FUTURE_VERSION ) % 0.1 r) . to_a . freeze
2525
2626 # See Config.version_defaults.
2727 singleton_class . attr_accessor :version_defaults
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class ConfigTest < Net::IMAP::TestCase
77 Config = Net ::IMAP ::Config
88 THIS_VERSION = Net ::IMAP ::VERSION . to_f
99 NEXT_VERSION = THIS_VERSION + 0.1
10- FUTURE_VERSION = THIS_VERSION + 0.2
10+ FUTURE_VERSION = 1.0
1111
1212 setup do
1313 Config . global . reset
@@ -184,8 +184,7 @@ class ConfigTest < Net::IMAP::TestCase
184184 assert_raise ( RangeError ) do Config [ 0.01 ] end
185185 assert_raise ( RangeError ) do Config [ 0.11 ] end
186186 assert_raise ( RangeError ) do Config [ 0.111 ] end
187- assert_raise ( RangeError ) do Config [ 0.9 ] end
188- assert_raise ( RangeError ) do Config [ 1 ] end
187+ assert_raise ( RangeError ) do Config [ 1.1 ] end
189188 end
190189
191190 test ".[] key errors" do
You can’t perform that action at this time.
0 commit comments