Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove deprecated core_ext/big_decimal/yaml_conversions file | Rafael Mendonça França | 2015-01-04 | 1 | -14/+0 |
| | |||||
* | Prevent Numeric#to_s from allocating an array | Jean Boussier | 2014-11-28 | 1 | -7/+6 |
| | |||||
* | Fix isolated tests | Rafael Mendonça França | 2014-02-01 | 1 | -0/+1 |
| | |||||
* | Remove BigDecimal#to_d | David Celis | 2014-02-01 | 1 | -7/+0 |
| | | | | | | This was backported for Ruby 1.8 support and is no longer needed. Signed-off-by: David Celis <me@davidcel.is> | ||||
* | Don't require BigDecimal serialization extension | David Celis | 2014-02-01 | 2 | -8/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rails currently provides an extension to BigDecimal that redefines how it is serialized to YAML. However, as noted in #12467, this does not work as expected. When ActiveSupport is required, BigDecimal YAML serialization does not maintain the object type. It instead ends up serializing the number represented by the BigDecimal itself which, when loaded by YAML later, becomes a Float: ```ruby require 'yaml' require 'bigdecimal' yaml = BigDecimal('13.37').to_yaml YAML.load(yaml).class require 'active_support/all' yaml = BigDecimal('13.37').to_yaml YAML.load(yaml).class ``` @tenderlove posits that we should deprecate the custom BigDecimal serialization and let Ruby handle it. For the time being, users who require this serialization for backwards compatibility can manually `require 'active_support/core_ext/big_decimal/yaml_conversions'`. This will close #12467 and deprecate the custom BigDecimal#to_yaml. Signed-off-by: David Celis <me@davidcel.is> | ||||
* | add require to suppress warning; remove variable | Vipul A M | 2013-04-04 | 1 | -0/+1 |
| | |||||
* | Moving NumberHelpers from ActionView to ActiveSupport | Andrew Mutz | 2012-05-27 | 1 | -2/+7 |
| | |||||
* | No need to override the to_yaml method in BigDecimal | Rafael Mendonça França | 2012-01-04 | 1 | -15/+0 |
| | |||||
* | No need to use rescue block to require psych | Rafael Mendonça França | 2012-01-04 | 1 | -6/+1 |
| | |||||
* | No need to check if YAML::ENGINE is defined since ruby 1.9 does that | Rafael Mendonça França | 2012-01-04 | 1 | -1/+1 |
| | |||||
* | only backport the to_d method if it does not exist | Aaron Patterson | 2011-08-24 | 1 | -2/+5 |
| | |||||
* | Remove unneeded yaml_as declaration | brainopia | 2011-01-28 | 1 | -2/+0 |
| | |||||
* | prefering psych as the yaml parser if possible, fixing assertions for YAML ↵ | Aaron Patterson | 2011-01-21 | 1 | -0/+6 |
| | | | | 1.1 compatibility | ||||
* | fixing psych support in big decimal, fixing tests to support YAML 1.1 | Aaron Patterson | 2011-01-21 | 1 | -0/+7 |
| | |||||
* | adding to_d to BigDecimal | Aaron Patterson | 2011-01-10 | 1 | -0/+4 |
| | |||||
* | Convert bigdecimal extension modules to class reopens | Jeremy Kemper | 2009-03-21 | 1 | -30/+20 |
| | |||||
* | * Introduce ActiveSupport.core_ext Integer, %w(conversions time etc) | Jeremy Kemper | 2009-03-21 | 1 | -0/+37 |
* Convert some extension modules to simply reopening the class * Remove deprecated Float time extensions * Fold Base64 extension into ActiveSupport::Base64 since stdlib Base64 is gone |