• U
    Allow Range#=== and Range#cover? on Range · 0fcb921a
    utilum 提交于
    ruby/ruby@989e07c features switching `Range#===` to use internal `r_cover_p`
    instead of rubyland `include?`. This breaks expected behavior of
    `ActiveSupport::CoreExt::Range` documented since at least 8b67a022.
    
    This patch adds overrides on `Range#cover?` and `Range#===` and places all
    three in a single module, `CompareWithRange`.
    
    *Requiring core_ext/range/include_range now causes a deprecation warnning*
    0fcb921a
range.rb 294 字节