pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/ruby-activerecord70 databases/ruby-activerec...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8738cbfa4bef
branches:  trunk
changeset: 385055:8738cbfa4bef
user:      taca <taca%pkgsrc.org@localhost>
date:      Sat Sep 10 12:45:48 2022 +0000

description:
databases/ruby-activerecord70: update to 7.0.4

* Symbol is allowed by default for YAML columns

  Étienne Barrié

* Fix ActiveRecord::Store to serialize as a regular Hash

  Previously it would serialize as an
  ActiveSupport::HashWithIndifferentAccess which is wasteful and cause
  problem with YAML safe_load.

  Jean Boussier

* Add timestamptz as a time zone aware type for PostgreSQL

  This is required for correctly parsing timestamp with time zone values in
  your database.

  If you don't want this, you can opt out by adding this initializer:

        ActiveRecord::Base.time_zone_aware_types -= [:timestamptz]

  Alex Ghiculescu

* Fix supporting timezone awareness for tsrange and tstzrange array columns.

        # In database migrations
        add_column :shops, :open_hours, :tsrange, array: true
        # In app config
        ActiveRecord::Base.time_zone_aware_types += [:tsrange]
        # In the code times are properly converted to app time zone
        Shop.create!(open_hours: [Time.current..8.hour.from_now])

  Wojciech Wnętrzak

* Resolve issue where a relation cache_version could be left stale.

  Previously, when reset was called on a relation object it did not reset
  the cache_versions ivar.  This led to a confusing situation where despite
  having the correct data the relation still reported a stale cache_version.

  Usage:

        developers = Developer.all
        developers.cache_version

        Developer.update_all(updated_at: Time.now.utc + 1.second)

        developers.cache_version # Stale cache_version
        developers.reset
        developers.cache_version # Returns the current correct cache_version

  Fixes .

  Austen Madden

* Fix load_async when called on an association proxy.

  Calling load_async directly an association would schedule a query but
  never use it.

        comments = post.comments.load_async # schedule a query
        comments.to_a # perform an entirely new sync query

  Now it does use the async query, however note that it doesn't cause the
  association to be loaded.

  Jean Boussier

* Fix eager loading for models without primary keys.

  Anmol Chopra, Matt Lawrence, and Jonathan Hefner

* rails db:schema:{dump,load} now checks ENV["SCHEMA_FORMAT"] before config

  Since rails db:structure:{dump,load} was deprecated there wasn't a simple
  way to dump a schema to both SQL and Ruby formats.  You can now do this
  with an environment variable. For example:

        SCHEMA_FORMAT=sql rake db:schema:dump

  Alex Ghiculescu

* Fix Hstore deserialize regression.

  edsharp

diffstat:

 databases/ruby-activerecord70/distinfo |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (13 lines):

diff -r 707338dc5818 -r 8738cbfa4bef databases/ruby-activerecord70/distinfo
--- a/databases/ruby-activerecord70/distinfo    Sat Sep 10 12:45:13 2022 +0000
+++ b/databases/ruby-activerecord70/distinfo    Sat Sep 10 12:45:48 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2022/07/13 14:48:47 taca Exp $
+$NetBSD: distinfo,v 1.8 2022/09/10 12:45:48 taca Exp $
 
-BLAKE2s (activerecord-7.0.3.1.gem) = 854a94b3af7533b488bec56256236299dce011fcf1fed3a488948afb5f9ffbea
-SHA512 (activerecord-7.0.3.1.gem) = 28460f9e2bb3a9231a9d4f25216400ce93d2ec10d2ad81bad4c7a80cc9f8fcd44e99806197d586bc69a0b5a141b12b243322731ebbb19a59d9c690fede78e3b6
-Size (activerecord-7.0.3.1.gem) = 474624 bytes
+BLAKE2s (activerecord-7.0.4.gem) = ac1552d7801acfaa7edca7a90c9d03873b13cf99612f2e2d467fb9f5e3e03337
+SHA512 (activerecord-7.0.4.gem) = 95586e7dde5bd4b339213f979099dae2ab03e5c4d85d275792fd84e58801069ca466dc13c2ef7a19fb3865523491a8b264c5998ffeecf5e7b09fd37e99da66f9
+Size (activerecord-7.0.4.gem) = 476160 bytes


Home | Main Index | Thread Index | Old Index