1. 09 11月, 2015 2 次提交
  2. 08 11月, 2015 1 次提交
  3. 07 11月, 2015 1 次提交
    • S
      Parameterize with options to preserve case of string · c9143e15
      Swaathi K 提交于
      Added test cases
      
      Using kwargs instead of three seperate functions
      
      Updated parameterize in transliterate.rb
      
      Updated parameterize in transliterate.rb
      
      Added deprecation warnings and updating RDoc+Guide
      
      Misspelled separtor. Fixed.
      
      Deprecated test cases and added support to parameterize with keyword parameters
      
      Squashing commits.
      
      Fixed test cases and added deprecated test cases
      
      Small changes to Gemfile.lock and CHANGELOG
      
      Update Gemfile.lock
      c9143e15
  4. 06 11月, 2015 1 次提交
  5. 05 11月, 2015 1 次提交
  6. 31 10月, 2015 1 次提交
  7. 30 10月, 2015 1 次提交
  8. 26 10月, 2015 1 次提交
  9. 25 10月, 2015 1 次提交
  10. 21 10月, 2015 3 次提交
  11. 16 10月, 2015 2 次提交
    • M
      fixes #21815 · 86d2924a
      Maarten Jacobs 提交于
      The default timestamp used for AR is `updated_at` in nanoseconds! (:nsec) This causes issues on any machine that runs an OS that supports nanoseconds timestamps, i.e. not-OS X, where the cache_key of the record persisted in the database (milliseconds precision) is out-of-sync with the cache_key in the ruby VM.
      
      This commit adds:
      
      A test that shows the issue, it can be found in the separate file `cache_key_test.rb`, because
      - model couldn't be defined inline
      - transactional testing needed to be turned off to get it to pass the MySQL tests
      This seemed cleaner than putting it in an existing testcase file.
      
      It adds :usec as a dateformat that calculates datetime in microseconds
      
      It sets precision of cache_key to :usec instead of :nsec, as no db supports nsec precision on timestamps
      86d2924a
    • D
      Expand support for ActiveSupport::TimeWithZone#utc? · 8e847dcd
      David Celis 提交于
      Currently, ActiveSupport::TimeWithZone#utc? simply runs a check to see
      if the linked ActiveSupport::TimeZone's name is "UTC". This will only
      return true for ActiveSupport::TimeZone["UTC"], but not for time zones
      such as "Etc/UTC", "Etc/Universal", or other time zones that are aliases
      for UTC. Interestingly enough, ActiveSupport::TimeWithZone#utc? is also
      aliased as #gmt? but will return false for the "GMT" timezone (along
      with other TZInfo aliases for GMT).
      
      Instead of running a simple check on the TimeZone name, we can rely on
      the underlying TZInfo::TimezonePeriod and TZInfo::TimezoneOffset which
      keep a record of of the offset's abbreviated name. The possibilities
      here for UTC time zones are `:UTC`, `:UCT`, and `:GMT`.
      Signed-off-by: NDavid <me@davidcel.is>
      8e847dcd
  12. 14 10月, 2015 1 次提交
    • B
      Fix bug where custom deprecators are not used. · 6c98fbd9
      Brandon Dunne 提交于
      Add tests for ActiveSupport::Deprecation.deprecate_methods
      Modify ActiveSupport::Testing::Deprecation to allow a custom deprecator
      Leverage ActiveSupport::Testing::Deprecation assert_deprecated
      Update documentation for ActiveSupport::Deprecation.deprecate_methods
      
      Use cases:
      Using the default deprecator => "removed from Rails X.Y"
      Passing a custom deprecator in the options hash => "removed from MyGem next-release"
      Deprecating methods directly from custom deprecator => "removed from MyGem next-release"
      6c98fbd9
  13. 02 10月, 2015 2 次提交
  14. 30 9月, 2015 1 次提交
  15. 29 9月, 2015 1 次提交
  16. 26 9月, 2015 2 次提交
  17. 25 9月, 2015 1 次提交
    • L
      Make `assert_difference` return the result of the yielded block. · 564b1620
      Lucas Mazza 提交于
      With this we can perform new assertions on the returned value without having
      to cache it with an outer variable or wrapping all subsequent assertions inside
      the `assert_difference` block.
      
      Before:
      
      ```
      post = nil
      assert_difference -> { Post.count }, 1 do
        Post.create
      end
      
      assert_predicate post, :persisted?
      ```
      
      Now:
      
      ```
      post = assert_difference -> { Post.count } do
        Post.create
      end
      
      assert_predicate post, :persisted?
      ```
      564b1620
  18. 23 9月, 2015 1 次提交
  19. 21 9月, 2015 2 次提交
  20. 15 9月, 2015 1 次提交
  21. 06 9月, 2015 1 次提交
  22. 29 8月, 2015 1 次提交
    • L
      ArrayInquirer to correctly find symbols or strings · 7abbe137
      Leigh Halliday 提交于
      The problem existed where if your ArrayInquirer values were
      strings but you checked them using any? with a symbol, it would
      not find the value. Now it will correctly check whether both
      the String form or the Symbol form are included in the Array.
      
      `
      7abbe137
  23. 28 8月, 2015 1 次提交
    • V
      - Extracted `DELIMITED_REGEX` to `delimited_regex` method and made use of ... · 7f23c5d5
      Vipul A M 提交于
      - Extracted `DELIMITED_REGEX` to `delimited_regex` method and made use of  user passed `options[:delimited_regex]` if available. Changed `DELIMITED_REGEX` to `DEFAULT)DELIMITED_REGEX` to signify what it means.
      - Added tests for number to delimited and number to currency in both actionview and activesupport.
      
      Changes
      
      Changes
      7f23c5d5
  24. 26 8月, 2015 1 次提交
  25. 20 8月, 2015 2 次提交
  26. 17 8月, 2015 1 次提交
  27. 13 8月, 2015 2 次提交
  28. 11 8月, 2015 1 次提交
  29. 07 8月, 2015 1 次提交
  30. 27 7月, 2015 1 次提交
  31. 23 7月, 2015 1 次提交