Up to [cvs.NetBSD.org] / pkgsrc / databases / ruby-activerecord71
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
www/ruby-rails71: Remove Ruby on Rails 7.1.x pacakges EOL since 2025-10-29.
www/ruby-rails71: update to 7.1.6 Ruby on Rails 7.1.6 (2025-10-28) This is the final release of Ruby on Rails 7.1.x. Active Support * No changes. Active Model * No changes. Active Record * Gracefully handle Timeout.timeout firing during connection configuration. Use of Timeout.timeout could result in improperly initialized database connection. This could lead to a partially configured connection being used, resulting in various exceptions, the most common being with the PostgreSQLAdapter raising undefined method key?' for nilorTypeError: wrong argument type nil (expected PG::TypeMap)`. Jean Boussier * Fix error handling during connection configuration. Active Record wasn't properly handling errors during the connection configuration phase. This could lead to a partially configured connection being used, resulting in various exceptions, the most common being with the PostgreSQLAdapter raising undefined method key?' for nilorTypeError: wrong argument type nil (expected PG::TypeMap)`. Jean Boussier * Fix prepared statements on mysql2 adapter. Jean Boussier * Fix a race condition in ActiveRecord::Base#method_missing when lazily defining attributes. If multiple thread were concurrently triggering attribute definition on the same model, it could result in a NoMethodError being raised. Jean Boussier Action View * No changes. Action Pack * No changes. Active Job * No changes. Action Mailer * No changes. Action Cable * Fixed compatibility with redis gem 5.4.1 Jean Boussier Active Storage * No changes. Action Mailbox * No changes. Action Text * No changes. Railties * No changes.
www/ruby-rails71: update to 7.1.5.2 Ruby on Rails 7.1.5.2 (2025-08-13) Active Record * Call inspect on ids in RecordNotFound error [CVE-2025-55193] Gannon McGibbon, John Hawthorn Active Storage * Remove dangerous transformations [CVE-2025-24293] Zack Deveau
www/ruby-rails71: update to 7.1.5.1 Update to Ruby on Rails 7.1.5.1. Action Pack * Add validation to content security policies to disallow spaces and semicolons. Developers should use multiple arguments, and different directive methods instead. [CVE-2024-54133] Gannon McGibbon Action Text * Update vendored trix version to 2.1.10 John Hawthorn
www/rails71: update to 7.1.5
Ruby on Rails 7.1.5 (2024-10-31)
Active Model
* Fix regression in alias_attribute to work with user defined methods.
alias_attribute would wrongly assume the attribute accessor was generated
by Active Model.
class Person
include ActiveModel::AttributeMethods
define_attribute_methods :name
attr_accessor :name
alias_attribute :full_name, :name
end
person.full_name # => NoMethodError: undefined method `attribute' for an
instance of Person
Jean Boussier
Active Record
* Fix marshalling of unsaved associated records in 7.1 format.
The 7.1 format would only marshal associated records if the association
was loaded. But associations that would only contain unsaved records
would be skipped.
Jean Boussier
* Fix an issue where .left_outer_joins used with multiple associations that
have the same child association but different parents does not join all
parents.
Previously, using .left_outer_joins with the same child association would
only join one of the parents.
Now it will correctly join both parents.
Fixes #41498.
Garrett Blehm
* Ensure ActiveRecord::Encryption.config is always ready before access.
Previously, ActiveRecord::Encryption configuration was deferred until
ActiveRecord::Base was loaded. Therefore, accessing
ActiveRecord::Encryption.config properties before ActiveRecord::Base was
loaded would give incorrect results.
ActiveRecord::Encryption now has its own loading hook so that its
configuration is set as soon as needed.
When ActiveRecord::Base is loaded, even lazily, it in turn triggers the
loading of ActiveRecord::Encryption, thus preserving the original behavior
of having its config ready before any use of ActiveRecord::Base.
Maxime Réty
* Add TimeZoneConverter#== method, so objects will be properly compared by
their type, scale, limit & precision.
Address #52699.
Ruy Rocha
www/ruby-rails71: update to 7.1.4.2 Security fix of ruby-action-mailer70. Other packages have no change except their version. 7.1.4.2 (2024-10-23) Action Mailer * Fix NoMethodError in block_format helper [Michael Leimstaedtner]
www/ruby-rails71: update to 7.1.4.1 Update Ruby on Rails 7.1 to 7.1.4.1. Active Support * No changes. Active Model * No changes. Active Record * No changes. Action View * No changes. Action Pack * Avoid regex backtracking in HTTP Token authentication [CVE-2024-47887] * Avoid regex backtracking in query parameter filtering [CVE-2024-41128] Active Job * No changes. Action Mailer * Avoid regex backtracking in block_format helper [CVE-2024-47889] Action Cable * No changes. Active Storage * No changes. Action Mailbox * No changes. Action Text * Avoid backtracing in plain_text_for_blockquote_node [CVE-2024-47888] Railties * No changes.
databases/ruby-activerecord71: update to 7.1.4 Active Record 7.1.4 (2024-08-22) Changes are too many to write here, please refer section of Active Record: <https://github.com/rails/rails/releases/tag/v7.1.4>.
Pullup ticket #6860 - requested by taca
www/ruby-rails71: security fix
Revisions pulled up:
- databases/ruby-activerecord71/distinfo 1.4-1.5
- devel/ruby-activejob71/distinfo 1.4-1.5
- devel/ruby-activemodel71/distinfo 1.4-1.5
- devel/ruby-activestorage71/distinfo 1.4-1.5
- devel/ruby-activesupport71/distinfo 1.4-1.5
- devel/ruby-railties71/distinfo 1.4-1.5
- lang/ruby/rails.mk 1.161,1.164
- mail/ruby-actionmailbox71/distinfo 1.4-1.5
- mail/ruby-actionmailer71/distinfo 1.4-1.5
- textproc/ruby-actiontext71/distinfo 1.4-1.5
- www/ruby-actioncable71/distinfo 1.4-1.5
- www/ruby-actionpack71/distinfo 1.4-1.5
- www/ruby-actionview71/PLIST 1.3
- www/ruby-actionview71/distinfo 1.4-1.5
- www/ruby-rails71/distinfo 1.4-1.5
---
Module Name: pkgsrc
Committed By: taca
Date: Wed May 22 13:27:19 UTC 2024
Modified Files:
pkgsrc/databases/ruby-activerecord71: distinfo
pkgsrc/devel/ruby-activejob71: distinfo
pkgsrc/devel/ruby-activemodel71: distinfo
pkgsrc/devel/ruby-activestorage71: distinfo
pkgsrc/devel/ruby-activesupport71: distinfo
pkgsrc/devel/ruby-railties71: distinfo
pkgsrc/lang/ruby: rails.mk
pkgsrc/mail/ruby-actionmailbox71: distinfo
pkgsrc/mail/ruby-actionmailer71: distinfo
pkgsrc/textproc/ruby-actiontext71: distinfo
pkgsrc/www/ruby-actioncable71: distinfo
pkgsrc/www/ruby-actionpack71: distinfo
pkgsrc/www/ruby-actionview71: PLIST distinfo
pkgsrc/www/ruby-rails71: distinfo
Log Message:
www/ruby-rails71: update to 7.1.3.3
Fix CVE-2024-34341 of textproc/ruby-actiontext71.
7.1.3.3 (2024-05-16)
Active Support
* No changes.
Active Model
* No changes.
Active Record
* No changes.
Action View
* No changes.
Action Pack
* No changes.
Active Job
* No changes.
Action Mailer
* No changes.
Action Cable
* No changes.
Active Storage
* No changes.
Action Mailbox
* No changes.
Action Text
* Upgrade Trix to 2.1.1 to fix CVE-2024-34341.
Rafael Mendon=E7a Fran=E7a
Railties
* No changes.
---
Module Name: pkgsrc
Committed By: taca
Date: Wed Jun 5 16:44:18 UTC 2024
Modified Files:
pkgsrc/databases/ruby-activerecord71: distinfo
pkgsrc/devel/ruby-activejob71: distinfo
pkgsrc/devel/ruby-activemodel71: distinfo
pkgsrc/devel/ruby-activestorage71: distinfo
pkgsrc/devel/ruby-activesupport71: distinfo
pkgsrc/devel/ruby-railties71: distinfo
pkgsrc/lang/ruby: rails.mk
pkgsrc/mail/ruby-actionmailbox71: distinfo
pkgsrc/mail/ruby-actionmailer71: distinfo
pkgsrc/textproc/ruby-actiontext71: distinfo
pkgsrc/www/ruby-actioncable71: distinfo
pkgsrc/www/ruby-actionpack71: distinfo
pkgsrc/www/ruby-actionview71: distinfo
pkgsrc/www/ruby-rails71: distinfo
Log Message:
www/ruby-rails71: update to 7.1.3.4
Security fix for CVE-2024-32464 (textproc/ruby-actiontext70) and
CVE-2024-28103 (www/ruby-actionpack61 package).
Ruby on Rails 7.1.3.4 (2024-06-04)
Action Text
* Sanitize ActionText HTML ContentAttachment in Trix edit view
[CVE-2024-32464]
Action Pack
* Include the HTTP Permissions-Policy on non-HTML Content-Types
[CVE-2024-28103]
www/ruby-rails71: update to 7.1.3.4
Security fix for CVE-2024-32464 (textproc/ruby-actiontext70) and
CVE-2024-28103 (www/ruby-actionpack61 package).
Ruby on Rails 7.1.3.4 (2024-06-04)
Action Text
* Sanitize ActionText HTML ContentAttachment in Trix edit view
[CVE-2024-32464]
Action Pack
* Include the HTTP Permissions-Policy on non-HTML Content-Types
[CVE-2024-28103]
www/ruby-rails71: update to 7.1.3.3 Fix CVE-2024-34341 of textproc/ruby-actiontext71. 7.1.3.3 (2024-05-16) Active Support * No changes. Active Model * No changes. Active Record * No changes. Action View * No changes. Action Pack * No changes. Active Job * No changes. Action Mailer * No changes. Action Cable * No changes. Active Storage * No changes. Action Mailbox * No changes. Action Text * Upgrade Trix to 2.1.1 to fix CVE-2024-34341. Rafael Mendonça França Railties * No changes.
www/ruby-rails71: update to 7.1.3.2 Update Ruby on Rails 7.1 and related pacakges to 7.1.3.2 This includes security fix: CVE-2024-26142 for www/ruby-actionpack71 CVE-2024-26143 for www/ruby-actionpack71 Action Pack * Fix possible XSS vulnerability with the translate method in controllers CVE-2024-26143 * Fix ReDoS in Accept header parsing CVE-2024-26142
databases/ruby-activerecord71: update to 7.1.3 Active Record (2024-01-16) * Fix Migrations with versions older than 7.1 validating options given to add_reference. [Hartley McGuire] * Ensure reload sets correct owner for each association. [Dmytro Savochkin] * Fix view runtime for controllers with async queries. [fatkodima] * Fix load_async to work with query cache. [fatkodima] * Fix polymorphic belongs_to to correctly use parent's query_constraints. [fatkodima] * Fix Preloader to not generate a query for already loaded association with query_constraints. [fatkodima] * Fix multi-database polymorphic preloading with equivalent table names. When preloading polymorphic associations, if two models pointed to two tables with the same name but located in different databases, the preloader would only load one. [Ari Summer] * Fix encrypted_attribute? to take into account context properties passed to encrypts. [Maxime Réty] * Fix find_by to work correctly in presence of composite primary keys. [fatkodima] * Fix async queries sometimes returning a raw result if they hit the query cache. ShipPart.async_count could return a raw integer rather than a Promise if it found the result in the query cache. [fatkodima] * Fix Relation#transaction to not apply a default scope. The method was incorrectly setting a default scope around its block: Post.where(published: true).transaction do Post.count # SELECT COUNT(*) FROM posts WHERE published = FALSE; end [Jean Boussier] * Fix calling async_pluck on a none relation. Model.none.async_pluck(:id) was returning a naked value instead of a promise. [Jean Boussier] * Fix calling load_async on a none relation. Model.none.load_async was returning a broken result. [Lucas Mazza] * TrilogyAdapter: ignore host if socket parameter is set. This allows to configure a connection on a UNIX socket via DATABASE_URL: DATABASE_URL=trilogy://does-not-matter/my_db_production?socket=/var/run/mysql.sock [Jean Boussier] * Fix has_secure_token calls the setter method on initialize. [Abeid Ahmed] * Allow using object_id as a database column name. It was available before rails 7.1 and may be used as a part of polymorphic relationship to object where object can be any other database record. [Mikhail Doronin] * Fix rails db:create:all to not touch databases before they are created. [fatkodima]
databases/ruby-activerecord71: add version 7.1.2 Active Record -- Object-relational mapping in Rails Active Record connects classes to relational database tables to establish an almost zero-configuration persistence layer for applications. The library provides a base class that, when subclassed, sets up a mapping between the new class and an existing table in the database. In the context of an application, these classes are commonly referred to as *models*. Models can also be connected to other models; this is done by defining *associations*. Active Record relies heavily on naming in that it uses class and association names to establish mappings between respective database tables and foreign key columns. Although these mappings can be defined explicitly, it's recommended to follow naming conventions, especially when getting started with the library. This is for Ruby on Rails 7.1.