Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5 1 stable #32423

Closed
wants to merge 539 commits into from
Closed

5 1 stable #32423

wants to merge 539 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jul 16, 2017

  1. Merge pull request #29817 from koic/replace_erubis_with_erubi_in_guide

    Replace Erubis with Erubi in a part of guide [ci skip]
    kamipo authored and kaspth committed Jul 16, 2017
    Configuration menu
    Copy the full SHA
    1dc2344 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2017

  1. Post.joins(:users) should not be affected by User.current_scope

    This change was introduced by #18109. The intent of that change was to
    specifically apply `unscoped`, not to allow all changes to
    `current_scope` to affect the join. The idea of allowing `current_scope`
    to affect joins is interesting and potentially more consistent, but has
    sever problems associated with it. The fact that we're specifically
    stripping out joins indicates one such problem (and potentially leads to
    invalid queries).
    
    Ultimately it's difficult to reason about what `Posts.joins(:users)`
    actually means if it's affected by `User.current_scope`, and it's
    difficult to specifically control what does or doesn't get added. If we
    were starting from scratch, I don't think I'd have `joins` be affected
    by `default_scope` either, but that's too big of a breaking change to
    make at this point.
    
    With this change, we no longer apply `current_scope` when bringing in
    joins, with the singular exception of the motivating use case which
    introduced this bug, which is providing a way to *opt-out* of having the
    default scope apply to joins.
    
    Fixes #29338.
    sgrif committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    3630d63 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #29056 from juliusdelta/29055-missing-links-in-act…

    …ivesupport-railsguide
    
    Added fixed links to code for Rails Guides ActiveSupport
    pixeltrix authored and rafaelfranca committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    05d278c View commit details
    Browse the repository at this point in the history
  3. Merge pull request #29793 from arthurnn/arthurnn/param_encoding_error…

    …_msg
    
    Scrub the invalid paramter value before using it in the error
    rafaelfranca committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    6d16ab8 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #29757 from lugray/hash_with_indifferent_access_de…

    …fault
    
    Fix HashWithIndifferentAccess#default when include?(nil)
    sgrif authored and Lisa Ugray committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    1a2870c View commit details
    Browse the repository at this point in the history
  5. Merge pull request #29829 from lugray/hash_with_indifferent_access_de…

    …fault_5_1
    
    Merge pull request #29757 from lugray/hash_with_indifferent_access_default
    rafaelfranca committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    3024727 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #29821 from y-yagi/set_rails_env_before_load_appli…

    …cation_file
    
    Set `RAILS_ENV` before load application file
    kaspth authored and y-yagi committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    1940bce View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2017

  1. Merge pull request #29831 from y-yagi/backport-29821-5-1

    Backport #29821 to 5-1-stable
    sgrif committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    26458e0 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2017

  1. Configuration menu
    Copy the full SHA
    0605e7f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #29844 from kamipo/create_rails_user_on_travis_ci

    Create `rails@localhost` user on travis ci
    kaspth committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    f66cbf6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b6e24db View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2017

  1. Don't cache queries for schema statements

    `test_middleware_caches` is sometimes failed since #29454.
    The failure is due to schema statements are affected by query caching.
    Bypassing query caching for schema statements to avoid the issue.
    kamipo committed Jul 20, 2017
    Configuration menu
    Copy the full SHA
    188c4bb View commit details
    Browse the repository at this point in the history
  2. Fix extracting MariaDB version

    Currently `version` method always returns `5.5.5` because the
    `full_version` is `5.5.5-10.x.y-MariaDB...` since MariaDB 10.x.
    It should be ignored if the prefix is `5.5.5-`.
    kamipo committed Jul 20, 2017
    Configuration menu
    Copy the full SHA
    f822ec3 View commit details
    Browse the repository at this point in the history
  3. Use information_schema to extract generation_expression for MariaDB

    Since MariaDB 10.2.5, `information_schema` supports Virtual Columns.
    
    Fixes #29670.
    kamipo committed Jul 20, 2017
    Configuration menu
    Copy the full SHA
    9e5205d View commit details
    Browse the repository at this point in the history
  4. Fix default CURRENT_TIMESTAMP in schema dumping for MariaDB 10.2

    Since MariaDB 10.2, `CURRENT_TIMESTAMP` is shown as a function
    (`current_timestamp()`). Fix matching column default to address that
    case.
    
    Fixes #29698.
    kamipo committed Jul 20, 2017
    Configuration menu
    Copy the full SHA
    aa44945 View commit details
    Browse the repository at this point in the history
  5. Fix unscoping default_scope in STI associations

    Since 5c71000, it has lost to be able to unscope `default_scope` in STI
    associations. This change will use `.empty_scope?` instead of
    `.values.empty?` to regard as an empty scope if only have
    `type_condition`.
    kamipo committed Jul 20, 2017
    Configuration menu
    Copy the full SHA
    305d03d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c24015f View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2017

  1. bugfix: unscope(where: [columns]) would not remove the correct binds …

    …sometimes
    
    Post.where(id: 1).or(Post.where(id: 2)).where(foo: 3).unscope(where: :foo).where_clause.binds.map(&:value)
    Would return [2, 3] instead of the expected [1,2]
    MaxLap committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    d378fcb View commit details
    Browse the repository at this point in the history
  2. Merge pull request #29855 from lugray/has_one_destroyed_by_association

    Match destroyed_by_association for has_one to has_many
    rafaelfranca committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    8254a8b View commit details
    Browse the repository at this point in the history
  3. Merge pull request #29884 from padi/update_rails_5_upgrade_guide

    Updates Rails upgrade guide on `ActionView::Helpers::RecordTagHelper`
    rafaelfranca committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    2de5822 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #29877 from kamipo/backport_29834

    5-1-stable: Fix unscoping `default_scope` in STI associations
    rafaelfranca committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    5d777f9 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #29875 from kamipo/backport_29634

    5-1-stable: Don't cache queries for schema statements
    rafaelfranca committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    1059d2b View commit details
    Browse the repository at this point in the history
  6. Merge pull request #29876 from kamipo/fix_default_current_timestamp_a…

    …nd_virtual_columns
    
    5-1-stable: Fix default `CURRENT_TIMESTAMP` and Virtual Columns for MariaDB 10.2
    rafaelfranca committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    8572c8e View commit details
    Browse the repository at this point in the history
  7. Merge pull request #29881 from MaxLap/fix_unscope_where_column_with_o…

    …r_5-1
    
    5-1-stable: bugfix: unscope(where: [columns]) would not remove the correct binds sometimes
    rafaelfranca committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    2299149 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2017

  1. Merge branch 'verify-release'

    kaspth committed Jul 23, 2017
    Configuration menu
    Copy the full SHA
    fa1fa72 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2017

  1. Merge pull request #29792 from lugray/delegate_respond_to

    Delegate respond_to? in ActionView::Helpers::ControllerHelper
    rafaelfranca committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    f67015c View commit details
    Browse the repository at this point in the history
  2. Merge pull request #29902 from y-yagi/fix_29880

    Do not show URL in boot info when using Puma
    rafaelfranca committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    3975313 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #29848 from kamipo/fix_distinct_count_with_order_a…

    …nd_limit
    
    Fix `COUNT(DISTINCT ...)` with `ORDER BY` and `LIMIT`
    rafaelfranca committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    0e8d4ed View commit details
    Browse the repository at this point in the history
  4. Merge pull request #29875 from kamipo/backport_29634

    5-1-stable: Don't cache queries for schema statements
    rafaelfranca authored and kaspth committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    31f3f3a View commit details
    Browse the repository at this point in the history
  5. Merge branch 'verify-release'

    kaspth committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    4dafc72 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #29898 from deivid-rodriguez/follow_up_to_multiple…

    …_location_engine_mounting
    
    Fix regression introduced by fixing mounting the same engine in multiple locations
    rafaelfranca committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    b0206dd View commit details
    Browse the repository at this point in the history
  7. Merge pull request #29898 from deivid-rodriguez/follow_up_to_multiple…

    …_location_engine_mounting
    
    Fix regression introduced by fixing mounting the same engine in multiple locations
    rafaelfranca committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    cba4e53 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2017

  1. Configuration menu
    Copy the full SHA
    f2bd6d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1b6839 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cba9d56 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    039dd11 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    af5ec3d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    885b692 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2017

  1. Merge pull request #29971 from rails/fix-duration-division

    Fix division where a duration is the denominator
    pixeltrix authored and kaspth committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    4d82e2a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #29971 from rails/fix-duration-division

    Fix division where a duration is the denominator
    pixeltrix authored and kaspth committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    c66baaf View commit details
    Browse the repository at this point in the history
  3. Eager load the association classes on boot

    We were expecting those classes to be loaded when an association is
    defined but they are not.
    
    If you add a debugger on the first line of any of those classes and try
    to define the corresponding association you will see that the classes
    are not loaded.
    
    Fixes #26273
    rafaelfranca committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    2089bdb View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2017

  1. Add missing support for modulo operations on durations

    Rails 5.1 introduce an `ActiveSupport::Duration::Scalar` class as
    a wrapper around a numeric value as a way of ensuring a duration
    was the outcome of an expression. However the implementation was
    missing support for modulo operations. This commit adds support
    for those operations and should result in a duration being
    returned from expressions involving them.
    
    Fixes #29603 and #29743.
    Sayanc93 authored and kaspth committed Jul 30, 2017
    Configuration menu
    Copy the full SHA
    5fb8b1f View commit details
    Browse the repository at this point in the history
  2. Add missing support for modulo operations on durations

    Rails 5.1 introduce an `ActiveSupport::Duration::Scalar` class as
    a wrapper around a numeric value as a way of ensuring a duration
    was the outcome of an expression. However the implementation was
    missing support for modulo operations. This commit adds support
    for those operations and should result in a duration being
    returned from expressions involving them.
    
    Fixes #29603 and #29743.
    Sayanc93 authored and kaspth committed Jul 30, 2017
    Configuration menu
    Copy the full SHA
    233fa7e View commit details
    Browse the repository at this point in the history
  3. Fix github user output.

    [ Orhan Toy & Kasper Timm Hansen ]
    kaspth committed Jul 30, 2017
    Configuration menu
    Copy the full SHA
    71f6848 View commit details
    Browse the repository at this point in the history
  4. Fix github user output.

    [ Orhan Toy & Kasper Timm Hansen ]
    kaspth committed Jul 30, 2017
    Configuration menu
    Copy the full SHA
    4af6b09 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2017

  1. Configuration menu
    Copy the full SHA
    57ff548 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83fe6a6 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2017

  1. Configuration menu
    Copy the full SHA
    f4142c8 View commit details
    Browse the repository at this point in the history
  2. Path parameters should default to UTF8

    This commit changes the behavior such the path_params now default to
    UTF8 just like regular parameters. This also changes the behavior such
    that if a path parameter contains invalid UTF8 it returns a 400 bad
    request. Previously the behavior was to encode the path params as binary
    but that's not the same as query params.
    
    So this commit makes path params behave the same as query params.
    
    It's important to test with a path that's encoded as binary because
    that's how paths are encoded from the socket. The test that was altered
    was changed to make the behavior for bad encoding the same as query
    params. We want to treat path params the same as query params. The params
    in the test are invalid UTF8 so they should return a bad request.
    
    Fixes #29669
    
    *Eileen M. Uchitelle, Aaron Patterson, & Tsukuru Tanimichi*
    eileencodes committed Aug 1, 2017
    Configuration menu
    Copy the full SHA
    9668cc3 View commit details
    Browse the repository at this point in the history
  3. Clarify route encoding test

    Since this test changed in 9220935 I noticed that it really doesn't make
    sense anymore. I split the tests into 2 groups to explain what each one
    does.
    
    First these routes should throw a `bad_request` when the encoding isn't
    valid. We're expecting UTF8 encoding and passing binary, that should be
    a bad request.
    
    For the second test we are setting the `show` route to set
    `self.binary_params_for?` for that route which will convert the
    parameters and return a `:ok` instead of a `:bad_request`.
    eileencodes committed Aug 1, 2017
    Configuration menu
    Copy the full SHA
    b5ef7d2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8b89415 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2017

  1. Merge pull request #29984 from colorfulfool/form-helpers-unicode-sani…

    …tization
    
    Allow non-English values for collection_radio_buttons
    rafaelfranca committed Aug 2, 2017
    Configuration menu
    Copy the full SHA
    7a300f8 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #29561 from samphippen/samphippen/add-option-to-si…

    …lence-puma-in-system-test
    
    Add an option to silence puma in system tests.
    sgrif authored and rafaelfranca committed Aug 2, 2017
    Configuration menu
    Copy the full SHA
    a47be5a View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2017

  1. Maintain original encoding from path

    When the path info is read from the socket it's encoded as ASCII 8BIT.
    The unescape method changes the encoding to UTF8 but it should maintain
    the encoding of the string that's passed in.
    
    This causes parameters to be force encoded to UTF8 when we don't
    actually know what the encoding of the parameter should be.
    eileencodes committed Aug 3, 2017
    Configuration menu
    Copy the full SHA
    620d40b View commit details
    Browse the repository at this point in the history
  2. Revert "Load the Parameters configurations on the right time"

    Caused the regression in #30025.
    
    We didn't have the right fix in time for the final release, so this
    get's reverted instead.
    
    This reverts commit 6b0606a.
    kaspth committed Aug 3, 2017
    Configuration menu
    Copy the full SHA
    eba78cb View commit details
    Browse the repository at this point in the history
  3. Remove extranouoououous end.

    kaspth committed Aug 3, 2017
    Configuration menu
    Copy the full SHA
    4aaa053 View commit details
    Browse the repository at this point in the history
  4. Preparing for 5.1.3 release

    kaspth committed Aug 3, 2017
    Configuration menu
    Copy the full SHA
    c338c66 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4d56efd View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2017

  1. Revert "Merge pull request #15446 from akshay-vishnoi/doc_changes"

    It was right as originally written in #15440.
    matthewd committed Aug 5, 2017
    Configuration menu
    Copy the full SHA
    27e0a38 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2017

  1. Merge pull request #29536 from nickrivadeneira/fix-yaml

    Ensure `false` is preserved in attr serialization
    matthewd authored and sgrif committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    cb5a586 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #29859 from dwightwatson/feature/rack-test

    Update rack-test dependency constraint
    rafaelfranca committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    e2e4229 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #30125 from yukideluxe/add-reload-to-associations-…

    …docs
    
    add reload_association to documentation
    rafaelfranca committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    78c487b View commit details
    Browse the repository at this point in the history
  4. Document ActiveRecord::AttributeMethods::Dirty

    This module has behavior that is not present in `ActiveModel::Dirty`,
    which is intended to be public API.
    sgrif committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    a77dd1f View commit details
    Browse the repository at this point in the history
  5. Merge pull request #30115 from intrip/30049-application-controller-re…

    …nderer-defaults-automatic-reload-in-dev
    
    Fix ApplicationController.renderer.defaults overriding in development
    rafaelfranca committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    7807bd8 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2017

  1. Extract JSONSharedTestCases

    Both `mysql2/json_test.rb` and `postgresql/json_test.rb` have same test
    cases.
    kamipo committed Aug 9, 2017
    Configuration menu
    Copy the full SHA
    2f2e470 View commit details
    Browse the repository at this point in the history
  2. Deserialize a raw value from the database in changed_in_place? for …

    …`AbstractJson`
    
    Structured type values sometimes caused representation problems (keys
    sort order, spaces, etc). A raw value from the database should be
    deserialized (normalized) to prevent the problems.
    kamipo committed Aug 9, 2017
    Configuration menu
    Copy the full SHA
    8bd5099 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6f616a7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7a7f3f9 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2017

  1. Merge pull request #30173 from y-yagi/specify_branch

    Specify branch in the benchmark template
    rafaelfranca committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    ec5781e View commit details
    Browse the repository at this point in the history
  2. Add a test case for #28754

    A part for JSON was splitted from #28416 as #29273 and #29273 has
    already been merged.
    
    Closes #28754.
    Closes #27588.
    
    [Ryuta Kamizono & Bradley Priest]
    kamipo committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    c0347ad View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2017

  1. Configuration menu
    Copy the full SHA
    7c0547e View commit details
    Browse the repository at this point in the history
  2. Merge pull request #30193 from zverok/robust-postgres-duplicate-db

    More robust PostgreSQL database duplication check
    rafaelfranca committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    88357da View commit details
    Browse the repository at this point in the history
  3. Merge pull request #30154 from kamipo/backport_29273

    5-1-stable: Deserialize a raw value from the database in `changed_in_place?` for `AbstractJson`
    rafaelfranca committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    80ddd68 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2017

  1. Merge pull request #27609 from kamipo/fix_association_primary_key

    Fix `reflection.association_primary_key` for `has_many` association
    rafaelfranca committed Aug 14, 2017
    Configuration menu
    Copy the full SHA
    5ade89e View commit details
    Browse the repository at this point in the history
  2. Reuse the local variable

    rafaelfranca committed Aug 14, 2017
    Configuration menu
    Copy the full SHA
    5184a56 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #29010 from y-yagi/fix_28988

    Allow irb options to be passed from `rails console` command
    guilleiguaran authored and y-yagi committed Aug 14, 2017
    Configuration menu
    Copy the full SHA
    b53a846 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #30169 from awortham/awortham/awortham/fix-sql-dis…

    …tinct-bug
    
    Ensure sum honors distinct on has_many through
    rafaelfranca committed Aug 14, 2017
    Configuration menu
    Copy the full SHA
    c0a1dc2 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2017

  1. Merge pull request #30257 from y-yagi/backport_29010

    Backport #29010 to 5-1-stable
    rafaelfranca committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    e91b483 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #30271 from kamipo/through_scope_should_not_be_aff…

    …ected_by_scoping
    
    Through scope should not be affected by scoping
    rafaelfranca committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    143991e View commit details
    Browse the repository at this point in the history
  3. Merge pull request #30045 from albertoalmagro/fix-raise-unpermitted-p…

    …arameters-regression
    
    Load Parameters configurations on :action_controller only once
    rafaelfranca committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    2aca09e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6893de7 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #29918 from xtina-starr/suppress-warning-from-acti…

    …onview-controller-helper
    
    Suppress warning from actionview controller helper.
    rafaelfranca authored and y-yagi committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    4aaebc4 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2017

  1. Merge pull request #30277 from y-yagi/backport_29918

    Backport #29918 to 5-1-stable
    rafaelfranca committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    5049632 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #30285 from albertoalmagro/pass-missing-name-attri…

    …bute
    
    Pass missing name attribute to execute_hook
    rafaelfranca committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    4bf9d85 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2017

  1. Add note about JSON/JSONB serialization changes

    The initial commit (efaa6e4) that changed this
    behavior was intended to be a minor change, but ended up becoming a
    large-ish breaking change within Active Record.
    
    This is because instead of only JSON encoding `Hash`es or `Array`s in `#serialize`,
    we now encode all values passed in. This is an issue if you're passing in a `String`,
    that has already been transformed from a `Hash` to a `String`, since your data
    is now being double encoded.
    
    Unfortunately, the change was included in one of the v5.0.0 beta
    releases, and it is too late to revert without huge ripple effects.
    Thus, all we can do is update the documentation (via this commit), and
    add some test coverage (coming soon in a PR) for the new behavior.
    
    Please note that in the documentation I talk about deserialization, not
    about serialization, where the actual change occurred. This is because
    you won't notice any changes in serialized data until you try and
    deserialize it. Also to make the change itself (confusing until you
    read through everything multiple times) easier to understand.
    
    Related #27788, #25594, #26101, #24234, #28292, #28285, #28285, and
    probably others.
    
    [ci skip]
    maclover7 committed Aug 17, 2017
    Configuration menu
    Copy the full SHA
    077367f View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2017

  1. Merge pull request #28912 from kaspth/getting-started-form-with

    [ci skip] form_with in the getting started guide.
    kaspth committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    bdc5816 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2017

  1. Merge pull request #30376 from willnet/belongs-to-dependent-option

    [ci skip]Revert commits changing wrong place
    kamipo committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    a10d559 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b098c6b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    df776aa View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2017

  1. Configuration menu
    Copy the full SHA
    8f900b7 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2017

  1. Merge pull request #30436 from y-yagi/backport_30421

    Backport #30421 to 5-1-stable
    eileencodes committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    595a231 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2017

  1. Should work inverse association when eager loading

    This regression was caused by caa178c. The block for
    `set_inverse_instance` should also be passed to join dependency.
    
    Fixes #30402.
    kamipo committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    237f00c View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2017

  1. activerecord: Fix saved_changes for saves nested in after callbacks

    Previously, saved_changes would return a hash of changes corresponding to
    the outermost save in the callbacks for the nested save, but now it will
    return the hash of changes for the nested save in its callbacks.
    dylanahsmith committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    600b91f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c27c76 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5843162 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2017

  1. Configuration menu
    Copy the full SHA
    ad80256 View commit details
    Browse the repository at this point in the history
  2. Add a test case for unscoping default_scope in associations

    Unscoping `default_scope` in associations has already supported (#17360
    for preloading, c9cf8b8 for eager loading).
    
    Fixes #20679.
    Closes #16531.
    kamipo committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    45291f0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8f2d211 View commit details
    Browse the repository at this point in the history
  4. add_reference should respect column position for both reference id …

    …and type columns
    
    Fixes #30496.
    kamipo committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    3fea231 View commit details
    Browse the repository at this point in the history
  5. Should quote composite primary key names

    Otherwise using reserved words as composite primary key names will be
    failed as an invalid SQL.
    
    Fixes #30518.
    kamipo committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    dbaf53d View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2017

  1. Merge pull request #30472 from dylanahsmith/fix-ar-5.1-saved-changes

    activerecord: Fix saved_changes for saves nested in after callbacks
    sgrif committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    fe0b904 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2017

  1. Update CHANGELOG.md

    adamdilek committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    f2c6443 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #30532 from muhammet/patch-1

    Update CHANGELOG.md [ci skip]
    kamipo committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    f66b2a5 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2017

  1. Preparing for 5.1.4 release

    matthewd committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    813af46 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2017

  1. Configuration menu
    Copy the full SHA
    8f70c67 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2017

  1. Merge pull request #29146 from y-yagi/fix_29138

    Correctly set user_supplied_options when there is no whitespace in option specification
    kaspth authored and y-yagi committed Sep 13, 2017
    Configuration menu
    Copy the full SHA
    c6c6519 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2017

  1. Merge pull request #30597 from y-yagi/backport_29146

    Backport #29146 to 5-1-stable
    kaspth committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    581fd57 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2017

  1. Merge pull request #30706 from tgxworld/fix_preload_memoization

    PERF: Restore memoization when preloading associations.
    kamipo committed Sep 26, 2017
    Configuration menu
    Copy the full SHA
    ca77eb3 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #30686 from metaskills/sqlserver-1as1fix

    Ensure `1 AS one` for SQL Server with Calculations
    sgrif authored and kamipo committed Sep 26, 2017
    Configuration menu
    Copy the full SHA
    d6efcc9 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #30655 from kuzukuzu/fix_create_join_table_compati…

    …bility
    
    make create_join_table compatible.
    kamipo committed Sep 26, 2017
    Configuration menu
    Copy the full SHA
    09b4b90 View commit details
    Browse the repository at this point in the history
  4. Fix test_should_sanitize_illegal_style_properties failure

    https://travis-ci.org/rails/rails/jobs/279300966#L2600
    
    The result of `Loofah::HTML5::Scrub.scrub_css` was changed since
    v2.1.0.rc1.
    
    flavorjones/loofah@ca56295
    kamipo committed Sep 26, 2017
    Configuration menu
    Copy the full SHA
    d0663d0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    90dd63a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    731c7f9 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2017

  1. PERF: Recover ActiveRecord::pluck performance.

    ```ruby
    require 'active_record'
    require 'benchmark/ips'
    
    ActiveRecord::Base.establish_connection(ENV.fetch('DATABASE_URL'))
    ActiveRecord::Migration.verbose = false
    
    ActiveRecord::Schema.define do
      create_table :users, force: true do |t|
        t.string :name, :email
        t.timestamps null: false
      end
    end
    
    attributes = {
      name: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
      email: 'foobar@email.com'
    }
    
    class User < ActiveRecord::Base; end
    
    1000.times do
      User.create!(attributes)
    end
    
    Benchmark.ips do |x|
      x.config(time: 10, warmup: 2)
    
      x.report('pluck 1 column') do
        User.pluck(:id)
      end
    
      x.report('pluck 2 columns') do
        User.pluck(:id, :email)
      end
    
      x.report('pluck 1 column with scope') do
        User.where(id: 1000).pluck(:id)
      end
    
      x.report('pluck 2 columns with scope') do
        User.where(id: 1000).pluck(:id, :email)
      end
    end
    ```
    
    ```
    Calculating -------------------------------------
          pluck 1 column   122.000  i/100ms
         pluck 2 columns    74.000  i/100ms
    pluck 1 column with scope
                           615.000  i/100ms
    pluck 2 columns with scope
                           515.000  i/100ms
    -------------------------------------------------
          pluck 1 column      1.272k (± 3.9%) i/s -     12.810k
         pluck 2 columns    750.096  (± 3.3%) i/s -      7.548k
    pluck 1 column with scope
                              6.074k (± 4.1%) i/s -     60.885k
    pluck 2 columns with scope
                              5.158k (± 2.7%) i/s -     52.015k
    ```
    
    ```
    Calculating -------------------------------------
          pluck 1 column   126.000  i/100ms
         pluck 2 columns    78.000  i/100ms
    pluck 1 column with scope
                           457.000  i/100ms
    pluck 2 columns with scope
                           434.000  i/100ms
    -------------------------------------------------
          pluck 1 column      1.266k (± 2.1%) i/s -     12.726k
         pluck 2 columns    795.061  (± 3.0%) i/s -      7.956k
    pluck 1 column with scope
                              4.660k (± 2.1%) i/s -     46.614k
    pluck 2 columns with scope
                              4.355k (± 2.3%) i/s -     43.834k
    ```
    
    ```
    Calculating -------------------------------------
          pluck 1 column   126.000  i/100ms
         pluck 2 columns    78.000  i/100ms
    pluck 1 column with scope
                           539.000  i/100ms
    pluck 2 columns with scope
                           481.000  i/100ms
    -------------------------------------------------
          pluck 1 column      1.308k (± 3.4%) i/s -     13.104k
         pluck 2 columns    798.604  (± 2.8%) i/s -      8.034k
    pluck 1 column with scope
                              5.530k (± 3.4%) i/s -     55.517k
    pluck 2 columns with scope
                              4.914k (± 2.7%) i/s -     49.543k
    ```
    
    ```
    Calculating -------------------------------------
          pluck 1 column   139.000  i/100ms
         pluck 2 columns    79.000  i/100ms
    pluck 1 column with scope
                           580.000  i/100ms
    pluck 2 columns with scope
                           526.000  i/100ms
    -------------------------------------------------
          pluck 1 column      1.337k (± 3.0%) i/s -     13.483k
         pluck 2 columns    806.776  (± 2.7%) i/s -      8.137k
    pluck 1 column with scope
                              5.924k (± 4.1%) i/s -     59.160k
    pluck 2 columns with scope
                              5.276k (± 3.1%) i/s -     53.126k
    ```
    tgxworld committed Sep 27, 2017
    Configuration menu
    Copy the full SHA
    df71234 View commit details
    Browse the repository at this point in the history
  2. PERF: Incorrect memoization in `ActiveRecord::Associations::Preloader…

    …::Association`.
    
    ```
    require 'active_record'
    require 'benchmark/ips'
    
    ActiveRecord::Base.establish_connection(ENV.fetch('DATABASE_URL'))
    ActiveRecord::Migration.verbose = false
    
    ActiveRecord::Schema.define do
      create_table :users, force: true do |t|
        t.string :name, :email
        t.integer :topic_id
        t.timestamps null: false
      end
    
      create_table :topics, force: true do |t|
        t.string :title
        t.timestamps null: false
      end
    end
    
    attributes = {
      name: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
      email: 'foobar@email.com'
    }
    
    class Topic < ActiveRecord::Base
      has_many :users
    end
    
    class User < ActiveRecord::Base
      belongs_to :topic
    end
    
    100.times do
      User.create!(attributes)
    end
    
    users = User.first(50)
    
    100.times do
      Topic.create!(title: 'This is a topic', users: users)
    end
    
    Benchmark.ips do |x|
      x.config(time: 10, warmup: 5)
    
      x.report("preload") do
        User.includes(:topic).all.to_a
      end
    end
    ```
    
    ```
    Calculating -------------------------------------
                 preload    25.000  i/100ms
    -------------------------------------------------
                 preload    251.772  (± 1.2%) i/s -      2.525k
    ```
    
    ```
    Calculating -------------------------------------
                 preload    26.000  i/100ms
    -------------------------------------------------
                 preload    270.392  (± 1.1%) i/s -      2.704k
    ```
    tgxworld committed Sep 27, 2017
    Configuration menu
    Copy the full SHA
    13364a8 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2017

  1. Ensure local dev and prod puma configs do not clobber ActionDispatch:…

    …:SystemTesting defaults
    maschwenk committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    87e085d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #30712 from maschwenk/5-1-stable

    Backport Capybara :puma defaults to 5.1.x
    eileencodes committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    bc02a01 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2017

  1. Configuration menu
    Copy the full SHA
    ed6a0ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bd212f View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2017

  1. Hash#transform_keys is in Ruby 2.5+

    since r59328
    amatsuda committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    7089ee4 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2017

  1. Fix COUNT(DISTINCT ...) for GROUP BY with ORDER BY and LIMIT

    This is the fix for the regression of #29848.
    
    In #29848, I've kept existing select list in the subquery for the count
    if ORDER BY is given. But it had accidentally affect to GROUP BY
    queries also. It should keep the previous behavior in that case.
    
    Fixes #30886.
    kamipo committed Oct 14, 2017
    Configuration menu
    Copy the full SHA
    87ca68e View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2017

  1. MySQL: Don't lose auto_increment: true in the db/schema.rb

    Currently `AUTO_INCREMENT` is implicitly used in the default primary key
    definition. But `AUTO_INCREMENT` is not only used for single column
    primary key, but also for composite primary key. In that case,
    `auto_increment: true` should be dumped explicitly in the
    `db/schema.rb`.
    
    Fixes #30894.
    kamipo committed Oct 15, 2017
    Configuration menu
    Copy the full SHA
    8b6e694 View commit details
    Browse the repository at this point in the history
  2. Fix collided sequence name detection

    If collided named sequence already exists, newly created serial column
    will generate alternative sequence name. Fix sequence name detection to
    allow the alternative names.
    kamipo committed Oct 15, 2017
    Configuration menu
    Copy the full SHA
    976f9c3 View commit details
    Browse the repository at this point in the history
  3. Fix longer sequence name detection for serial columns (#28339)

    We already found the longer sequence name, but we could not consider
    whether it was the sequence name created by serial type due to missed a
    max identifier length limitation. I've addressed the sequence name
    consideration to respect the max identifier length.
    
    Fixes #28332.
    kamipo committed Oct 15, 2017
    Configuration menu
    Copy the full SHA
    af9c170 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2017

  1. Backport #30579

    Fix `bin/rails db:setup` and `bin/rails db:test:prepare` create
    wrong ar_internal_metadata's data for a test database.
    
    [Sean Griffin & bogdanvlviv]
    bogdanvlviv committed Oct 18, 2017
    Configuration menu
    Copy the full SHA
    4ea7b49 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2017

  1. Configuration menu
    Copy the full SHA
    bb67b5f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #30727 from tgxworld/backport_perf_chanages

    Backport perf changes
    kamipo committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    9e9f4d1 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2017

  1. Fix deprecation warnings from with_lock

    Currently `with_lock` checks whether the record has `changed?`, but
    when called within a callback `changed?` triggers deprecation
    warnings. Instead use `has_changes_to_save?`.
    
    Fixes #30307
    Chris Stadler committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    3b9b5c6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #30956 from CJStadler/with-lock-changed-deprecation

    Fix deprecation warnings from with_lock
    rafaelfranca committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    9b466d4 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #30959 from lostapathy/capybara_version

    specify minimum capybara version for system tests
    rafaelfranca committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    5124ab7 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2017

  1. Merge pull request #30513 from y-yagi/fix_30444

    Does not include disabled element in params
    amatsuda authored and rafaelfranca committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    7903fb4 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2017

  1. Configuration menu
    Copy the full SHA
    439c746 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #30928 from Altech/indifferent-ignored-columns

    Allow symbol list for ignored_columns
    kamipo committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    d8c9c80 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #29609 from tsukasaoishi/query_cache_from_beginning

    Enable query cache if set a configurations
    rafaelfranca authored and kamipo committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    fd6c8cd View commit details
    Browse the repository at this point in the history
  4. Merge pull request #29623 from kamipo/should_use_same_connection_in_q…

    …uery_cache
    
    Should use the same connection in using query cache
    rafaelfranca authored and kamipo committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    997922d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dd691dd View commit details
    Browse the repository at this point in the history
  6. Merge pull request #30909 from ahorek/compatibility_fix

    42 compatibility - use int instead of bigint
    kamipo committed Oct 29, 2017
    Configuration menu
    Copy the full SHA
    c749be7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6e998cd View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2017

  1. Fix tests on Mail 2.7

    jeremy authored and y-yagi committed Nov 11, 2017
    Configuration menu
    Copy the full SHA
    a3b4ff2 View commit details
    Browse the repository at this point in the history
  2. Specify bundler version in template files

    We have already specified to install `bundler` 1.15.4 in `.travis.yml`.
    https://github.com/rails/rails/blob/master/.travis.yml#L31..L32
    
    However, `bundler` 1.16.0 may be used in the test.
    https://travis-ci.org/rails/rails/jobs/296582467#L2208
    
    The test failed due to this influence.
    In order to avoid this, specifying `bundler` version in bug report
    templates.
    y-yagi committed Nov 11, 2017
    Configuration menu
    Copy the full SHA
    3bec338 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #31125 from y-yagi/fix_5_1_stable_ci

    Fix 5-1-stable CI
    kamipo committed Nov 11, 2017
    Configuration menu
    Copy the full SHA
    72c3119 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2017

  1. Merge pull request #30980 from sobrinho/sobrinho/arel-star-ignored-co…

    …lumns
    
    Do not use `Arel.star` when `ignored_columns`
    rafaelfranca committed Nov 13, 2017
    Configuration menu
    Copy the full SHA
    ce0787f View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2017

  1. Prevent deadlocks with load interlock and DB lock.

    This fixes an issue where competing threads deadlock each other.
    
    - Thread A holds the load interlock but is blocked on getting the DB lock
    - Thread B holds the DB lock but is blocked on getting the load interlock (for example when there is a `Model.transaction` block that needs to autoload)
    
    This solution allows for dependency loading in other threads while a thread is waiting to acquire the DB lock.
    
    Fixes #31019
    BrentWheeldon committed Nov 17, 2017
    Configuration menu
    Copy the full SHA
    eccc533 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #31174 from BrentWheeldon/bmw-db-load-deadlock-5-1

    Backport prevent deadlocks with load interlock and DB lock to 5-1-stable
    rafaelfranca committed Nov 17, 2017
    Configuration menu
    Copy the full SHA
    567f703 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2017

  1. Merge pull request #30468 from greysteil/backport-changelog-links

    Backport changelog links
    eileencodes committed Nov 25, 2017
    Configuration menu
    Copy the full SHA
    350f789 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2017

  1. Fix optimized url helpers when using relative url root

    Fixes #31220.
    
    (cherry picked from commit 00c0e40)
    pixeltrix committed Nov 29, 2017
    Configuration menu
    Copy the full SHA
    e9b7795 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2017

  1. Fix sqlite migrations with custom primary keys

    Previously, if a record was created with a custom primary key, that
    table could not be migrated using sqlite. While attempting to copy the
    table, the type of the primary key was ignored.
    
    Once that was corrected, copying the indexes would fail because custom
    primary keys are autoindexed by sqlite by default.
    
    To correct that, this skips copying the index if the index name begins
    with "sqlite_". This is a reserved word that indicates that the
    index is an internal schema object. SQLite prohibits applications from
    creating objects whose names begin with "sqlite_", so this string should
    be safe to use as a check.
    ref https://www.sqlite.org/fileformat2.html#intschema
    aellispierce committed Dec 7, 2017
    Configuration menu
    Copy the full SHA
    832520c View commit details
    Browse the repository at this point in the history
  2. Merge pull request #31361 from aellispierce/backport-fix-custom-id-sq…

    …lite
    
    Backport fix sqlite migrations with custom primary keys to 5-1-stable
    eileencodes committed Dec 7, 2017
    Configuration menu
    Copy the full SHA
    5f4b57d View commit details
    Browse the repository at this point in the history
  3. Backport fix test_session_store_with_expire_after

    https://travis-ci.org/rails/rails/jobs/304428814#L1977
    
    Backports the fix from master for the rack-test failure with some
    additional work. 1) 0.7.1 has been yanked so this updates rack test to
    0.8.2 as does travis CI and 2) since `cookie_body` was changed in
    5f37e16 also take that change and compare against the
    `cookies[SessionKey]` instead of cookie body.
    
    Fixes the following error on travis:
    
    ```
    Failure:
    CookieStoreTest#test_session_store_with_expire_after
    [/home/travis/build/rails/rails/actionpack/test/dispatch/session/cookie_store_test.rb:300]:
    --- expected
    +++ actual
    @@ -1 +1 @@
    -"_myapp_session=BAh7B0kiCGZvbwY6BkVGSSIIYmFyBjsAVEkiD3Nlc3Npb25faWQGOwBGSSIlNTRiODg2NDM3YzAxYThmYTA3YWRhYmIwNDI5NTg1OWIGOwBG--e92675cf54c0656741f780418801e207fdb1d4c8;
    path=/; expires=Fri, 25 Apr 2008 05:00:00 -0000; HttpOnly"
    +nil
    ```
    kamipo authored and eileencodes committed Dec 7, 2017
    Configuration menu
    Copy the full SHA
    532c8a8 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2017

  1. Backport #30748 for redis-rb 4.0 support

    Rails master adds support for redis-rb 4.0 but when Rails 5-1-stable
    branch gets an updated redis there are exceptions in the travis log.
    
    ```
    Error:
    RedisAdapterTest#test_channel_filtered_broadcast:
    Gem::LoadError: Specified 'redis' for Action Cable pubsub adapter, but
    the gem is not loaded. Add `gem 'redis'` to your Gemfile (and ensure its
    version is at the minimum required by Action Cable).
    ```
    
    This PR backports Jeremy's work so that the build can be green.
    
    [Eileen M. Uchitelle & Jeremy Daer]
    eileencodes committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    3789531 View commit details
    Browse the repository at this point in the history
  2. CI with the latest stable(GA) version of MariaDB 10.2

    - Travis CI is migrating Ubuntu version to Trusty
    - MariaDB 10.2 is supported on Ubuntu Trusty
    yahonda authored and eileencodes committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    400a37d View commit details
    Browse the repository at this point in the history
  3. Merge pull request #29850 from yahonda/test_with_mariadb_102_on_trusty

    CI with the latest stable(GA) version of MariaDB 10.2
    kamipo authored and eileencodes committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    3059dee View commit details
    Browse the repository at this point in the history
  4. Merge pull request #31355 from rails/fix-rails-env-with-ruby

    Fix Rails environment when running tests with Ruby
    tenderlove committed Dec 8, 2017
    Configuration menu
    Copy the full SHA
    c03a399 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2017

  1. Merge pull request #31403 from Edouard-chin/fix-quoted-columnname

    Quote colum_names when building select:
    rafaelfranca committed Dec 12, 2017
    Configuration menu
    Copy the full SHA
    aa38973 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #31405 from bogdanvlviv/fix-conflicts-counter_cach…

    …e-with-touch-by-optimistic_locking
    
    Fix conflicts `counter_cache` with `touch: true` by optimistic locking.
    rafaelfranca committed Dec 12, 2017
    Configuration menu
    Copy the full SHA
    5236dda View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2017

  1. Configuration menu
    Copy the full SHA
    44103bc View commit details
    Browse the repository at this point in the history
  2. Merge pull request #31433 from jordan-brough/preserve-deprecated-meth…

    …od-visibility
    
    Preserve original method visibility when deprecating a method
    rafaelfranca committed Dec 13, 2017
    Configuration menu
    Copy the full SHA
    461fc3e View commit details
    Browse the repository at this point in the history
  3. Merge pull request #31428 from yahonda/report_on_exception_true_in_ru…

    …by25
    
    Suppress expected exceptions by `report_on_exception` = `false`
    rafaelfranca committed Dec 13, 2017
    Configuration menu
    Copy the full SHA
    b1d7cb4 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2017

  1. Fix test for change to circular loading message

    44103bc changed the circular loading message to include more details,
    but the corresponding test was not updated. This commit fixes the
    corresponding test to use `assert_match` so we don't need to build a
    bunch of file paths for the tests.
    eileencodes committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    97bc205 View commit details
    Browse the repository at this point in the history
  2. Specify bundler version in template files

    We have already specified to install `bundler` 1.15.4 in `.travis.yml`.
    https://github.com/rails/rails/blob/master/.travis.yml#L31..L32
    
    However, `bundler` 1.16.0 may be used in the test.
    https://travis-ci.org/rails/rails/jobs/296582467#L2208
    
    The test failed due to this influence.
    In order to avoid this, specifying `bundler` version in bug report
    templates.
    y-yagi authored and eileencodes committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    e6fca71 View commit details
    Browse the repository at this point in the history
  3. Revert "Specify bundler version in template files"

    This reverts commit e6fca71.
    
    I didn't realize this was already cherry-picked. Reverting.
    eileencodes committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    963f051 View commit details
    Browse the repository at this point in the history
  4. Avoid bundler 1.16.0

    Bundler 1.16.0 doesnt work with our executable test cases. This is
    causing travis to fail, so locking travis to use bundler 1.15.4.
    eileencodes committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    3efd1a9 View commit details
    Browse the repository at this point in the history
  5. Revert "Add more info to the circular dependency error"

    This reverts commit 44103bc.
    
    This should not be here
    rafaelfranca committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    a33e934 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2017

  1. Revert "Fix test for change to circular loading message"

    This reverts commit 97bc205.
    
    44103bc was reverted in a33e934 so this test no longer passes.
    eileencodes committed Dec 15, 2017
    Configuration menu
    Copy the full SHA
    afae7f9 View commit details
    Browse the repository at this point in the history
  2. Generate tmpname on its own

    `make_tmpname` was removed by ruby/ruby@25d56ea.
    In this case, we want a file name, not a `File`. So cannot use `Tempfile`.
    
    Fixes #31458
    y-yagi authored and rafaelfranca committed Dec 15, 2017
    Configuration menu
    Copy the full SHA
    c4a1b11 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2017

  1. Merge pull request #29127 from DmytroVasin/rails-ujs-remote-callbacks

    Fix callback in rails ujs
    guilleiguaran authored and y-yagi committed Dec 17, 2017
    Configuration menu
    Copy the full SHA
    8598e49 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2017

  1. Backport `Fix to working before/after validation callbacks on multipl…

    …e contexts.`
    
    Though the validation have supported multiple context since #21069,
    its callbacks don't support multiple context currently.
    
    So I regarded this as the bug and fixed.
    
    Example:
    
    ```ruby
    class Dog
      include ActiveModel::Validations
      include ActiveModel::Validations::Callbacks
    
      attr_accessor :history
    
      def initialize
        @history = []
      end
    
      before_validation :set_before_validation_on_a, on: :a
      before_validation :set_before_validation_on_b, on: :b
      after_validation :set_after_validation_on_a, on: :a
      after_validation :set_after_validation_on_b, on: :b
    
      def set_before_validation_on_a; history << "before_validation on a"; end
      def set_before_validation_on_b; history << "before_validation on b"; end
      def set_after_validation_on_a;  history << "after_validation on a" ; end
      def set_after_validation_on_b;  history << "after_validation on b" ; end
    end
    ```
    
    Before:
    
    ```
    d = Dog.new
    d.valid?([:a, :b])
    d.history # []
    ```
    
    After:
    
    ```
    d = Dog.new
    d.valid?([:a, :b])
    d.history # ["before_validation on a", "before_validation on b", "after_validation on a", "after_validation on b"]
    ```
    yhirano55 committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    0f7046a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #31516 from yhirano55/backport-31483

    Backport #31483 to 5-1-stable
    kamipo committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    35b8f0f View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2017

  1. Handle FrozenError if it is available

    This pull request handles `FrozenError` introduced by Ruby 2.5.
    Refer https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/61131
    
    Since `FrozenError` is a subclass of `RuntimeError` minitest used by master
    branch can handle it, though it would be better to handle `FrozenError`
    explicitly if possible.
    
    `FrozenError` does not exist in Ruby 2.4 or lower, `frozen_error_class`
    handles which exception is expected to be raised.
    yahonda committed Dec 20, 2017
    Configuration menu
    Copy the full SHA
    0806941 View commit details
    Browse the repository at this point in the history
  2. Fix count(:all) to correctly work distinct with custom SELECT list

    Currently `count(:all)` with `distinct` doesn't work correctly because
    SELECT list is always replaced to `*` or primary key in that case even
    if having custom SELECT list.
    
    And also, PostgreSQL has a limitation that ORDER BY expressions must
    appear in select list for SELECT DISTINCT.
    
    Therefore, we should not replace custom SELECT list when using
    `count(:all)` with `distinct`.
    
    Closes #31277.
    kamipo committed Dec 20, 2017
    Configuration menu
    Copy the full SHA
    6beb4de View commit details
    Browse the repository at this point in the history
  3. Merge pull request #31099 from nobu/patch-1

    Use `Tempfile.create`
    rafaelfranca authored and kamipo committed Dec 20, 2017
    Configuration menu
    Copy the full SHA
    85ef090 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #31525 from yahonda/5-1-stable_backport_31520

    Handle `FrozenError` if it is available to 5-1-stable
    kamipo committed Dec 20, 2017
    Configuration menu
    Copy the full SHA
    cb7347a View commit details
    Browse the repository at this point in the history
  5. Merge pull request #25346 from bogdan/correct-tags-count-in-fixtures

    Set counter caches to correct values in fixtures
    rafaelfranca authored and kamipo committed Dec 20, 2017
    Configuration menu
    Copy the full SHA
    9f54165 View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2017

  1. Merge pull request #31543 from hsbt/update-bundler-1-16

    Relax bundler version on Travis CI
    kamipo committed Dec 25, 2017
    Configuration menu
    Copy the full SHA
    fa81f88 View commit details
    Browse the repository at this point in the history
  2. Revert "Merge pull request #31543 from hsbt/update-bundler-1-16"

    This reverts commit fa81f88.
    kamipo committed Dec 25, 2017
    Configuration menu
    Copy the full SHA
    3dcc095 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2017

  1. Relax bundler version in 5-1-stable (#31565)

    Relax bundler version in 5-1-stable
    y-yagi committed Dec 26, 2017
    Configuration menu
    Copy the full SHA
    44da91d View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2018

  1. SQLite: Fix copy_table with composite primary keys

    `connection.primary_key` also return composite primary keys, so
    `from_primary_key_column` may not be found even if `from_primary_key` is
    presented.
    
    ```
    % ARCONN=sqlite3 be ruby -w -Itest
    test/cases/adapters/sqlite3/sqlite3_adapter_test.rb -n
    test_copy_table_with_composite_primary_keys
    Using sqlite3
    Run options: -n test_copy_table_with_composite_primary_keys --seed 19041
    
    # Running:
    
    E
    
    Error:
    ActiveRecord::ConnectionAdapters::SQLite3AdapterTest#test_copy_table_with_composite_primary_keys:
    NoMethodError: undefined method `type' for nil:NilClass
        /path/to/rails/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb:411:in
        `block in copy_table'
    ```
    
    This change fixes `copy_table` to do not lose composite primary keys.
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    9ca3b01 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #31562 from fatkodima/sqlite_migration_compatibility

    Fix `add_column` with :primary_key type compatibility for SQLite
    
    SQLite: Add more test cases for adding primary key
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    4172571 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #31607 from fatkodima/fix-sqlite-partial-indexes

    Fix recreating partial indexes after alter table for sqlite
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    49d6a10 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #31521 from zinovyev/fix-mysql-get-lock-bigint

    Fix Illegal parameter data type bigint for operation 'get_lock' error
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    e30a437 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #31425 from chiastolite/optimize_foregin_keys_query

    Optimizing information_schema query for `foreign_keys`
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    9fe3a52 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #29785 from cswilliams/rescue_postgres_connection_…

    …errors_on_dealloc
    
    Catch postgres connection errors when trying to dealloc
    sgrif authored and kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    fedca47 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #27780 from mikelikesbikes/fix-update-attribute-ca…

    …llbacks-issue
    
    save attributes changed by callbacks after update_attribute
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    6346683 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #27561 from fishbrain/count-all-in-has-many-associ…

    …ation
    
    Use `count(:all)` in HasManyAssociation#count_records
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    eef3c89 View commit details
    Browse the repository at this point in the history
  9. Fix cache_key with a relation having distinct and order

    We can't replace existing SELECT list as long as having DISTINCT, it
    will cause incorrect result.
    
    And also, PostgreSQL has a limitation that ORDER BY expressions must
    appear in select list for SELECT DISTINCT.
    
    Therefore, we should not replace existing SELECT list when using
    DISTINCT.
    
    Fixes #29779.
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    51a66dd View commit details
    Browse the repository at this point in the history
  10. Using table name qualified column names unless having SELECT list exp…

    …licitly
    
    Previously table name qualified `*` is used in that case. If it is not
    qualified with a table name, an ambiguous column name error will occur
    when using JOINs.
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    b5300d9 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #31423 from bogdanvlviv/fix-protected_environments…

    …-with-symbols
    
    Fix protected environments with symbols
    kamipo committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    4cc2ea7 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2018

  1. Merge pull request #31671 from larskanis/pg-1.0

    PostgreSQL: Allow pg-1.0 gem to be used with ActiveRecord
    rafaelfranca committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    a9c06f6 View commit details
    Browse the repository at this point in the history
  2. Use my fork instead of an thrid-party fork

    This will avoid the branch being deleted by mistake making all builds to
    fail.
    rafaelfranca committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    e44c0d5 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2018

  1. Merge pull request #31624 from y-yagi/fix_minitest_511

    Add support for Minitest 5.11
    tenderlove authored and y-yagi committed Jan 13, 2018
    Configuration menu
    Copy the full SHA
    0552bca View commit details
    Browse the repository at this point in the history
  2. Minitest::Result can't use in 5-1-stable

    Because Minitest is locked by 5.3.3.
    y-yagi committed Jan 13, 2018
    Configuration menu
    Copy the full SHA
    f7e5f19 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2018

  1. Fix kindle edition build error [ci skip]

    `profiling.md` was removed by 8abf2f5. But it remained on the document list.
    Because of that, generation of kindle edition got an error.
    
    Fixes #29865.
    y-yagi committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    293be49 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2018

  1. Fix newly added reflection order when redefining association

    Currently reflections keeps the order when first added even if when
    redefining association. As a result of the order, redefining through
    association which use newly added association will raise
    `HasManyThroughOrderError`. We need to redefine reflection order as well
    when redefining association.
    
    Fixes #31068.
    kamipo committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    25586e0 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2018

  1. Merge pull request #30391 from jbourassa/fix-actionmailer-lambda-default

    Fix actionmailer lambda default
    kamipo committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    b2bedb1 View commit details
    Browse the repository at this point in the history
  2. Fix count(:all) with eager loading and having an order other than t…

    …he driving table
    
    This is a regression caused by 6beb4de.
    
    In PostgreSQL, ORDER BY expressions must appear in SELECT list when
    using DISTINCT.
    
    When using `count(:all)` with eager loading, Active Record enforces
    DISTINCT to count the driving table records only. 6beb4de was caused the
    regression because `count(:all)` with DISTINCT path no longer removes
    ORDER BY.
    
    We need to ignore ORDER BY when DISTINCT is enforced, otherwise not
    always generated valid SQL for PostgreSQL.
    
    Fixes #31783.
    kamipo committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    6df9b69 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2018

  1. Merge pull request #31803 from rmosolgo/rm-dependencies

    Fix infinite loop when unloading autoloaded modules
    rafaelfranca committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    fcb5ae3 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2018

  1. Configuration menu
    Copy the full SHA
    f8c00c1 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2018

  1. Change how AttributeSet::Builder receives its defaults

    There are two concerns which are both being combined into one here, but
    both have the same goal. There are certain attributes which we want to
    always consider initialized. Previously, they were handled separately.
    The primary key (which is assumed to be backed by a database column)
    needs to be initialized, because there is a ton of code in Active Record
    that assumes `foo.id` will never raise. Additionally, we want attributes
    which aren't backed by a database column to always be initialized, since
    we would never receive a database value for them.
    
    Ultimately these two concerns can be combined into one. The old
    implementation hid a lot of inherent complexity, and is hard to optimize
    from the outside. We can simplify things significantly by just passing
    in a hash.
    
    This has slightly different semantics from the old behavior, in that
    `Foo.select(:bar).first.id` will return the default value for the
    primary key, rather than `nil` unconditionally -- however, the default
    value is always `nil` in practice.
    sgrif authored and kamipo committed Feb 5, 2018
    Configuration menu
    Copy the full SHA
    1fd6750 View commit details
    Browse the repository at this point in the history
  2. PERF: Recover marshaling dump/load performance (#31827)

    * PERF: Recover marshaling dump/load performance
    
    This performance regression which is described in #30680 was caused by
    f0ddf87 due to force materialized `LazyAttributeHash`.
    
    Since 95b86e5, default proc has been removed in the class, so it is no
    longer needed that force materialized.
    
    Avoiding force materialized will recover marshaling dump/load
    performance.
    
    Benchmark:
    
    https://gist.github.com/blimmer/1360ea51cd3147bae8aeb7c6d09bff17
    
    Before:
    
    ```
    it took 0.6248569069430232 seconds to unmarshal the objects
    
    Total allocated: 38681544 bytes (530060 objects)
    
    allocated memory by class
    -----------------------------------
      12138848  Hash
      10542384  String
       7920000  ActiveModel::Attribute::Uninitialized
       5600000  ActiveModel::Attribute::FromDatabase
       1200000  Foo
        880000  ActiveModel::LazyAttributeHash
        400000  ActiveModel::AttributeSet
            80  Integer
            72  ActiveRecord::ConnectionAdapters::SQLite3Adapter::SQLite3Integer
            40  ActiveModel::Type::String
            40  ActiveRecord::Type::DateTime
            40  Object
            40  Range
    
    allocated objects by class
    -----------------------------------
        250052  String
        110000  ActiveModel::Attribute::Uninitialized
         70001  Hash
         70000  ActiveModel::Attribute::FromDatabase
         10000  ActiveModel::AttributeSet
         10000  ActiveModel::LazyAttributeHash
         10000  Foo
             2  Integer
             1  ActiveModel::Type::String
             1  ActiveRecord::ConnectionAdapters::SQLite3Adapter::SQLite3Integer
             1  ActiveRecord::Type::DateTime
             1  Object
             1  Range
    ```
    
    After:
    
    ```
    it took 0.1660824950085953 seconds to unmarshal the objects
    
    Total allocated: 13883811 bytes (220090 objects)
    
    allocated memory by class
    -----------------------------------
       5743371  String
       4940008  Hash
       1200000  Foo
        880000  ActiveModel::LazyAttributeHash
        720000  Array
        400000  ActiveModel::AttributeSet
            80  ActiveModel::Attribute::FromDatabase
            80  Integer
            72  ActiveRecord::ConnectionAdapters::SQLite3Adapter::SQLite3Integer
            40  ActiveModel::Type::String
            40  ActiveModel::Type::Value
            40  ActiveRecord::Type::DateTime
            40  Object
            40  Range
    
    allocated objects by class
    -----------------------------------
        130077  String
         50004  Hash
         10000  ActiveModel::AttributeSet
         10000  ActiveModel::LazyAttributeHash
         10000  Array
         10000  Foo
             2  Integer
             1  ActiveModel::Attribute::FromDatabase
             1  ActiveModel::Type::String
             1  ActiveModel::Type::Value
             1  ActiveRecord::ConnectionAdapters::SQLite3Adapter::SQLite3Integer
             1  ActiveRecord::Type::DateTime
             1  Object
             1  Range
    ```
    
    Fixes #30680.
    
    * Keep the `@delegate_hash` to avoid to lose any mutations that have been made to the record
    kamipo committed Feb 5, 2018
    Configuration menu
    Copy the full SHA
    f45de5d View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2018

  1. Merge pull request #31894 from kamipo/backport-31827

    5-1-stable: PERF: Recover marshaling dump/load performance
    sgrif committed Feb 6, 2018
    Configuration menu
    Copy the full SHA
    5b4ad7d View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2018

  1. Merge pull request #31923 from jdelStrother/duration-deserialization

    Fix yaml deserialization of ActiveSupport::Duration
    rafaelfranca committed Feb 7, 2018
    Configuration menu
    Copy the full SHA
    da41b34 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2018

  1. Merge pull request #31991 from radar/bump-i18n-to-one-dot-oh

    Bump i18n to 1.0
    rafaelfranca committed Feb 14, 2018
    Configuration menu
    Copy the full SHA
    e6ee1ac View commit details
    Browse the repository at this point in the history
  2. Update Gemfile.lock

    Follow up to e6ee1ac.
    y-yagi committed Feb 14, 2018
    Configuration menu
    Copy the full SHA
    90f30ec View commit details
    Browse the repository at this point in the history
  3. Add missing require

    Without this require, an error occurs when executing only `duration_test.rb`.
    Ref: https://travis-ci.org/rails/rails/jobs/338817558#L2205-L2210
    y-yagi committed Feb 14, 2018
    Configuration menu
    Copy the full SHA
    569302b View commit details
    Browse the repository at this point in the history
  4. Update Gemfile.lock

    rafaelfranca committed Feb 14, 2018
    Configuration menu
    Copy the full SHA
    5bb7319 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6406502 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6ccd2b0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eb92dd7 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2018

  1. Merge pull request #31901 from Kevinrob/patch-1

    Use SuppressedSummaryReporter and Rails::TestUnitReporter only if needed
    rafaelfranca committed Feb 17, 2018
    Configuration menu
    Copy the full SHA
    caa7695 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2018

  1. Configuration menu
    Copy the full SHA
    ff137ec View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2018

  1. Return all mappings for a timezone id in country_zones

    Some timezones like `Europe/London` have multiple mappings in
    `ActiveSupport::TimeZone::MAPPING` so return all of them instead
    of the first one found by using `Hash#value`. e.g:
    
      # Before
      ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh"]
    
      # After
      ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh", "London"]
    
    Fixes #31668.
    
    (cherry picked from commit 2d95956)
    pixeltrix committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    0222ebb View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2018

  1. Configuration menu
    Copy the full SHA
    6186f9c View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2018

  1. Update to sinatra 2.0.1

    Although not a direct dependency, it's pulled in by Resque for
    Active Job integration tests so we need to update because the
    rack-protection gem has a security vulnerability[1].
    
    [1]: https://nvd.nist.gov/vuln/detail/CVE-2018-7212
    pixeltrix committed Feb 21, 2018
    Configuration menu
    Copy the full SHA
    5e03e7b View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2018

  1. Merge pull request #32005 from maschwenk/ar-distinct-order-count-regr…

    …ession
    
    Active Record distinct & order #count regression
    kamipo committed Feb 28, 2018
    Configuration menu
    Copy the full SHA
    3ec2498 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2018

  1. Configuration menu
    Copy the full SHA
    51bbc4c View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2018

  1. Merge pull request #32161 from aried3r/patch-3

    Add pg 1.0.0 compatibility to 5.1.5 Changelog
    
    [ci skip]
    kamipo committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    9b553ff View commit details
    Browse the repository at this point in the history
  2. Merge pull request #28926 from bogdanvlviv/fix-destroy-with-locking_c…

    …olumn-value-null
    
    Fix destroy with locking_column value null
    rafaelfranca authored and kamipo committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    e498052 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #28914 from bogdanvlviv/fix-touch-with-optimistic-…

    …locking
    
    Fix ActiveRecord::Persistence#touch with locking
    rafaelfranca authored and kamipo committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    1e2f63d View commit details
    Browse the repository at this point in the history
  4. Never attempt to write virtual attributes to the database

    Currently the place where we limit what gets sent to the database is in
    the implementation for `partial_writes`. We should also be restricting
    it to column names when partial writes are turned off.
    
    Note that we're using `&` instead of just defaulting to
    `self.class.column_names`, as the instance version of `attribute_names`
    does not include attributes which are uninitialized (were not included
    in the select clause)
    sgrif authored and kamipo committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    8103ca0 View commit details
    Browse the repository at this point in the history
  5. Ensure we don't write virtual attributes on update, too

    See 948b931 for context
    sgrif authored and kamipo committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    a941a57 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #31435 from yahonda/deprecated_bigdecimal_new

    Suppress `warning: BigDecimal.new is deprecated` in activerecord
    rafaelfranca authored and kamipo committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    4a46ba9 View commit details
    Browse the repository at this point in the history
  7. id_in_database do not return nil value for persisted record

    This removes `|| id` which were added in #9963 and #23887 since it is no
    longer necessary.
    kamipo committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    aa2b1ab View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fa779b3 View commit details
    Browse the repository at this point in the history
  9. Fix that after commit callbacks on update does not triggered when opt…

    …imistic locking is enabled
    
    This issue is caused by `@_trigger_update_callback` won't be updated due
    to `_update_record` in `Locking::Optimistic` doesn't call `super` when
    optimistic locking is enabled.
    
    Now optimistic locking concern when updating is supported by
    `_update_row` low level API, therefore overriding `_update_record` is no
    longer necessary.
    
    Removing the method just fix the issue.
    
    Closes #29096.
    Closes #29321.
    Closes #30823.
    kamipo committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    aaee10e View commit details
    Browse the repository at this point in the history
  10. Merge pull request #32176 from kamipo/fix_after_update_commit

    5-1-stable: Fix that after commit callbacks on update does not triggered when optimistic locking is enabled
    kamipo committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    03f4e90 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2018

  1. Fix changelog entries of 5-1-stable [ci skip]

    #30748 was backported to `5-1-stable`
    by 3789531.
    This commit adds missing changelog entry and fixes others.
    bogdanvlviv committed Mar 14, 2018
    Configuration menu
    Copy the full SHA
    5dfb3a2 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2018

  1. Merge pull request #32220 from rails/fix-time-columns-on-sqlite3

    Time column improvements
    pixeltrix committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    0229463 View commit details
    Browse the repository at this point in the history
  2. Fix MigratorTest#test_migrator_verbosity

    Add `ActiveRecord::Migration.verbose = true`
    to be sure that verbose is turned on in the test.
    
    Related to #28865
    bogdanvlviv authored and pixeltrix committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    fa5c7c3 View commit details
    Browse the repository at this point in the history
  3. Check exclude before flagging cookies as secure in ActionDispatch::SSL (

    #32262)
    
    * Check exclude before flagging cookies as secure.
    
    * Update comments in ActionDispatch::SSL.
    
    [Catherine Khuu + Rafael Mendonça França]
    catkhuu authored and rafaelfranca committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    d0fd5ae View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2018

  1. Configuration menu
    Copy the full SHA
    b563d02 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2018

  1. Fix failing QuotingTest#test_quoted_time_utc

    This test fails in specific time.
    Example:
    
    If run this test on the machine with time 01:00 am UTC+2,
    this test will fail.
    Changing representing of 2000-01-01 01:00 am UTC+2 to UTC+0 change
    the day, month and even year in our case,
    so substitution `"2000-01-01 "` to `""` isn't possible.
    
    ```
    Failure:
    ActiveRecord::ConnectionAdapters::QuotingTest#test_quoted_time_utc
    Expected: "1999-12-31 23:01:27"
      Actual: "23:01:27"
    ```
    
    Related to 7c479cb
    bogdanvlviv authored and pixeltrix committed Mar 19, 2018
    Configuration menu
    Copy the full SHA
    c89e3b3 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2018

  1. Merge pull request #32282 from javan/fix-digesting-mixed-formats

    Fix digesting templates with mixed formats
    javan committed Mar 20, 2018
    Configuration menu
    Copy the full SHA
    eb30975 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2018

  1. Cache url helpers module

    The urls helpers module returned by Rails.application.routes.url_helpers
    isn't cached so to prevent the cost of building the module cache it locally.
    pixeltrix committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    8d0db23 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a0c43ce View commit details
    Browse the repository at this point in the history
  3. Merge pull request #32310 from sodabrew/mysql2-0.4-0.5

    Support mysql2 0.4.x and 0.5.x
    kamipo committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    6a11d83 View commit details
    Browse the repository at this point in the history
  4. Fix test_config_another_database failure

    Somehow `test_config_another_database` didn't fail on CI, but it will
    fail locally.
    
    https://travis-ci.org/rails/rails/jobs/356212950#L2474-L2482
    
    ```
    % bundle exec ruby -w -Itest test/generators/app_generator_test.rb -n test_config_another_database
    Run options: -n test_config_another_database --seed 7260
    
    # Running:
    
    F
    
    Failure:
    AppGeneratorTest#test_config_another_database [test/generators/app_generator_test.rb:417]:
    Expected /^\s*gem\s+["']mysql2["'], '~> 0.4.4'$*/ to match "source 'https://rubygems.org'\ngit_source(:github) { |repo| \"https://github.com/\#{repo}.git\" }\n\nruby '2.5.0'\n\n# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'\ngem 'rails', '~> 6.0.0.alpha'\n# Use mysql as the database for Active Record\ngem 'mysql2', '>= 0.4.4', '< 0.6.0'\n# Use Puma as the app server\ngem 'puma', '~> 3.11'\n# Use SCSS for stylesheets\ngem 'sass-rails', '~> 5.0'\n# Use Uglifier as compressor for JavaScript assets\ngem 'uglifier', '>= 1.3.0'\n# See https://github.com/rails/execjs#readme for more supported runtimes\n# gem 'mini_racer', platforms: :ruby\n\n# Use CoffeeScript for .coffee assets and views\ngem 'coffee-rails', '~> 4.2'\n# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks\ngem 'turbolinks', '~> 5'\n# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder\ngem 'jbuilder', '~> 2.5'\n# Use Redis adapter to run Action Cable in production\n# gem 'redis', '~> 4.0'\n# Use ActiveModel has_secure_password\n# gem 'bcrypt', '~> 3.1.7'\n\n# Use ActiveStorage variant\n# gem 'mini_magick', '~> 4.8'\n\n# Use Capistrano for deployment\n# gem 'capistrano-rails', group: :development\n\n# Reduces boot times through caching; required in config/boot.rb\ngem 'bootsnap', '>= 1.1.0', require: false\n\ngroup :development, :test do\n  # Call 'byebug' anywhere in the code to stop execution and get a debugger console\n  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]\nend\n\ngroup :development do\n  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.\n  gem 'web-console', '>= 3.3.0'\n  gem 'listen', '>= 3.0.5', '< 3.2'\n  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring\n  gem 'spring'\n  gem 'spring-watcher-listen', '~> 2.0.0'\nend\n\ngroup :test do\n  # Adds support for Capybara system testing and selenium driver\n  gem 'capybara', '>= 2.15', '< 4.0'\n  gem 'selenium-webdriver'\n  # Easy installation and use of chromedriver to run system tests with Chrome\n  gem 'chromedriver-helper'\nend\n\n# Windows does not include zoneinfo files, so bundle the tzinfo-data gem\ngem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]\n".
    
    bin/rails test test/generators/app_generator_test.rb:411
    
    Finished in 0.174681s, 5.7247 runs/s, 34.3483 assertions/s.
    1 runs, 6 assertions, 1 failures, 0 errors, 0 skips
    ```
    kamipo committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    4680a7e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7a58d96 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    90fd620 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2018

  1. Configuration menu
    Copy the full SHA
    2c537ba View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2018

  1. Compare ruby version with correct way

    riseshia authored and pixeltrix committed Mar 29, 2018
    Configuration menu
    Copy the full SHA
    b39f89c View commit details
    Browse the repository at this point in the history
  2. Merge pull request #32252 from bogdanvlviv/fix-changelogs-of-5-1-stab…

    …le-30748
    
    Fix changelog entries of `5-1-stable` [ci skip]
    eileencodes committed Mar 29, 2018
    Configuration menu
    Copy the full SHA
    2a553ac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a981596 View commit details
    Browse the repository at this point in the history
  4. Preparing for 5.1.6 release

    pixeltrix committed Mar 29, 2018
    Configuration menu
    Copy the full SHA
    0ae59ea View commit details
    Browse the repository at this point in the history
  5. Fix that touch(:updated_at) causes multiple assignments on the column

    The multiple assignments was caused by 37a1dfa due to lost the `to_s`
    normalization for given names.
    
    Fixes #32323.
    kamipo committed Mar 29, 2018
    Configuration menu
    Copy the full SHA
    9d5048c View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2018

  1. Bump tested versions of Ruby on CI

    Also switch testing of ruby-head to ruby-2.5.1 since focus of
    future compatibility has switched to 5-2-stable and master.
    pixeltrix committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    4cffb52 View commit details
    Browse the repository at this point in the history
  2. Backport fix for Dir::Tmpname.create from #32386

    The removal of path separators from the tmpname value affects all four
    supported versions of Ruby - 2.2.10, 2.3.7, 2.4.4, and 2.5.1.
    pixeltrix committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    ca4be4b View commit details
    Browse the repository at this point in the history
  3. Lock Sidekiq for < 5 for Ruby 2.2

    Sidekiq has a version check error for Ruby 2.2.10.
    pixeltrix committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    42b98a2 View commit details
    Browse the repository at this point in the history
  4. Update Gemfile.lock

    pixeltrix committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    f24fc33 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9e2432f View commit details
    Browse the repository at this point in the history
  6. Fix quotes [ci skip]

    pixeltrix committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    2baca8c View commit details
    Browse the repository at this point in the history