Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify API documentation of methods that return a Duration | bogdanvlviv | 2017-10-24 | 1 | -16/+5 |
| | | | | Related to #30972 | ||||
* | Make clear that Time core extensions are split between Numeric and Integer | João Fernandes | 2017-10-24 | 1 | -0/+2 |
| | | | | | | | The documentation wrongly suggests that Time extensions to Numeric include methods months and years, when these belong to Integer. Update both classes and guides. | ||||
* | [Active Support] require_relative => require | Akira Matsuda | 2017-10-21 | 2 | -3/+3 |
| | | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc | ||||
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 3 | -0/+3 |
| | |||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 3 | -0/+3 |
| | |||||
* | [Active Support] require => require_relative | Akira Matsuda | 2017-07-01 | 2 | -3/+3 |
| | |||||
* | Add duration constructors for use in Numeric extensions | Andrew White | 2017-01-12 | 1 | -2/+2 |
| | | | | | The Numeric extensions like 1.day, 1.month, etc. shouldn't know how the internals of ActiveSupport::Duration works. | ||||
* | Fix inconsistent results when parsing large durations and constructing ↵ | Andrey Novikov | 2017-01-09 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | durations from code ActiveSupport::Duration.parse('P3Y') == 3.years # It should be true Duration parsing made independent from any moment of time: Fixed length in seconds is assigned to each duration part during parsing. Changed duration of months and years in seconds to more accurate and logical: 1. The value of 365.2425 days in Gregorian year is more accurate as it accounts for every 400th non-leap year. 2. Month's length is bound to year's duration, which makes sensible comparisons like `12.months == 1.year` to be `true` and nonsensical ones like `30.days == 1.month` to be `false`. Calculations on times and dates with durations shouldn't be affected as duration's numeric value isn't used in calculations, only parts are used. Methods on `Numeric` like `2.days` now use these predefined durations to avoid duplicating of duration constants through the codebase and eliminate creation of intermediate durations. | ||||
* | applies new string literal convention in activesupport/lib | Xavier Noria | 2016-08-06 | 2 | -3/+3 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Change Integer#year to return a Fixnum instead of a Float to improve consistency | Konstantinos Rousis | 2015-10-22 | 1 | -1/+1 |
| | |||||
* | Move Integer#positive? and Integer#negative? query methods to Numeric class | Mehmet Emin İNAÇ | 2015-05-13 | 1 | -19/+0 |
| | | | | By this way Integer, Rational, Float, Fixnum, Bignum classes have the same behaviour | ||||
* | Minor comment fix. [ci skip] | Zoltan Kiss | 2015-05-13 | 1 | -4/+4 |
| | |||||
* | Add Integer#positive? and Integer#negative? query methods in the vein of ↵ | David Heinemeier Hansson | 2015-05-13 | 1 | -0/+19 |
| | | | | Fixnum#zero? | ||||
* | Remove reference to Numeric#from_now, as it is no longer supported | nerdinand | 2015-03-23 | 1 | -15/+0 |
| | |||||
* | updated documentation for Integer | Kuldeep Aggarwal | 2013-11-12 | 1 | -3/+3 |
| | |||||
* | Add missing requires to core_ext/integer/time | Pablo Torres | 2012-12-16 | 1 | -0/+3 |
| | |||||
* | update AS/core_ext docs [ci skip] | Francesco Rodriguez | 2012-09-12 | 2 | -11/+11 |
| | |||||
* | fix incorrect example [ci skip] | Vijay Dev | 2012-05-12 | 1 | -1/+1 |
| | |||||
* | added examples to Integer#multiple_of? | Francesco Rodriguez | 2012-05-11 | 1 | -0/+4 |
| | |||||
* | update stdlib doc urls in comments - ↵ | Trevor Wennblom | 2012-04-07 | 1 | -3/+3 |
| | | | | | | active_support/core_ext/[integer|numeric]/time.rb http://stdlib.rubyonrails.org/ last updated in 2005 | ||||
* | Add ActiveSupport::Inflector.ordinal and Integer#ordinal | Tim Gildea | 2012-02-04 | 1 | -0/+14 |
| | |||||
* | included examples for negative ordinalize | Vijay Dev | 2011-05-08 | 1 | -4/+7 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -2/+2 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Let Integer#multiple_of? accept zero as argument | Xavier Noria | 2010-01-02 | 1 | -1/+1 |
| | | | | | | [#2982 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Integer#even? and Integer#odd? are not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 2 | -16/+6 |
| | |||||
* | Prefer behavior check to RUBY_VERSION to catch 1.8 backports | Jeremy Kemper | 2009-04-29 | 1 | -2/+2 |
| | |||||
* | Convert Integer time extension module to class reopen | Jeremy Kemper | 2009-03-28 | 1 | -42/+36 |
| | |||||
* | Fix dangling Inflector reference | Jeremy Kemper | 2009-03-21 | 1 | -1/+1 |
| | |||||
* | Convert integer extension modules to class reopens | Jeremy Kemper | 2009-03-21 | 2 | -42/+23 |
| | |||||
* | Deprecated Float#years and Float#months, moved Numeric#years and ↵ | Tom Lea | 2008-10-13 | 1 | -0/+45 |
| | | | | Numeric#months into Integer. | ||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -4/+8 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Improve documentation. | Pratik Naik | 2008-04-05 | 2 | -5/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve documentation. | Pratik Naik | 2008-03-26 | 2 | -6/+10 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ruby 1.9 compat: prefer builtin String#starts_ and ends_with? if available ↵ | Jeremy Kemper | 2007-12-15 | 1 | -4/+4 |
| | | | | | | [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Document Inflector.ordinalize and merge docs from String inflections. Closes ↵ | Jeremy Kemper | 2007-01-14 | 1 | -4/+10 |
| | | | | | | #7023. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | r3215@asus: jeremy | 2005-11-20 02:05:56 -0800 | Jeremy Kemper | 2005-11-21 | 1 | -1/+1 |
| | | | | | | | Eliminate double-requires due to Ruby seeing different paths to the same file. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Factor Fixnum and Bignum extensions into Integer class | Nicholas Seckar | 2005-07-19 | 2 | -0/+39 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |