aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/range/include_range.rb
Commit message (Collapse)AuthorAgeFilesLines
* Allow Range#=== and Range#cover? on Rangeutilum2018-05-221-22/+6
| | | | | | | | | | | 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 8b67a02. 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*
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Use #prepend rather than using 2 aliasesYuki Nishijima2015-04-141-20/+20
|
* Deprecate alias_method_chain in favour of Module#prependKir Shatrov2015-03-221-4/+4
| | | …as discussed #19413
* Fixes NoMethodError: `alias_method_chain` when requiring just ↵Andy Lindeman2013-05-121-0/+2
| | | | | | active_support/core_ext * Each file that uses `alias_method_chain` brings it in explicitly
* String quotes and trailing spacesAlexey Gaziev2012-04-291-1/+1
|
* adds a comments that clarifies why Range#include? chooses the comparison ↵Xavier Noria2011-12-301-0/+1
| | | | operator
* refactor Range#include? to handle ranges with floatsSergey Nartimov2011-12-291-1/+2
|
* refactor Range#include? for range valueVasiliy Ermolovich2011-12-261-3/+1
|
* Convert Range step and include extension modules to class reopenJeremy Kemper2009-03-291-27/+18
|
* Improve documentation coverage and markupXavier Noria2008-05-021-0/+8
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Style update for new Range extensionsJeremy Kemper2007-10-091-7/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Add Range#overlaps?(range), Range#include?(range), and Range#step without ↵Michael Koziarski2007-10-081-0/+24
a block. [brandon] Closes #9746 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7800 5ecf4fe2-1ee6-0310-87b1-e25e094e27de