1. 28 3月, 2019 1 次提交
  2. 26 3月, 2019 1 次提交
  3. 23 3月, 2019 1 次提交
  4. 22 3月, 2019 1 次提交
  5. 19 3月, 2019 1 次提交
    • A
      Fix Time#advance to work with dates before 1001-03-07 · 58ac3f21
      Andrew White 提交于
      In #10634 the behavior of Time#advance was changed to maintain a
      proleptic gregorian calendar for dates before calendar reform. However
      it didn't full address dates a long time before calendar reform and
      they gradually drift away from the proleptic calendar the further you
      go back in time. Fix this by always converting the date to gregorian
      before calling advance which sets the reform date to -infinity.
      58ac3f21
  6. 16 3月, 2019 1 次提交
  7. 13 3月, 2019 1 次提交
  8. 12 3月, 2019 1 次提交
  9. 11 3月, 2019 1 次提交
    • E
      Prep release · 7c87fd56
      eileencodes 提交于
      * Update RAILS_VERSION
      * Bundle
      * rake update_versions
      * rake changelog:header
      7c87fd56
  10. 06 3月, 2019 1 次提交
  11. 26 2月, 2019 1 次提交
  12. 14 2月, 2019 1 次提交
    • X
      Register new autoloading in AS CHANGELOG [ci skip] · e53430fa
      Xavier Noria 提交于
      There is too much to say about it for a CHANGELOG entry, and linking to
      the original PR could mislead if there are later changes as already
      happened with the gem dependency, so just a one-liner.
      
      For final we'll up to date documentation.
      e53430fa
  13. 12 2月, 2019 1 次提交
  14. 09 2月, 2019 1 次提交
  15. 31 1月, 2019 1 次提交
    • A
      Remove the Kernel#` override that turns ENOENT into nil · 545b6e58
      Akinori MUSHA 提交于
      ActiveSupport overrides `` Kernel#` `` so that it would not raise
      `Errno::ENOENT` but return `nil` instead (due to the last statement
      `STDERR.puts` returning nil) if a given command were not found.
      Because of this, you cannot safely say somthing like
      `` `command`.chomp `` when ActiveSupport is loaded.
      
      It turns out that this is an outdated monkey patch for Windows
      platforms to emulate Unix behavior on an ancient version of Ruby, and
      it should be removed by now.
      545b6e58
  16. 30 1月, 2019 2 次提交
  17. 19 1月, 2019 1 次提交
  18. 18 1月, 2019 2 次提交
  19. 10 1月, 2019 1 次提交
    • K
      Fix safe_constantize to not raise a LoadError. · a930f5ba
      Keenan Brock 提交于
      ### Summary
      
      There was an issues when using `safe_constantize` on a string that has
      the wrong case.
      
      File `em.rb` defines `EM`.
      `"Em".safe_constantize` causes a little confusion with the autoloader.
      The autoloader finds file "em.rb",
      expecting it to define `Em`, but `Em` is not defined.
      The autoloader raises a `LoadError`, which is good,
      But `safe_constantize` is defined to return `nil` when a class is not found.
      
      ### Before
      
      ```
      "Em".safe_constantize
      LoadError: Unable to autoload constant Em, \
      expected rails/activesupport/test/autoloading_fixtures/em.rb to define it
      ```
      
      ### After
      
      ```
      "Em".safe_constantize
      # => nil
      ```
      a930f5ba
  20. 27 12月, 2018 1 次提交
  21. 20 12月, 2018 1 次提交
  22. 30 11月, 2018 1 次提交
  23. 02 11月, 2018 1 次提交
    • N
      Make #to_options an alias for #symbolize_keys · 4ba5386e
      Nick Weiland 提交于
      Fixes #34359
      
      Prior to 5.2.0 (2cad8d71), HashWithIndifferentAccess#to_options acted as
      an alias to HashWithIndifferentAccess#symbolize_keys. Now, #to_options
      returns an instance of HashWithIndifferentAccess while #symbolize_keys
      returns and instance of Hash.
      
      This pr makes it so HashWithIndifferentAccess#to_options acts as an
      alias for HashWithIndifferentAccess#symbolize_keys once again.
      4ba5386e
  24. 29 10月, 2018 1 次提交
  25. 19 10月, 2018 1 次提交
  26. 16 10月, 2018 1 次提交
  27. 13 10月, 2018 1 次提交
    • 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
  28. 12 10月, 2018 2 次提交
  29. 08 10月, 2018 1 次提交
  30. 03 10月, 2018 2 次提交
  31. 29 9月, 2018 1 次提交
  32. 28 9月, 2018 2 次提交
  33. 11 9月, 2018 1 次提交
  34. 08 9月, 2018 1 次提交
  35. 07 9月, 2018 1 次提交