Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | checked all .rb files in the project tree for missing magic comments, one ↵ | Xavier Noria | 2011-07-23 | 1 | -0/+2 |
| | | | | | | | | | | | | | | was missing Came with this one-liner for this: find . -name '*.rb' | \ xargs chardet | \ grep -v ascii | \ cut -d: -f1 -s | \ xargs -n1 ruby -0777 -ne 'puts $FILENAME if $_ !~ /#.*coding:\s*utf/i' Welcome $_. | ||||
* | Ensure number helpers can handle HTML safe strings - closes #1597. | Andrew White | 2011-06-10 | 1 | -1/+1 |
| | |||||
* | Remove trailing white-spaces | Guillermo Iguaran | 2011-06-05 | 1 | -1/+1 |
| | |||||
* | added a :prefix option to number_to_human_size | Diego Carrion | 2011-04-27 | 1 | -3/+6 |
| | |||||
* | Making spacing consistent | Matt Duncan | 2011-04-15 | 1 | -2/+2 |
| | |||||
* | Fixing missing colon on symbol in example | Matt Duncan | 2011-04-15 | 1 | -1/+1 |
| | |||||
* | Negative format example should use a negative number | Matt Duncan | 2011-04-15 | 1 | -1/+1 |
| | |||||
* | fixes an issue with number_to_human when converting values which are less ↵ | Josh Kalderimis | 2011-03-16 | 1 | -1/+1 |
| | | | | | | 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 | -3/+3 |
| | |||||
* | Fixed number_with_precision rounding error [#6182 state:resolved] | Don Wilson | 2010-12-18 | 1 | -2/+3 |
| | |||||
* | Revert "Fixed number_with_precision rounding error [#6182 state:resolved]" | Piotr Sarnacki | 2010-12-17 | 1 | -3/+2 |
| | | | | This reverts commit 006ec77e60163d57d655479602230672d98e0f10. | ||||
* | Fixed number_with_precision rounding error [#6182 state:resolved] | Don Wilson | 2010-12-17 | 1 | -2/+3 |
| | |||||
* | made a pass to the docs of :negative_format | Xavier Noria | 2010-11-03 | 1 | -5/+7 |
| | |||||
* | Added :negative_format option to number_to_currency function [#5894 ↵ | Don Wilson | 2010-11-02 | 1 | -7/+16 |
| | | | | | | state:resolved] Signed-off-by: Andrew White <andyw@pixeltrix.co.uk> | ||||
* | lets not invert the hash on every iteration through this loop | Aaron Patterson | 2010-10-18 | 1 | -1/+3 |
| | |||||
* | use -= in place of the expanded form | Aaron Patterson | 2010-10-18 | 1 | -1/+1 |
| | |||||
* | implicitly return nil if there is no number | Aaron Patterson | 2010-10-18 | 1 | -2/+2 |
| | |||||
* | implicit return of nil | Aaron Patterson | 2010-10-18 | 1 | -1/+1 |
| | |||||
* | use regex escape sequences to shorten stuff up | Aaron Patterson | 2010-10-18 | 1 | -2/+2 |
| | |||||
* | join strings rather than resizing buffer | Aaron Patterson | 2010-10-18 | 1 | -2/+2 |
| | |||||
* | Invoke html_escape on the proper receiver | Santiago Pastorino | 2010-10-18 | 1 | -1/+1 |
| | |||||
* | Tidy up a bit this code | Santiago Pastorino | 2010-10-18 | 1 | -4/+6 |
| | |||||
* | Why strip only the extension, this can be done by the user | Santiago Pastorino | 2010-10-18 | 1 | -1/+1 |
| | |||||
* | This or login doesn't make sense | Santiago Pastorino | 2010-10-18 | 1 | -3/+3 |
| | |||||
* | Use unless instead of if nil? | Santiago Pastorino | 2010-10-18 | 1 | -1/+1 |
| | |||||
* | Add missing require | Santiago Pastorino | 2010-10-18 | 1 | -0/+1 |
| | |||||
* | parse number only if options[:raise] is provided | Santiago Pastorino | 2010-10-17 | 1 | -4/+2 |
| | |||||
* | number_to_phone always return safe | Santiago Pastorino | 2010-10-17 | 1 | -4/+1 |
| | |||||
* | Make number_to_human and number_with_precision work with negatives | Santiago Pastorino | 2010-09-05 | 1 | -2/+2 |
| | |||||
* | Fix code style a bit | Santiago Pastorino | 2010-09-05 | 1 | -2/+1 |
| | |||||
* | Fix number_to_human(0) exception [#5532 state:resolved] | Ben Sharpe | 2010-09-05 | 1 | -1/+2 |
| | | | | 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 | -44/+4 |
| | | | | | | They're deprecated since 2008. It's time to get rid of them. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Action View is now titled. | Rizwan Reza | 2010-06-21 | 1 | -0/+1 |
| | |||||
* | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-15 | 1 | -1/+1 |
|\ | |||||
| * | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -1/+1 |
| | | |||||
* | | Updated all number helpers with :locale option. | Slobodan Kovacevic | 2010-06-11 | 1 | -1/+9 |
|/ | |||||
* | Added :locale option explanation for number_to_currency | Slobodan Kovacevic | 2010-06-10 | 1 | -0/+2 |
| | |||||
* | Added default currency values to NumberHelper and pass them to I18n.translate | Santiago Pastorino | 2010-05-17 | 1 | -2/+5 |
| | | | | | | [#4604 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix error in number_with_precision with :significant option and zero value ↵ | Bernardo de Pádua | 2010-04-01 | 1 | -2/+6 |
| | | | | | | [#4306 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 1 | -0/+1 |
| | |||||
* | Rename unsignificant to insignificant. | José Valim | 2010-03-23 | 1 | -13/+13 |
| | |||||
* | NumberHelper methods should now return html_safe strings (when the inputs ↵ | Bernardo de Pádua | 2010-03-22 | 1 | -29/+86 |
| | | | | | | 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 | -92/+229 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove some of the blank rescues from number helper. This makes the code ↵ | Xavier Shay | 2010-03-05 | 1 | -44/+42 |
| | | | | | | easier to understand, as you're not left wondering what the rescue is actually doing. This does not change documented/tested behaviour. Signed-off-by: wycats <wycats@gmail.com> | ||||
* | For performance reasons, you can no longer call html_safe! on Strings. ↵ | Yehuda Katz | 2010-01-31 | 1 | -1/+1 |
| | | | | | | | | | | | | Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). * Additionally, instead of doing concat("</form>".html_safe), you can do safe_concat("</form>"), which will skip both the flag set, and the flag check. * For the first pass, I converted virtually all #html_safe!s to #html_safe, and the tests pass. A further optimization would be to try to use #safe_concat as much as possible, reducing the performance impact if we know up front that a String is safe. | ||||
* | NumberHelper#number_to_currency should output html_safe strings so the units ↵ | David Heinemeier Hansson | 2010-01-05 | 1 | -1/+1 |
| | | | | are not escaped | ||||
* | NumberHelper depends on big decimal extensions | Joshua Peek | 2009-10-03 | 1 | -0/+1 |
| | |||||
* | Fix number_to_precision rounding error [#2071 state:resolved] | wmoxam | 2009-08-08 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ensure number_to_human_size does not strip zeros from the end [#1763 ↵ | Travis Briggs | 2009-05-17 | 1 | -1/+6 |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> |