Skip to content
This repository

Feb 25, 2013

  1. David Heinemeier Hansson

    Preparing for 4.0.0.beta1 release

    dhh authored
  2. Chris Baynes

    Keep second fraction when DateTime#change is called.

    chris-baynes authored

Feb 24, 2013

  1. Rafael Mendonça França

    Add more information to the CHANGELOG entry [ci skip]

    rafaelfranca authored
  2. stopdropandrew

    Added `ActiveSupport::TimeWithZone#to_r` for `Time#at` compatibility.

    stopdropandrew authored
  3. Xavier Noria

    did a pass over the AS changelog [ci skip]

    fxn authored

Feb 22, 2013

  1. Carlos Antonio da Silva

    Changelog improvements, use 1.9 style hash in examples [ci skip]

  2. Michael Hoffman

    Address edge case for number_to_human with units option.

    ActiveSupport::NumberHelper#number_to_human now returns the number unaltered when
    the units hash does not contain the needed key, e.g. when the number provided is less
    than the largest key provided.
    hoffm authored

Feb 21, 2013

  1. Gagan Awhad

    Added beginning_of_minute support to core_ext calculations for Time a…

    …nd DateTime
    gaganawhad authored

Feb 20, 2013

  1. Xavier Noria

    moves the new :nsec date format to the Active Support changelog [ci s…

    fxn authored

Feb 10, 2013

  1. beyond

    added compress options for gzip

    added test for compress options of gzip
    update changelog
    beyond authored

Feb 06, 2013

  1. Carlos Antonio da Silva

    Update changelog from #9128 with author name

    And improve AS changelog a bit [ci skip]

Jan 31, 2013

  1. James Harton

    Modify TimeWithZone#as_json to return 3DP of sub-second accuracy by d…

    …efault, since it's allowed by the spec and is very useful.
    jamesotron authored

Jan 28, 2013

  1. Carlos Antonio da Silva

    Move AS changelog entry to the top, improve AP changelog a bit

    [ci skip]

Jan 22, 2013

  1. antoinelyset

    Improve String#squish whitespaces matching

    antoinelyset authored

Jan 21, 2013

  1. Andrew White

    Standardise the return value of `to_time`

    This commit standardises the return value of `to_time` to an instance
    of `Time` in the local system timezone, matching the Ruby core and
    standard library behavior.
    The default form for `String#to_time` has been changed from :utc to
    :local but research seems to suggest the latter is the more common form.
    Also fix an edge condition with `String#to_time` where the string has
    a timezone offset in it and the mode is :local. e.g:
      # Before:
      >> "2000-01-01 00:00:00 -0500".to_time(:local)
      => 2000-01-01 05:00:00 -0500
      # After:
      >> "2000-01-01 00:00:00 -0500".to_time(:local)
      => 2000-01-01 00:00:00 -0500
    Closes #2453
    pixeltrix authored

Jan 10, 2013

  1. Yves Senn

    extract PerformanceTest into rails-performance_tests gem

    senny authored

Jan 08, 2013

  1. Jeremy Kemper

    CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml.

    jeremy authored tenderlove committed
  2. Jeremy Kemper

    Revert "Merge branch 'master-sec'"

    This reverts commit 88cc168, reversing
    changes made to f049016.
    jeremy authored tenderlove committed
  3. Jeremy Kemper

    CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml.

    jeremy authored tenderlove committed

Jan 05, 2013

  1. Yves Senn

    deprecate `assert_blank` and `assert_present`.

    They don't add any benefits over `assert object.blank?`
    and `assert object.present?`
    senny authored
  2. Carlos Antonio da Silva

    Move changelog entry in railties to the top

    Other minor changelog improvements [ci skip]

Jan 04, 2013

  1. Kelly Stannard

    Better error message for String#to_date

    I did this because to_date gives a very unhelpful error message if you
    do not pass in a correct date. In the process I think this cleans up the
     code nicely and even better it tends to be slightly faster than the
     current implementation.
    kwstannard authored
  2. bUg.

    Added ability to compare date/time with infinity

    Date, DateTime, Time and TimeWithZone can now be compared to infinity,
      so it's now possible to create ranges with one infinite bound and
      date/time object as another bound.
      Ex.: @range =, Float::INFINITY)
    Also it's possible to check inclusion of date/time in range with
      Ex.: @range.include?( + 1.year) # => true
           @range.include?( + 1.year) # => true
    Ability to create date/time ranges with infinite bound is required
      for handling postgresql range types.
    slbug authored

