1. 17 10月, 2018 13 次提交
  2. 16 10月, 2018 9 次提交
  3. 15 10月, 2018 7 次提交
  4. 14 10月, 2018 2 次提交
  5. 13 10月, 2018 2 次提交
    • E
      Fix issue where duration where always rounded up to a second: · c85e3f65
      Edouard CHIN 提交于
      - Adding a Float as a duration to a datetime would result in the Float
        being rounded. Doing something like would have no effect because the
        0.45 seconds would be rounded to 0 second.
      
        ```ruby
          time = DateTime.parse("2018-1-1")
          time += 0.45.seconds
        ```
      
        This behavior was intentionally added a very long time ago, the
        reason was because Ruby 1.8 was using `Integer#gcd` in the
        constructor of Rational which didn't accept a float value.
      
        That's no longer the case and doing `Rational(0.45, 86400)` would
        now perfectly work fine.
      
      - Fixes #34008
      c85e3f65
    • D
      Improve model attribute accessor method names for backtraces · 99c87ad2
      Dylan Thacker-Smith 提交于
      Ruby uses the original method name, so will show the __temp__ method
      name in the backtrace. However, in the common case the method name
      is compatible with the `def` keyword, so we can avoid the __temp__
      method name in that case to improve the name shown in backtraces
      or TracePoint#method_id.
      99c87ad2
  6. 12 10月, 2018 7 次提交