Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ensure number helpers can handle HTML safe strings - closes #1597. | Andrew White | 2011-06-10 | 1 | -0/+7 |
| | |||||
* | removed deprecated methods, and related tests, from ActionPack | Josh Kalderimis | 2011-05-24 | 1 | -9/+0 |
| | |||||
* | added a :prefix option to number_to_human_size | Diego Carrion | 2011-04-27 | 1 | -0/+11 |
| | |||||
* | added test for number_to_phone with an empty string and area code true | Diego Carrion | 2011-04-25 | 1 | -0/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | fixes an issue with number_to_human when converting values which are less ↵ | Josh Kalderimis | 2011-03-16 | 1 | -1/+3 |
| | | | | | | than 1 but greater than -1 [#6576 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Action Pack typos. | R.T. Lechow | 2011-03-05 | 1 | -1/+1 |
| | |||||
* | Fixed number_with_precision rounding error [#6182 state:resolved] | Don Wilson | 2010-12-18 | 1 | -0/+5 |
| | |||||
* | Revert "Fixed number_with_precision rounding error [#6182 state:resolved]" | Piotr Sarnacki | 2010-12-17 | 1 | -5/+0 |
| | | | | This reverts commit 006ec77e60163d57d655479602230672d98e0f10. | ||||
* | Fixed number_with_precision rounding error [#6182 state:resolved] | Don Wilson | 2010-12-17 | 1 | -0/+5 |
| | |||||
* | Added :negative_format option to number_to_currency function [#5894 ↵ | Don Wilson | 2010-11-02 | 1 | -0/+4 |
| | | | | | | state:resolved] Signed-off-by: Andrew White <andyw@pixeltrix.co.uk> | ||||
* | number_to_phone always return safe | Santiago Pastorino | 2010-10-17 | 1 | -1/+2 |
| | |||||
* | Make number_to_human and number_with_precision work with negatives | Santiago Pastorino | 2010-09-05 | 1 | -0/+2 |
| | |||||
* | Fix indentation errors | Santiago Pastorino | 2010-09-05 | 1 | -47/+47 |
| | |||||
* | Fix number_to_human(0) exception [#5532 state:resolved] | Ben Sharpe | 2010-09-05 | 1 | -0/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -1/+1 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Removed deprecated APIs in text and number helpers [#5156 state:resolved] | Łukasz Strzałkowski | 2010-07-26 | 1 | -27/+0 |
| | | | | | | They're deprecated since 2008. It's time to get rid of them. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add a test that used to fail but is fixed now [#3417 state:resolved] | wycats | 2010-04-12 | 1 | -0/+1 |
| | |||||
* | Fix error in number_with_precision with :significant option and zero value ↵ | Bernardo de Pádua | 2010-04-01 | 1 | -0/+9 |
| | | | | | | [#4306 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Rename unsignificant to insignificant. | José Valim | 2010-03-23 | 1 | -8/+8 |
| | |||||
* | NumberHelper methods should now return html_safe strings (when the inputs ↵ | Bernardo de Pádua | 2010-03-22 | 1 | -22/+121 |
| | | | | | | are valid numbers or are html_safe). Also adds :raise => true (used internaly) to make the number helpers throw InvalidNumberError when the given number is invalid. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Adds number_to_human and several improvements in NumberHelper. [#4239 ↵ | Bernardo de Pádua | 2010-03-22 | 1 | -19/+151 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Ruby 1.9: fix number precision test | Jeremy Kemper | 2009-11-04 | 1 | -1/+1 |
| | |||||
* | Fix number_to_precision rounding error [#2071 state:resolved] | wmoxam | 2009-08-08 | 1 | -0/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | ActionPack components should no longer have undeclared dependencies. | Yehuda Katz + Carl Lerche | 2009-06-08 | 1 | -13/+29 |
| | | | | | | | * Tests can be run in isolation * Dependencies added * A few tests modified to avoid depending on AS deps not depended on my files they were testing | ||||
* | Ensure number_to_human_size does not strip zeros from the end [#1763 ↵ | Travis Briggs | 2009-05-17 | 1 | -0/+4 |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Fixed number_to_phone to work with 7 digit numbers [#2176 state:resolved] | rpheath | 2009-03-09 | 1 | -0/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Updated NumberHelper: Full i18n support (except number_to_phone), ↵ | Clemens Kofler | 2008-07-29 | 1 | -22/+26 |
| | | | | | | consolidated API (almost all methods now support :precision, :delimiter and :separator). Added deprecation notices for old API. Added tests for new options [#716 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Refactored NumberHelper API to accept arguments as an options hash [#666 ↵ | Clemens Kofler | 2008-07-21 | 1 | -1/+27 |
| | | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Introduce ActionView::TestCase for testing view helpers. | Joshua Peek | 2008-04-19 | 1 | -2/+2 |
| | |||||
* | Fixed NumberHelper#number_with_precision to properly round in a way that ↵ | David Heinemeier Hansson | 2008-03-24 | 1 | -0/+2 |
| | | | | | | works equally on Mac, Windows, Linux (closes #11409, #8275, #10090, #8027) [zhangyuanyi] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added :format option to NumberHelper#number_to_currency to enable better ↵ | David Heinemeier Hansson | 2008-03-17 | 1 | -0/+1 |
| | | | | | | localization support #11149 [lylo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9052 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix number_to_human_size incorrectly removing trailing zeros. Closes #10099 ↵ | Jeremy Kemper | 2008-02-02 | 1 | -0/+1 |
| | | | | | | [libc, developingchris] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | require abstract_unit directly since test is in load path | Jeremy Kemper | 2008-01-05 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix number_to_human_size when using different precisions. Closes #7536. ↵ | Michael Koziarski | 2007-08-05 | 1 | -0/+4 |
| | | | | | | [RichardStrand, mpalmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Deprecation: remove deprecated human_size helper alias. Use ↵ | Jeremy Kemper | 2007-03-13 | 1 | -6/+0 |
| | | | | | | number_to_human_size instead. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵ | Jeremy Kemper | 2007-01-28 | 1 | -2/+1 |
| | | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Work around a cross-platform number_to_precision inconsistency in unit ↵ | Jeremy Kemper | 2006-12-17 | 1 | -3/+7 |
| | | | | | | tests. Closes #6315. [jesperron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Upgraded NumberHelper with number_to_phone support international formats to ↵ | David Heinemeier Hansson | 2006-10-22 | 1 | -29/+55 |
| | | | | | | comply with ITU E.123 by supporting area codes with less than 3 digits, added precision argument to number_to_human_size (defaults to 1) (closes #6421) [BobSilva] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed that NumberHelper#number_to_delimiter should respect precision of ↵ | David Heinemeier Hansson | 2006-10-09 | 1 | -0/+9 |
| | | | | | | higher than two digits (closes #6231) [phallstrom] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added special case for "1 Byte" in NumberHelper#number_to_human_size (closes ↵ | David Heinemeier Hansson | 2006-07-05 | 1 | -0/+1 |
| | | | | | | #5593) [murpyh@rubychan.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Refactor human_size to exclude decimal place if it is zero. | Marcel Molina | 2006-01-19 | 1 | -13/+14 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed that number_to_currency(1000, {:precision => 0})) should return ↵ | David Heinemeier Hansson | 2005-09-09 | 1 | -0/+2 |
| | | | | | | "$1,000", instead of "$1,000." #2122 [sd@notso.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added :extension option to NumberHelper#number_to_phone #1361 [delynnb] | David Heinemeier Hansson | 2005-06-16 | 1 | -0/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improved tests for NumberHelper | David Heinemeier Hansson | 2005-04-13 | 1 | -1/+29 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Moved TextHelper#human_size to NumberHelper#number_to_human_size, but kept ↵ | David Heinemeier Hansson | 2005-04-12 | 1 | -0/+23 |
an deprecated alias to the old method name git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |