aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper
Commit message (Expand)AuthorAgeFilesLines
* Suppress `warning: BigDecimal.new is deprecated`Yasuo Honda2017-12-151-1/+1
* Remove unused `calculate_rounded_number` and `digit_count`yuuji.yaginuma2017-11-041-8/+0
* [Active Support] require_relative => requireAkira Matsuda2017-10-212-6/+6
* Remove unused `NumberToRoundedConverter#digits_and_rounded_number`yuuji.yaginuma2017-09-191-12/+0
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-119-0/+9
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-099-0/+9
* Merge branch 'master' into require_relative_2017Xavier Noria2017-07-021-1/+1
|\
| * Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-029-9/+0
| * Merge pull request #29540 from kirs/rubocop-frozen-stringMatthew Draper2017-07-029-0/+9
| |\
| | * Enforce frozen string in RubocopKir Shatrov2017-07-019-0/+9
| * | Make ActiveSupport frozen string literal friendly.Pat Allan2017-06-201-1/+1
| |/
* / [Active Support] require => require_relativeAkira Matsuda2017-07-012-6/+6
|/
* Don't create extra assignment, just returnVipul A M2017-06-041-3/+3
* number_to_human_converter: round before calculating exponentMichael Hoy2017-03-161-4/+2
* number_to_rounded_converter: extract rounding logicMichael Hoy2017-03-162-26/+70
* No need to nodoc private methodsAkira Matsuda2016-12-241-5/+5
* Remove deprecated :prefix optionAndrew White2016-11-131-5/+1
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-294-4/+4
* applies remaining conventions across the projectXavier Noria2016-08-062-2/+0
* normalizes indentation and whitespace across the projectXavier Noria2016-08-062-2/+0
* modernizes hash syntax in activesupportXavier Noria2016-08-062-4/+4
* applies new string literal convention in activesupport/libXavier Noria2016-08-067-23/+23
* Freezing couple of more string '0' & '.' and using the string appending to do...Ankit Gupta2016-04-111-2/+4
* Freezing the dots as they are causing extra string initialization on every it...Ankit Gupta2016-04-102-2/+2
* `number_to_phone` formats number with regexpPan GaoYong2016-04-021-2/+11
* Fix broken number_to_currency testsPrathamesh Sonpatki2016-01-291-0/+2
* Change number_to_currency behavior for checking negativityPrathamesh Sonpatki2016-01-291-5/+1
* Add support for Petabyte and Exabyte in number to human sizeAkshay Vishnoi2015-12-221-1/+1
* Merge pull request #20872 from maxjacobson/more-humane-roundingSean Griffin2015-10-201-2/+4
|\
| * Round some numbers more humanelyMax Jacobson2015-07-261-2/+4
* | - Extracted `DELIMITED_REGEX` to `delimited_regex` method and made use of us...Vipul A M2015-08-281-2/+7
* | Deprecate the :prefix option of `number_to_human_size`Jean Boussier2015-08-101-0/+4
|/
* Give respond_to? a SymbolAkira Matsuda2015-05-201-1/+1
* Freeze static arguments for gsubbrainopia2015-04-024-4/+4
* Prefer string patterns for gsubbrainopia2015-04-024-4/+4
* `number_to_percentage` and `precision: 0` work with `NAN` and `INFINITY`.Yves Senn2015-03-061-1/+1
* Doc fix [ci skip]Sushruth Sivaramakrishnan2015-03-051-2/+2
* Merge pull request #12067 from jackxxu/keep_precisionRafael Mendonça França2015-02-061-25/+28
* Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-1/+1
* Do gsub with a regexp instead of a stringPablo Herrero2014-10-292-2/+2
* Use zero-padding for number_to_rounded_converterZachary Scott2014-08-221-1/+1
* Fixes the digits counter of AS's NumberToRoundedConverterXavier Noria2014-08-201-1/+1
* Fix AS::NumberHelper results with rationalsJuanjo Bazán2014-05-311-5/+1
* Use block parameter rather than `$1` during `gsub!` so `ActiveSupport::SafeBu...Mark J. Titorenko2014-05-121-1/+3
* fix `number_to_percentage` with `Float::NAN`, `Float::INFINITY`.Yves Senn2014-03-171-2/+1
* Fix AS::NumberHelper results with large precisionsKenta Murata & Akira Matsuda2013-12-201-7/+37
* Nodoc missing number helper classes in AS [ci skip]Carlos Antonio da Silva2013-12-112-2/+2
* Remove earlier return in favor of conditionalCarlos Antonio da Silva2013-12-031-6/+9
* Change delimiter check order: first check if it is presentCarlos Antonio da Silva2013-12-031-3/+3
* Make both conversion methods work similarlyCarlos Antonio da Silva2013-12-031-1/+2