Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch '3-2-17' into 3-2-stable | Rafael Mendonça França | 2014-02-18 | 1 | -1/+13 |
|\ | | | | | | | | | Conflicts: actionpack/CHANGELOG.md | ||||
| * | Escape format, negative_format and units options of number helpers | Rafael Mendonça França | 2014-02-18 | 1 | -1/+13 |
| | | | | | | | | | | | | | | Previously the values of these options were trusted leading to potential XSS vulnerabilities. Fixes: CVE-2014-0081 | ||||
* | | Fix documentation of number_to_currency helper | Rafael Mendonça França | 2013-12-04 | 1 | -4/+4 |
|/ | | | | | | Now users have to explicit mark the unit as safe if they trust it. Closes #13161 | ||||
* | Escape the unit value provided to number_to_currency | Michael Koziarski | 2013-12-02 | 1 | -1/+1 |
| | | | | | | Fixes CVE-2013-6415 Previously the values were trusted blindly allowing for potential XSS attacks. | ||||
* | Backport #9347 to rails 3.2 | hoffm | 2013-03-19 | 1 | -1/+1 |
| | |||||
* | do not freeze NumberHelper defaults. | Yves Senn | 2013-03-18 | 1 | -2/+2 |
| | | | | Closes #9767. | ||||
* | Add another NumberHelper missing dependency | Rodrigo Rosenfeld Rosas | 2013-01-29 | 1 | -0/+1 |
| | | | | | Another missing dependency, now affecting #number_to_percentage. It depends on reverse_merge. | ||||
* | Add NumberHelper missing dependency | Rodrigo Rosenfeld Rosas | 2013-01-29 | 1 | -0/+1 |
| | | | symbolize_keys depends on hash/keys AS core extension | ||||
* | Fix NumberHelper options wrapping to prevent verbatim blocks being rendered ↵ | Mark J. Titorenko | 2012-07-02 | 1 | -90/+159 |
| | | | | | | | | | | instead of line continuations. While I'm at it, wrap long comment lines consistently. Conflicts: actionpack/lib/action_view/helpers/number_helper.rb There was just one conflict related to the addition of the :format option to number_to_percentage. | ||||
* | fix number_to_human docs [ci skip] | Vijay Dev | 2012-04-26 | 1 | -2/+2 |
| | |||||
* | document `:raise` option support for several helpers [ci skip] | Jonathan Roes | 2012-01-21 | 1 | -0/+3 |
| | |||||
* | Infer currency negative format from positive one. | Tsutomu Kuroda | 2012-01-05 | 1 | -0/+1 |
| | | | | | | | | When a locale file sets the format of the positive currency value as '%n %u', the default negative currency format should be '-%n %u'. Cherry-picked from master (6724c8c8) | ||||
* | copy edits | Vijay Dev | 2012-01-04 | 1 | -10/+7 |
| | |||||
* | improve doc in number helper options | Pablo Ifran | 2012-01-04 | 1 | -19/+57 |
| | |||||
* | put back the removed eg | Vijay Dev | 2011-11-18 | 1 | -0/+1 |
| | |||||
* | Fix a number_with_delimiter :separator example | Edward Anderson | 2011-11-17 | 1 | -1/+1 |
| | |||||
* | Cosmetic fix in number_to_currency docs | Alexey Vakhov | 2011-11-10 | 1 | -2/+2 |
| | |||||
* | remove user-specified delimiter from start when no area code is present (in ↵ | Mac Martine | 2011-10-12 | 1 | -1/+1 |
| | | | | number_to_phone) | ||||
* | 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 {} \;) |