Jan 02, 2013

  1. Carlos Antonio da Silva

    Changelog improvements [ci skip]

  2. Akira Matsuda

    missing changelog entry for #8682

    amatsuda authored rafaelfranca committed

Dec 28, 2012

  1. Jeremy Kemper

    Introduce assert_not to replace 'assert !foo'

    jeremy authored

Dec 21, 2012

  1. Rafael Mendonça França

    Merge pull request #7376 from dmitriy-kiriyenko/fix-double-callback-i…

    Prevent callback from being set twice.
    rafaelfranca authored
  2. David Heinemeier Hansson

    Revert "Make sure that ActiveSupport::Logger includes the Logger exte…

    …nsions from core_ext/logger" (some confusion over deprecation)
    This reverts commit d00f568.
    dhh authored
  3. David Heinemeier Hansson

    Make sure that ActiveSupport::Logger includes the Logger extensions f…

    …rom core_ext/logger
    dhh authored
  4. David Heinemeier Hansson

    Add ActiveSupport::Logger#silence that works the same as the old Logg…

    …er#silence extension
    dhh authored

Dec 20, 2012

  1. Dmitriy Kiriyenko

    Prevent callback from being set twice.

    When you add one callack in two separate `set_callback` calls - it is
    only called once.
    When you do it in one `set_callback` call - it is called twice.
    This violates the principle of least astonishment for me. Duplicating
    callback is usually an error. There is a correct and obvious way to do
    anything without this "feature".
    If you want to do
        before_save :clear_balance, :calculate_tax, :clear_balance
    or whatever, you should better do
        before_save :carefully_calculate_tax
        def carefully_calculate_tax
    And this even opens gates for some advanced refactorings, unlike the
    first approach.
    My assumptions are:
    - Principle of least astonishment is violated, when callbacks are either
      prevented from duplication, or not.
    - Duplicating callbacks is usually an error. When it is intentional -
      it's a smell of a bad design and can be approached without abusing
      this "feature".
    My suggestion is: do not allow duplicating callbacks in one callback
    call, like it is not allowed in separate callbacks call.
  2. Carlos Antonio da Silva

    Fix Action Mailer changelog indenation to match other changelogs

    Also some minor improvements to other changelogs. [ci skip]

Dec 14, 2012

  1. zbskii

    Remove unicode character encoding from ActiveSupport::JSON.encode

    The encoding scheme (e.g. ☠ -> "\u2620") was broken for characters
    not in the Basic Multilingual Plane.  It is possible to escape them
    for json using the weird encoding scheme of a twelve-character
    sequence representing the UTF-16 surrogate pair (e.g. '𠜎' ->
    "\u270e\u263a") but this wasn't properly handled in the escaping code.
    Since raw UTF-8 is allowed in json, it was decided to simply pass
    through the raw bytes rather than attempt to escape them.
    zbskii authored steveklabnik committed
  2. Carlos Antonio da Silva

    Convert changelogs to 1.9 hash style and fix some formatting [ci skip]

Dec 11, 2012

  1. Andrew White

    Deprecate obsolete Time to DateTime fallback methods

    The Time.time_with_datetime_fallback, Time.utc_time and Time.local_time
    methods were added to handle the limitations of Ruby's native Time
    implementation. Those limitations no longer apply so we are deprecating
    them in 4.0 and they will be removed in 4.1.
    pixeltrix authored
Something went wrong with that request. Please try again.