activesupport 5.0.0.beta3 → 5.0.0.beta4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activesupport might be problematic. Click here for more details.

Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +171 -4
  3. data/lib/active_support.rb +12 -0
  4. data/lib/active_support/cache.rb +32 -23
  5. data/lib/active_support/cache/strategy/local_cache.rb +1 -1
  6. data/lib/active_support/callbacks.rb +4 -4
  7. data/lib/active_support/concurrency/share_lock.rb +2 -2
  8. data/lib/active_support/core_ext/array/grouping.rb +6 -10
  9. data/lib/active_support/core_ext/date/conversions.rb +1 -0
  10. data/lib/active_support/core_ext/date_and_time/calculations.rb +2 -0
  11. data/lib/active_support/core_ext/date_and_time/compatibility.rb +18 -0
  12. data/lib/active_support/core_ext/date_time.rb +1 -1
  13. data/lib/active_support/core_ext/date_time/calculations.rb +30 -8
  14. data/lib/active_support/core_ext/date_time/compatibility.rb +5 -0
  15. data/lib/active_support/core_ext/enumerable.rb +16 -0
  16. data/lib/active_support/core_ext/hash/conversions.rb +1 -1
  17. data/lib/active_support/core_ext/hash/keys.rb +1 -1
  18. data/lib/active_support/core_ext/marshal.rb +5 -2
  19. data/lib/active_support/core_ext/module/attribute_accessors.rb +2 -2
  20. data/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +2 -2
  21. data/lib/active_support/core_ext/module/delegation.rb +2 -5
  22. data/lib/active_support/core_ext/module/introspection.rb +4 -0
  23. data/lib/active_support/core_ext/object/blank.rb +7 -3
  24. data/lib/active_support/core_ext/object/json.rb +6 -0
  25. data/lib/active_support/core_ext/string/conversions.rb +3 -2
  26. data/lib/active_support/core_ext/string/inflections.rb +9 -0
  27. data/lib/active_support/core_ext/string/output_safety.rb +1 -1
  28. data/lib/active_support/core_ext/time.rb +1 -0
  29. data/lib/active_support/core_ext/time/calculations.rb +7 -0
  30. data/lib/active_support/core_ext/time/compatibility.rb +5 -0
  31. data/lib/active_support/dependencies.rb +9 -52
  32. data/lib/active_support/dependencies/interlock.rb +6 -8
  33. data/lib/active_support/deprecation/reporting.rb +0 -1
  34. data/lib/active_support/duration.rb +20 -0
  35. data/lib/active_support/duration/iso8601_parser.rb +122 -0
  36. data/lib/active_support/duration/iso8601_serializer.rb +51 -0
  37. data/lib/active_support/evented_file_update_checker.rb +18 -13
  38. data/lib/active_support/execution_wrapper.rb +117 -0
  39. data/lib/active_support/executor.rb +6 -0
  40. data/lib/active_support/file_update_checker.rb +22 -2
  41. data/lib/active_support/gem_version.rb +1 -1
  42. data/lib/active_support/i18n_railtie.rb +2 -2
  43. data/lib/active_support/inflector/methods.rb +9 -0
  44. data/lib/active_support/number_helper.rb +8 -1
  45. data/lib/active_support/number_helper/number_to_delimited_converter.rb +1 -1
  46. data/lib/active_support/number_helper/number_to_phone_converter.rb +11 -2
  47. data/lib/active_support/number_helper/number_to_rounded_converter.rb +5 -3
  48. data/lib/active_support/reloader.rb +129 -0
  49. data/lib/active_support/rescuable.rb +10 -0
  50. data/lib/active_support/time_with_zone.rb +9 -14
  51. data/lib/active_support/values/time_zone.rb +14 -5
  52. metadata +12 -5
  53. data/lib/active_support/core_ext/date_time/zones.rb +0 -6
@@ -1,6 +0,0 @@
1
- require 'date'
2
- require 'active_support/core_ext/date_and_time/zones'
3
-
4
- class DateTime
5
- include DateAndTime::Zones
6
- end